body {
  width: 100vw;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  justify-self: center;
  overflow-x: hidden;
  background: linear-gradient(180deg, #888, #aaa 100px);
  font-family: "PT Sans", sans-serif;
  font-size: small;
  font-weight: normal;
  line-height: 1.1rem;
  color: white;
}

/********************************************/

section#tiles {
  max-width: 1800px;
  margin: 20px 0px 0px 0px;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-self: center;
  align-content: center;
  flex-grow: 1;
  animation-name: tiles-animate;
  animation-duration: 20s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  overflow: hidden;
}
@media screen and (max-width: 900px) {
  section#tiles {
    margin: 0px 0px 20px 0px;
    transform: none;
    animation: none;
  }
}
@keyframes tiles-animate {
  0%   {transform: perspective(1000px) translate3d( 0px, 0px, -50px) rotateX( 0deg) rotateY( 0deg);}
  100% {transform: perspective(1000px) translate3d(69px, 0px, -50px) rotateX(-5deg) rotateY(11deg);}
}

/********************************************/

section#page-games {
  max-width: 45%;
  min-height: 30vh;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #0f0 20px, #333 20px, #555 70px);
  box-shadow: 0 20px 20px -10px #0008;
}
@media screen and (max-width: 600px) {
  section#page-games {
    max-width: none;
    box-shadow: none;
  }
}

section#page-drawings {
  max-width: 45%;
  min-height: 30vh;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #fc0 20px, #333 20px, #555 70px);
  box-shadow: 0 20px 20px -10px #0008;
}
@media screen and (max-width: 600px) {
  section#page-drawings {
    max-width: none;
    box-shadow: none;
  }
}

section#page-bricks {
  max-width: 45%;
  min-height: 30vh;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #3877ff 20px, #333 20px, #555 70px);
  box-shadow: 0 20px 20px -10px #0008;
}
@media screen and (max-width: 600px) {
  section#page-bricks {
    max-width: none;
    box-shadow: none;
  }
}

section#page-rhb {
  max-width: 45%;
  min-height: 30vh;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #e2021a 20px, #333 20px, #555 70px);
  box-shadow: 0 20px 20px -10px #0008;
}
@media screen and (max-width: 600px) {
  section#page-rhb {
    max-width: none;
    box-shadow: none;
  }
}

/********************************************/

section#logo-bricks {
  margin: 1.2vw 10px 0.8vw 10px;
  text-align: center;
}

section#logo-bricks a {
  flex-grow: 1;
  flex-basis: 0;
  display: flex;
  justify-content: center;
}

section#logo-bricks img {
  max-width: calc(100% - 10px);
  object-fit: contain;
  text-align: center;
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

section#logo-bricks a img:hover {
  transform: scale(1.05);
}


section#logo-games {
  margin: 1.2vw 10px 0.8vw 10px;
  text-align: center;
}

section#logo-games a {
  flex-grow: 1;
  flex-basis: 0;
  display: flex;
  justify-content: center;
}

section#logo-games img {
  max-width: calc(100% - 10px);
  object-fit: contain;
  text-align: center;
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

section#logo-games a img:hover {
  transform: scale(1.05);
}


section#logo-drawings {
  margin: 1.2vw 10px 0.8vw 10px;
  text-align: center;
}

section#logo-drawings a {
  flex-grow: 1;
  flex-basis: 0;
  display: flex;
  justify-content: center;
}

section#logo-drawings img {
  max-width: calc(100% - 10px);
  object-fit: contain;
  text-align: center;
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

section#logo-drawings a img:hover {
  transform: scale(1.05);
}


section#logo-rhb {
  margin: 1.2vw 10px 0.8vw 10px;
  text-align: center;
}

section#logo-rhb a {
  flex-grow: 1;
  flex-basis: 0;
  display: flex;
  justify-content: center;
}

section#logo-rhb img {
  max-width: calc(100% - 10px);
  object-fit: contain;
  text-align: center;
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

section#logo-rhb a img:hover {
  transform: scale(1.05);
}

/********************************************/

section#banner-bricks {
  margin: 0px 10px 10px 10px;
  width: calc(100% - 20px);
  max-width: 828px;
  display: flex;
  justify-content: center;
}

section#banner-bricks a {
  flex-grow: 1;
  flex-basis: 0;
  display: flex;
  justify-content: center;
}

section#banner-bricks img {
  width: calc(100% - 10px);
  padding: 4px;
  box-shadow: 0px 10px 15px #333;
  background: linear-gradient(180deg, transparent, #333 20%);
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

section#banner-bricks a img:hover {
  background: #3877ff;
  transform: scale(1.05);
}


section#banner-games {
  margin: 0px 10px 10px 10px;
  text-align: center;
}

section#banner-games img {
  max-width: calc(100% - 10px);
  object-fit: contain;
  text-align: center;
  padding: 4px;
  box-shadow: 0px 10px 15px #333;
  background: linear-gradient(180deg, transparent, #333 20%);
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

section#banner-games a img:hover {
  background: #00ff00;
  transform: scale(1.05);
}


section#banner-drawings {
  margin: 0px 10px 10px 10px;
  text-align: center;
}

section#banner-drawings img {
  max-width: calc(100% - 10px);
  object-fit: contain;
  text-align: center;
  padding: 4px;
  box-shadow: 0px 10px 15px #333;
  background: linear-gradient(180deg, transparent, #333 20%);
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

section#banner-drawings a img:hover {
  background: #fc0;
  transform: scale(1.05);
}


section#banner-rhb {
  margin: 0px 10px 10px 10px;
  text-align: center;
}

section#banner-rhb img {
  max-width: calc(100% - 10px);
  object-fit: contain;
  text-align: center;
  padding: 4px;
  box-shadow: 0px 10px 15px #333;
  background: linear-gradient(180deg, transparent, #333 20%);
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

section#banner-rhb a img:hover {
  background: #e2021a;
  transform: scale(1.05);
}


/********************************************/

section#texts {
  width: calc(100% - 30px);
  margin: 0px 10px 10px 10px;
  display: flex;
  flex-direction: row;
  gap: 30px;
}

section#texts p {
  flex-grow: 1;
  flex-basis: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

section#texts p:nth-child(even) {
  font-style: italic;
  text-align: right;
}

section#texts a {
  color: #ccc;
  text-decoration: none;
  transition-property: color;
  transition-duration: 300ms;
}

p#bricks a:hover {
  color: #3877ff;
}

p#games a:hover {
  color: #0f0;
}

p#drawings a:hover {
  color: #ffd500;
}

p#rhb a:hover {
  color: #e2021a;
}

/********************************************/

footer {
  height: 70px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px 30px 0px 50px;
  background-color: #222222;
}
@media screen and (max-width: 500px) {
  footer {
    padding: 0px 10px 0px 20px;
  }
}

footer p {
  flex-grow: 1;
  flex-basis: 0;
  color: #888;
}

footer ul {
  margin: 0px;
  padding: 0px;
}

footer li {
  height: 14px;
  float: left;
  list-style-type: none;
  margin: 0px;
  padding: 10px 15px 10px 15px;
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  transition-property: background-color;
  transition-duration: 300ms;
}
@media screen and (max-width: 500px) {
  footer li {
    padding: 10px 8px 10px 8px;
  }
}

footer li#sel {
  background-color: #666;
}

footer li#sel:hover {
  background-color: #444;
}

footer li:hover {
  background-color: #444;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}
