@charset "UTF-8";

/*****************************************
  *----------------------------------
  |  ThisStyleVersion: 1.0.2      |
  |  © 2021-2025 By ISAMI ABE     |
  |  LastUpdate: 2025-05-24       |
  |  License: none                |
  |  RulesStyle                   |
----------------------------------*
******************************************/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

header {
  background: #222;
  color: #fff;
  padding: 20px;
}
header > div {
  display: flex;
  width: 100%;
}
header > div {
  justify-content: flex-start;
}
header > div:nth-child(even) {
  justify-content: flex-end;
}
header > div > div {
  width: 60%;
  padding: 10px;
}

main {
  background: rgba(250, 250, 255);
  padding: 15px;
  min-height: 70vh;
}

footer {
  background: #000;
  color: #FFF;
}
footer > small {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
}

.rules {
  min-height: inherit;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.rules > article {
  position: relative;
  width: 30vw;
  height: 250px;
  margin: 10px;
  overflow: hidden;
  border-radius: 10px;
}
.rules > article,
.rules> article > a {
  transition: all 0.3s;
}
.rules > article > a {
  position: absolute;
  inset: 0;
  display: block;
  padding: 15px;
  overflow-y: auto;
  text-decoration: none;
  background: #555;
  color: #FFF;
}
.rules > article > a:hover {
  background-color: #559955;
}
.rules > article:hover {
  box-shadow: 0px 5px 2px #aaa;
  transform: scale(0.95);
}
.rules > article > a > h3 {
  color: #00ff00;
}

@media only screen and (max-width: 600px) {
  header > div {
    display: block;
  }
  header > div > div {
    width: 100%;
  }
  .rules > article {
    width: 100%;
  }
}