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;
  justify-content: center;
  align-items: center;
}

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

section#menu {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

section#home {
  display: flex;
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  animation-name: home-animate;
  animation-iteration-count: infinite;
  animation-duration: 10s;
  transition-duration: 300ms;
}
@keyframes home-animate {
  0%   {transform: rotate(  0deg) translateY(  0px);}
  66%  {transform: rotate(  0deg) translateY(  0px);}
  70%  {transform: rotate(-90deg) translateY(  0px);}
  77%  {transform: rotate(-90deg) translateY(-50px);}
  80%  {transform: rotate(-90deg) translateY(  0px);}
  83%  {transform: rotate(-90deg) translateY(-50px);}
  87%  {transform: rotate(-90deg) translateY(  0px);}
  90%  {transform: rotate(  0deg) translateY(  0px);}
  100% {transform: rotate(  0deg) translateY(  0px);}
}

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: calc(min(12vmin, 80px));
}

section#floatbutton {
  display: flex;
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  animation-name: floatbutton-animate;
  animation-iteration-count: infinite;
  animation-duration: 10s;
  transition-duration: 300ms;
}
@keyframes floatbutton-animate {
  0%   {transform: scale(1.0) rotate(  0deg);}
  42%  {transform: scale(1.0) rotate(  0deg);}
  53%  {transform: scale(1.5) rotate(180deg);}
  57%  {transform: scale(1.0) rotate(180deg);}
  100% {transform: scale(1.0) rotate(180deg);}
}

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: calc(min(12vmin, 80px));
}

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

section#letter {
  width: calc(min(80vw, 80vh));
  height: calc(min(80vw, 80vh));
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url("images/grid.png");
  background-size: 30px;
  background-repeat: round;
  overflow: hidden ;
  box-shadow: 3vmin 4vmin 8vmin 0px #000c;
  border-radius: 5px;
  animation: letter-animate;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}
@keyframes letter-animate {
  0%   {transform: perspective(1000px) rotateX( 4deg) rotateY(-16deg) rotateZ(4deg) translate(-3vw, -2vh);}
  100% {transform: perspective(1000px) rotateX(16deg) rotateY(-20deg) rotateZ(6deg) translate(-3vw, -2vh);}
}

img#record {
  width: 50%;  
}

section#texts {
  display: flex;
  margin: 0px 2vmin;
  font-size: 2vmin;
  line-height: normal;
  color: #000;
}

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

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

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

section#buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-self: center;
  justify-content: center;
}

section#buttons a {
  color: #111;
  background-color: #fafdff;
  border-radius: 100px;
  padding: 1.5vw 2vw;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 3vmin;
  font-weight: 900;
  border: 2px solid #000;
  transition-duration: 300ms;
}

section#buttons a#en {
  font-style: normal;
}

section#buttons a#fr {
  font-style: italic;
}

section#buttons a:hover {
  transform: scale(1.1);
}

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

section#pictos {
  margin: 20px 0px 0px 0px;
  width: 100%;
  display: flex;
  justify-content: center;
}

section#pictos ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

section#pictos ul li {
  transition-duration: 300ms;
}

section#pictos ul li:hover {
  transform: scale(1.2);
}

section#pictos img#games {
  width: 14vmin;
  animation-name: games-animate;
  animation-duration: 1000ms;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
@keyframes games-animate {
  0%   {transform: rotate(0deg); }
  100% {transform: rotate(360deg);}
}

section#pictos img#drawings {
  width: 14vmin;
  animation-name: drawings-animate;
  animation-duration: 500ms;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: linear;
  transform-origin: 50% 80%;
}
@keyframes drawings-animate {
  0%   {transform: rotate(-8deg); }
  100% {transform: rotate( 8deg);}
}

section#pictos img#rhb {
  width: 14vmin;
  animation-name: rhb-animate;
  animation-duration: 800ms;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
@keyframes rhb-animate {
  0%   {transform: translateX(-10px); }
  100% {transform: translateX( 10px);}
}

section#pictos img#bricks {
  width: 14vmin;
  animation-name: bricks-animate;
  animation-duration: 300ms;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
@keyframes bricks-animate {
  0%   {transform: scale(0.8); }
  100% {transform: scale(1.0);}
}

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

section#blupi-hello{
  position: absolute;
  top: calc(50% - 200px);
  bottom: calc(50% - 200px);
  left: 0px;
  transform-origin: bottom;
  animation-name: blupi-hello-animate;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  pointer-events: none;
}
@media screen and (max-width: 500px) {
  section#blupi-hello {
    top: calc(50% - 150px);
    bottom: calc(50% - 150px);
    animation-name: blupi-hello-narrow-animate;
  }
}
@keyframes blupi-hello-animate {
  0%   {transform: translateX(-353px) rotate( 0deg);}
  18%  {transform: translateX(-353px) rotate( 0deg);}
  27%  {transform: translateX(-203px) rotate(32deg);}
  32%  {transform: translateX(-203px) rotate(32deg);}
  38%  {transform: translateX(-353px) rotate( 0deg);}
  100% {transform: translateX(-353px) rotate( 0deg);}
}
@keyframes blupi-hello-narrow-animate {
  0%   {transform: translateX(-260px) rotate( 0deg);}
  18%  {transform: translateX(-260px) rotate( 0deg);}
  27%  {transform: translateX(-153px) rotate(32deg);}
  32%  {transform: translateX(-153px) rotate(32deg);}
  38%  {transform: translateX(-260px) rotate( 0deg);}
  100% {transform: translateX(-260px) rotate( 0deg);}
}

section#blupi-hello img{
  height: 100%;
}

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

footer {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  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;
}
