body {
  margin: 0;
  padding: 0;
  background-position: center;
  background: #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(90deg, #0f0 20px, #333 20px, #555 70px);
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 500px) {
  section#main {
    background: #555;
    overflow-x: clip;
  }
}


section#header-home {
  margin: 0px 0px 50px 0px;
  padding: 10px 0px 0px 0px;
  background: linear-gradient(180deg, #222, transparent);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 500px) {
  section#header-home {
    margin: 0px 0px 40px 0px;
  }
}

section#header-home a {
  margin-left: 20px;
  animation: header-home-animate;
  animation-duration: 1.0s;
  animation-timing-function: ease-out;
  transition-duration: 300ms;
}
@media screen and (max-width: 500px) {
  section#header-home a {
    margin-left: 0px;
  }
}
@keyframes header-home-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#header-home a:hover {
  transform: scale(1.05);
}

section#header-home img {
  width: 100%;
}


section#header {
  margin: 0px 0px 50px 0px;
  padding: 10px 0px 0px 0px;
  background: linear-gradient(180deg, #222, transparent);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 500px) {
  section#header {
    margin: 0px 0px 40px 0px;
  }
}

section#header a {
  transition-duration: 300ms;
  margin-left: 20px;
}
@media screen and (max-width: 500px) {
  section#header a {
    margin-left: 0px;
  }
}

section#header a:hover {
  transform: scale(1.05);
}

section#header img {
  width: 100%;
}


section#picto-animate-home {
  position: absolute;
  top: 52px;
  left: calc(50% - 50px);
  width: 100px;
  z-index: 10;
  animation-name: picto-animate-home;
  animation-duration: 4s;
  animation-timing-function: cubic-bezier(.25,.1,.28,1.43);
  pointer-events: none;
}
@media screen and (max-width: 700px) {
  section#picto-animate-home {
    top: 33px;
    left: calc(50% - 35px);
    width: 70px;
  }
}
@keyframes picto-animate-home {
  0%   {transform: rotate(  0deg) scale(1.0);}
  20%  {transform: rotate(360deg) scale(2.0);}
  40%  {transform: rotate(  0deg) scale(1.0);}
  100% {transform: rotate(  0deg) scale(1.0);}
}

section#picto-animate-home img {
  width: 100%;
}

section#picto-animate-other {
  position: sticky;
  top: -100px;
  left: calc(50% - 50px);
  width: 100px;
  height: 0px;
  z-index: 10;
  animation-name: picto-animate-other;
  animation-duration: 10s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  pointer-events: none;
}
@media screen and (max-width: 700px) {
  section#picto-animate-other {
    top: -70px;
    left: calc(50% - 35px);
    width: 70px;
    animation-name: picto-animate-narrow-other;
  }
}
@keyframes picto-animate-other {
  0%   {transform-origin: 50px -50px;             transform: rotate(  0deg) scale(1.0) translateY(-100px);}
  10%  {transform-origin: 50px -50px;             transform: rotate(  0deg) scale(1.0) translateY(-100px);}
  20%  {transform-origin: 50px -50px;             transform: rotate(360deg) scale(2.0) translateY(-100px);}
  30%  {transform-origin: 50px -50px;             transform: rotate(  0deg) scale(1.0) translateY(-100px);}
  55%  {transform-origin: 50px -50px;             transform: rotate(  0deg) scale(1.0) translateY(-100px);}
  75%  {transform-origin: 50px calc(80vh + 50px); transform: rotate( 90deg) scale(4.0) translateY(  80vh);}
  80%  {transform-origin: 50px -50px;             transform: rotate(  0deg) scale(1.0) translateY(-100px);}
  100% {transform-origin: 50px -50px;             transform: rotate(  0deg) scale(1.0) translateY(-100px);}
}
@keyframes picto-animate-narrow-other {
  0%   {transform-origin: 35px -35px;             transform: rotate(  0deg) scale(1.0) translateY(-70px);}
  10%  {transform-origin: 35px -35px;             transform: rotate(  0deg) scale(1.0) translateY(-70px);}
  20%  {transform-origin: 35px -35px;             transform: rotate(360deg) scale(2.0) translateY(-70px);}
  30%  {transform-origin: 35px -35px;             transform: rotate(  0deg) scale(1.0) translateY(-70px);}
  55%  {transform-origin: 35px -35px;             transform: rotate(  0deg) scale(1.0) translateY(-70px);}
  75%  {transform-origin: 35px calc(80vh + 35px); transform: rotate( 90deg) scale(4.0) translateY( 80vh);}
  80%  {transform-origin: 35px -35px;             transform: rotate(  0deg) scale(1.0) translateY(-70px);}
  100% {transform-origin: 35px -35px;             transform: rotate(  0deg) scale(1.0) translateY(-70px);}
}

section#picto-animate-other img {
  width: 100%;
}

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

nav#menu {
  position: sticky;
  min-height: 32px;
  top: 0px;
  z-index: 9;
  align-self: center;
  margin: -15px 0px 20px 20px;
  padding: 0px 10px 0px 10px;
  background: #666;
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  box-shadow: 0px 15px 20px 5px #0004;
}
@media screen and (max-width: 650px) {
  nav#menu {
    border-radius: 0px;
    box-shadow: 0px 10px 10px 0px #0008;
  }
}
@media screen and (max-width: 500px) {
  nav#menu {
    margin: -10px 0px 0px 0px;
    padding: 5px 0px 0px 0px;
    background: linear-gradient(180deg, #0f0 0px 5px, #666 5px);
    border-radius: 0px;
    box-shadow: 0px 10px 10px 0px #0008;
  }
}

nav#menu ul {
  position: relative;
  margin: 0px;
  padding: 0px 60px;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: center;
}
@media screen and (max-width: 500px) {
  nav#menu ul {
    padding: 0px 50px;
  }
}

nav#menu li {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  transition-property: background-color;
  transition-duration: 300ms;
}

nav#menu li#bricks {
  position: absolute;
  top: 0px;
  left: 0px;
}

nav#menu li#floatbutton {
  position: absolute;
  top: 0px;
  right: 0px;
}

nav#menu li#bricks:hover {
  background-color: #999;
}

nav#menu li#floatbutton:hover {
  background-color: #999;
}

nav#menu li#sel {
  background-color: #222;
}

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

nav#menu li:hover {
  background-color: #444;
}

nav#menu a {
  padding: 11px 14px 9px 14px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
}

nav#menu img {
  height: 16px;
}

nav#menu li#bricks a img {
  margin: -3px 0px;
  height: 24px;
}

nav#menu li#floatbutton a img {
  margin: -3px 0px;
  height: 24px;
}

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

section#submenu-right-band {
  position: fixed;
  top: 0px;
  bottom: 0px;
  right: 0px;
  z-index: 9;
  display: flex;
  pointer-events: none;
}

nav#submenu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: center;
  background: linear-gradient(270deg, #090 10%, #0f0);
  border-color: #000;
  border-style: solid;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-right-width: 0px;
  float: left;
  border-radius: 5px 0px 0px 5px;
  box-shadow: 5px 0px 20px 10px #000c;
  pointer-events: all;
  animation: submenu-animate;
  animation-duration: 0.3s;
  animation-timing-function: ease-out;
}
@media screen and (max-width: 500px) {
  nav#submenu {
    margin: 0px -1px 10px -1px;
  }
}
@keyframes submenu-animate {
  0%   {transform: translateX(40px);}
  100% {transform: translateX( 0px);}
}

nav#submenu ul {
  margin: 0px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

nav#submenu li {
  float: left;
  list-style-type: none;
  display: flex;
}

nav#submenu li#up {
  display: flex;
  padding: 0px;
}

nav#submenu li {
  width: 39px;
  height: 12px;
  padding: 4px 0px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  transition-duration: 300ms;
}

nav#submenu li:hover {
  background-color: #ddd;
}
@media (hover: none) {
  nav#submenu li:hover{
    background-color: transparent;
  }
}
@media (pointer: coarse) {
  nav#submenu li:hover{
    background-color: transparent;
  }
}

nav#submenu li section#submenu-bullet {
  width: 12px;
  height: 12px;
  align-self: center;
  border-radius: 12px;
  border: solid 1px #000;
}

nav#submenu li#buttonHome {
  width: 39px;
  height: 39px;
  padding: 0px;
  border: none;
  border-radius: 0px 0px 0px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transform-origin: top;
  transform: scaleY(0);
  transition-duration: 300ms;
}

nav#submenu li#buttonPrev {
  width: 39px;
  height: 39px;
  padding: 0px;
  border: none;
  border-radius: 5px 0px 0px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transform-origin: bottom;
  transform: scaleY(0);
  transition-duration: 300ms;
}

nav#submenu li#buttonNext {
  width: 39px;
  height: 39px;
  padding: 0px;
  border: none;
  border-radius: 0px 0px 0px 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: top;
  transform: scaleY(0);
  cursor: pointer;
  transition-duration: 300ms;
}

nav#submenu img {
  width: calc(100% - 10px);
}

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


p {
  margin: 0px;
}

section#subtitle {
  text-align: center;
  font-size: x-large;
  font-weight: bold;
  line-height: normal;
  color: #00ff00;
}

section#subtitle-left {
  margin-left: 10px;
  padding-left: 40px;
  font-size: x-large;
  font-weight: bold;
  line-height: normal;
  color: #00ff00;
}

section#subtitle-center {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 20px 0px;
  padding: 0px;
  font-size: x-large;
  font-weight: bold;
  line-height: normal;
  color: #00ff00;
}


section#page {
  transform-origin: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px 10px 0px 30px;
}
@media screen and (max-width: 500px) {
  section#page {
    margin: 0px 10px 0px 10px;
  }
}


section#banner {
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section#banner img {
  max-width: 100%;
  object-fit: contain;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
  box-shadow: 0px 10px 15px #333;
  transition-property: background-color, transform;
  transition-duration: 300ms;
}


section#content {
  display: flex;
  flex-direction: column;
  margin-right: 35px;
}

section#bilingual-title {
  max-width: 840px;
  width: calc(100% - 20px);
  margin: 30px 0px 0px 20px;
  display: flex;
  align-self: center;
  font-size: x-large;
  font-weight: bold;
  line-height: normal;
}
@media screen and (max-width: 500px) {
  section#bilingual-title {
    width: unset;
    margin: 30px 0px 0px 0px;
  }
}

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

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

section#bilingual-title a {
  color: #0f0;
  text-decoration: none;
  transition-duration: 300ms;
}

section#bilingual-title a:hover {
  text-decoration: underline;
}


section#bilingual-text {
  max-width: 840px;
  width: calc(100% - 20px);
  margin: 10px 0px 20px 20px;
  display: flex;
  align-self: center;
  line-height: normal;
}
@media screen and (max-width: 500px) {
  section#bilingual-text {
    width: unset;
    margin: 30px 0px 0px 0px;
  }
}

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

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

section#bilingual-text a {
  color: #0f0;
  text-decoration: none;
  transition-duration: 300ms;
}

section#bilingual-text a:hover {
  text-decoration: underline;
}


section#samples-tiles {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0px 20px;
  justify-content: center;
}
@media screen and (max-width: 700px) {
  section#samples-tiles {
    margin: 0px 0px;
  }
}


section#samples {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px 0px 0px 20px;
}
@media screen and (max-width: 500px) {
  section#samples {
    margin: 0px 5px 0px 5px;
  }
}

section#samples a {
  display: flex;
  justify-content: center;
}

section#samples a img:hover {
  background: #00ff00;
  transform: scale(1.03);
}

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

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

greenbutton#button a {
  display: inline-flex;
  margin: 8px 0px 0px 0px;
  padding: 5px 15px;
  border-radius: 20px;
  background-color: #0a0;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  transition-property: background-color;
  transition-duration: 600ms;
  cursor: pointer;
}

greenbutton#button a:hover {
  background-color: #080;
  transition-property: background-color;
  transition-duration: 600ms;
}

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

section#donates {
  width: calc(100% + 20px);
  margin: 50px 0px -10px 0px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: linear-gradient(0deg, #444, #333);
  color: #ddd;
  border-top: dotted #0d0 5px;
}

section#donate {
  max-width: 820px;
  padding: 15px 10px 30px 10px;
  display: flex;
  flex-direction: row;
}

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

donate#button a {
  margin: 0px;
  padding: 5px 15px;
  border-radius: 20px;
  background-color: #0a0;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  transition-property: background-color;
  transition-duration: 600ms;
  cursor: pointer;
}

donate#button a:hover {
  margin: 0px;
  padding: 5px 15px;
  border-radius: 20px;
  background-color: #080;
  transition-property: background-color;
  transition-duration: 600ms;
}

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

section#button {
  position: absolute;
  right: 168px;
  bottom: 93px;
  width: 140px;
  border-radius: 20px;
}

section#button img {
  border-radius: 20px;
}

section#button a img:hover {
  background-color: #00ff00;
  border-radius: 20px;
  transform: scale(1.1);
}

section#play {
  position: absolute;
  right: 159px;
  bottom: 21px;
  width: 140px;
  border-radius: 20px;
  border: 5px solid transparent;
}

section#play img {
  margin: -10px -40px;
  padding: 10px 40px;
  border-radius: 20px;
  border: 5px solid transparent;
}

section#play a img:hover {
  background-color: #00e600;
  border: 5px solid #000000;
  transform: scale(1.1);
}

section#samples-big {
  max-height: calc(100vh - 180px);
  margin: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

section#samples-big img {
  max-width: 820px;
  width: calc(100% - 60px);
  object-fit: contain;
}


button#arrow-left {
  position: relative;
  width: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px 0px 0px 20px;
  background-color: transparent;
  border: none;
  transform-origin: right;
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

button#arrow-right {
  position: relative;
  width: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0px 20px 20px 0px;
  align-items: center;
  background-color: transparent;
  border: none;
  transform-origin: left;
  transition-property: background-color, transform;
  transition-duration: 300ms;
}

button#arrow-left:hover {
  background-color: #777;
  transform: scaleX(1.1);
}

button#arrow-right:hover {
  background-color: #777;
  transform: scaleX(1.1);
}


section#body {
  margin: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  gap: 30px;
  max-width: 820px;
  width: 100%;
}

section#body-center {
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section#body-center a {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  gap: 30px;
}

section#body-shift {
  margin-top: 30px;
  margin-left: 100px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  gap: 30px;
}

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

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

section#body li {
  list-style-type: none;
}

section#body a {
  color: #00ff00;
  text-decoration: none;
  transition-property: color;
  transition-duration: 300ms;
  border-radius: 3px;
}

section#body a:hover {
  color: #00ff00;
  background-color: #222222;
  border-radius: 6px;
  margin: -2px -5px;
  padding: 2px 5px;
  transition-property: all;
  transition-duration: 300ms;
}


section#version {
  transform-origin: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  margin: 30px 10px 10px 30px;
}
@media screen and (max-width: 500px) {
  section#version {
    margin: 30px 10px 10px 10px;
  }
}

section#version-title {
  max-width: 820px;
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: 150%;
  font-weight: bold;
  padding: 10px 0px;
  color: #555;
  background-color: #0f0;
  border-radius: 20px 20px 0px 0px;
}

section#version-body {
  max-width: 780px;
  width: calc(100% - 40px);
  padding: 25px 20px 30px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  gap: 30px;
  background: linear-gradient(to top, #030 66%, #000);
  border-radius: 0px 0px 20px 20px;
}

section#version-body ul {
  flex-grow: 1;
}

section#version-body li {
  padding: 4px 0px;
}

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

section#tiles {
  width: calc(100% - 40px);
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: center;
  margin: 30px 0px 30px 20px;
  justify-content: center;
}
@media screen and (max-width: 500px) {
  section#tiles {
    margin: 30px 0px 30px 0px;
  }
}

section#tiles a {
  color: #bbb;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  transition-property: color;
  transition-duration: 300ms;
}

section#tiles a:hover {
  color: #00ff00;
}

section#tile {
  padding: 15px;
  background-color: #2a2a2a;
  border-color: transparent;
  border-style: solid;
  border-width: 5px;
  border-radius: 5px;
  box-sizing: border-box;
  position: relative;
  width: 402px;
  align-content: center;
  transition-property: background-color, border-color;
  transition-duration: 300ms;
}

section#tile:hover {
  background-color: #222;
  border-color: #00ff00;
}

section#more {
  position: absolute;
  right: 0px;
  bottom: 0px;
}

section#more a {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px;
  background-color: #333;
  border-radius: 2px;
  position: relative;
}

section#more a:hover {
  background-color: #0f0;
  transition-property: background-color;
  transition-duration: 300ms;
}


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

section#blupi-gaga{
  position: fixed;
  bottom: 0px;
  left: calc(50% - 80px);
  z-index: 11;
  animation-name: blupi-pointer-animate;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  pointer-events: none;
}
@keyframes blupi-pointer-animate {
  0%   {transform: translate(0px, 160px);}
  75%  {transform: translate(0px, 160px);}
  78%  {transform: translate(0px, -50px);}
  92%  {transform: translate(0px, 160px);}
  100% {transform: translate(0px, 160px);}
}

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

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;
  margin: 10px -10px 0px -30px;
}
@media screen and (max-width: 800px) {
  footer {
    padding: 0px 0px 0px 30px;
  }
}

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;
}


section#key {
  max-width: 820px;
  width: calc(100% - 20px);
  display: flex;
  margin-bottom: 20px;
}

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

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