body {
  margin: 0;
  padding: 0;
  background-position: center;
  background-color: #aaa;
  font-family: "PT Sans", sans-serif;
  font-size: small;
  font-weight: normal;
  line-height: 1.1rem;
  color: white;
  overflow-x: hidden;
}

section#main {
  min-height: 100vh;
  margin: 0px auto;
  background: linear-gradient(0deg, #555 calc(100% - 200px), #222);
  display: flex;
  flex-direction: column;
}


section#logo {
  position: fixed;
  top: 10px;
  left: 0px;
  right: 0px;
  z-index: 10;
  display: flex;
  justify-content: center;
  animation: logo-animate;
  animation-duration: 1.0s;
  animation-timing-function: ease-out;
  pointer-events: none;
}
@keyframes logo-animate {
  0%   {transform: perspective(1000px) translate3d(0px, -75px, 0px) rotateX(75deg) scaleX(0.5);}
  100% {transform: perspective(1000px) translate3d(0px,   0px, 0px) rotateX( 0deg) scaleX(1.0);}
}

section#logo img {
  width: min(820px, 100%);
}


section#picto {
  height: calc(min(45px + 15vw, 157px));
  margin: 0px 0px 0px 0px;
  z-index: 11;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  animation: picto-animate;
  animation-duration: 1.0s;
  animation-timing-function: cubic-bezier(.75,.62,.18,1.85);
  pointer-events: none;
}
@keyframes picto-animate {
  0%   {transform: scale(0.0);}
  100% {transform: scale(1.0);}
}

section#picto img {
  width: 100%;
}

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

section#menu {
  position: sticky;
  top: 0px;
  z-index: 9;
  margin-top: -44px;
  margin-bottom: 20px;
  width: 200px;
  padding: 0px 4px;
  border-radius: 4px;
  background: #777;
  display: flex;
  align-self: center;
  box-shadow: 0px 15px 20px 5px #0004;
}

section#home {
  display: flex;
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  transition-duration: 300ms;
}

section#home:hover {
  background-color: #999;
  transform: scale(1.2);
}

section#home a {
  padding: 10px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ddd;
}

section#home img {
  width: 20px;
}

section#floatbutton {
  display: flex;
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  transition-duration: 300ms;
}

section#floatbutton:hover {
  background-color: #999;
  transform: scale(1.2);
}

section#floatbutton a {
  padding: 10px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ddd;
}

section#floatbutton img {
  width: 20px;
}

section#push {
  flex-grow: 1;
}

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

p {
  margin: 0px;
}

section#subtitle {
  text-align: center;
  font-size: x-large;
  font-weight: bold;
  line-height: normal;
  color: #eee;
  margin: 20px 0px 20px 0px;
  text-shadow: 0px 2px 12px #000;
}

@media screen and (max-width: 500px) {
  section#subtitle {
    margin: 20px 0px 0px 0px;
  }
}

section#page {
  transform-origin: center;
  display: flex;
  flex-direction: column;
  margin: 0px 10px;
  flex-grow: 5;
}


section#body {
  width: calc(100% - 20px);
  max-width: 820px;
  margin: 10px;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-self: center;
}

section#body p:nth-child(odd) {
  margin: 0px;
  flex-grow: 1;
  flex-basis: 0;
}

section#body p:nth-child(even) {
  margin: 0px;
  flex-grow: 1;
  flex-basis: 0;
  font-style: italic;
  text-align: right;
}

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

section#boxes-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

section#boxes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin: 10px 20px 30px 20px;
  justify-content: center;
  align-items: flex-end;
}

section#boxes a {
  position: relative;
  display: flex;
  cursor: pointer;
  transform-origin: bottom;
  transition-duration: 300ms;
}

section#boxes a:hover {
  section#box-shadow {
    transform: perspective(1000px) translate3d(14px, 0px, 0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scaleY(1);
  }
  section#box-left-black {
    transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scale(0, 1);
  }
  section#box-left-blue {
    transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scale(0, 1);
  }
  section#box-left-violet {
    transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scale(0, 1);
  }
  section#box-left-yellow {
    transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scale(0, 1);
  }
  section#box-left-orange {
    transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scale(0, 1);
  }
  section#box-left-red {
    transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scale(0, 1);
  }
  section#box-left-grey {
    transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scale(0, 1);
  }
  section#box-left-white {
    transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scale(0, 1);
  }
  img {
    transform: perspective(1000px) translate3d(0px, 0px, 0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scaleY(1);
  }
}

section#box-left-black {
  width: 40px;
  background: linear-gradient(0deg, #111, #333);
  transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scaleY(0.94);
  transition-duration: 300ms;
}
section#box-left-blue {
  width: 40px;
  background: linear-gradient(0deg, #182e3a, #3d7a99);
  transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scaleY(0.94);
  transition-duration: 300ms;
}
section#box-left-violet {
  width: 40px;
  background: linear-gradient(0deg, #161023, #241b52);
  transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scaleY(0.94);
  transition-duration: 300ms;
}
section#box-left-yellow {
  width: 40px;
  background: linear-gradient(0deg, #56432d, #8f8d5b);
  transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scaleY(0.94);
  transition-duration: 300ms;
}
section#box-left-orange {
  width: 40px;
  background: linear-gradient(0deg, #580813, #af5111);
  transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scaleY(0.94);
  transition-duration: 300ms;
}
section#box-left-red {
  width: 40px;
  background: linear-gradient(0deg, #3d0806, #9c1913);
  transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scaleY(0.94);
  transition-duration: 300ms;
}
section#box-left-grey {
  width: 40px;
  background: linear-gradient(0deg, #444, #888);
  transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scaleY(0.94);
  transition-duration: 300ms;
}
section#box-left-white {
  width: 40px;
  background: linear-gradient(0deg, #888, #ccc);
  transform: perspective(1000px) translate3d(21px, 4px, 0px) rotateX(-2deg) rotateY(-50deg) rotateZ(0deg) scaleY(0.94);
  transition-duration: 300ms;
}

section#boxes a img {
  transform: perspective(1000px) translate3d(0px, 0px, 0px) rotateX(-5deg) rotateY(35deg) rotateZ(0deg) scaleY(0.9);
  width: 200px;
  transition-duration: 300ms;
}

section#box-shadow {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: 17px;
  background-color: #0004;
  transform: scale(0.8, 0.7) skew(74deg, -9deg) translateX(29px) translateY(-9px);
  border-radius: 50px;
  box-shadow: 0px 0px 18px 12px #0004;
  transition-duration: 300ms;
}
section#box-shadow-DEBUG {
  z-index: 99;
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: 17px;
  background-color: #f008;
  transform: scale(0.8, 0.7) skew(74deg, -9deg) translateX(29px) translateY(-9px);
  border-radius: 50px;
}

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

footer {
  height: 70px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 0px 30px 0px 50px;
  background-color: #222222;
  align-self: normal;
}
@media screen and (max-width: 800px) {
  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;
}