@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@300;600&family=Sansita+Swashed:wght@300;600;900&display=swap');
body {
  font-family: 'League Spartan', sans-serif;
}

  .button_container, .button_container.active {
    position: absolute;
    top: 0;
    left: 0;
    height: 14px;
    width: 123px;
    cursor: pointer;
    padding: 18px 0;
    border-radius: 25px;
    z-index: 100;
    transition: opacity .25s ease;
    background: #2467b2;
  }
  .button_container.active {
    background: #36A4D9;
  }
  .button_container:hover {
    background: #36A4D9;
  }
  .button_container.active .top {
    -webkit-transform: translateY(9px) translateX(0) rotate(45deg);
            transform: translateY(9px) translateX(0) rotate(45deg);
    background: #ECECEC;
  }
  .button_container.active .middle {
    opacity: 0;
    background: #ECECEC;
  }
  .button_container.active .bottom {
    -webkit-transform: translateY(-9px) translateX(0) rotate(-45deg);
            transform: translateY(-9px) translateX(0) rotate(-45deg);
    background: #ECECEC;
  }
  .button_container span {
    background: #050505;
    border: none;
    height: 3px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .35s ease;
    cursor: pointer;
  }
  .button_container span:nth-of-type(2) {
    top: 9px;
  }
  .button_container span:nth-of-type(3) {
    top: 18px;
  }

  .overlay {
    position: fixed;
    background: rgba(45,44,58,.95); 
    background-size: 413px auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s, height .35s;
    overflow: hidden;
  }
  #facebody-page .overlay {
    background: rgba(45,44,58,.95); 
    background-size: 413px auto;
  }
  .overlay.open {
    opacity: 1;
    visibility: visible;
    height: 100%;
  }
  .overlay.open li {
    -webkit-animation: fadeInRight .5s ease forwards;
            animation: fadeInRight .5s ease forwards;
    -webkit-animation-delay: .35s;
            animation-delay: .35s;
  }
  .overlay.open li:nth-of-type(2) {
    -webkit-animation-delay: .4s;
            animation-delay: .4s;
  }
  .overlay.open li:nth-of-type(3) {
    -webkit-animation-delay: .45s;
            animation-delay: .45s;
  }
  .overlay.open li:nth-of-type(4) {
    -webkit-animation-delay: .50s;
            animation-delay: .50s;
  }

/* Rozhraní pro PC, notebook, tablet */
@media screen and (min-width: 1100px) {
  /* Vlastní nastavení obsahu */
  .overlay-face { width: 600px; height: 490px; position: absolute; margin: calc(50vh - 200px) 0 0 calc(50% - 300px);}
  .overlay-pozice-a,.overlay-pozice-b, .overlay-pozice-c, .overlay-pozice-d, .overlay-pozice-e, .overlay-pozice-f, .overlay-pozice-g { width: 600px; height: 70px; position: absolute; margin: 0; text-align: left; overflow: hidden;}
  .overlay-pozice-b { margin: 75px 0 0 0;}
  .overlay-pozice-c { margin: 150px 0 0 0;}
  .overlay-pozice-d { margin: 225px 0 0 0;}
  .overlay-pozice-e { margin: 300px 0 0 0;}
  .overlay-pozice-f { margin: 375px 0 0 0;}
  .overlay-pozice-g { margin: 450px 0 0 0;}
  .overlay-button { width: 536px; height: 30px; position: absolute; margin: 0; font-weight: 600; font-size: 30px; padding: 17px 30px; border-radius: 30px; transition: all 0.35s ease-in-out; color: #fff;}
  a.overlay-button { color: #efefef; text-decoration: none; border: 2px solid rgba(255,255,255,.05); background: rgba(45,44,58,.0);}
  a.overlay-button:hover { color: #fff; border: 2px solid #36A4D9; background: rgba(45,44,58,.90);}
}

/* Rozhraní pro PC, notebook, tablet */
@media screen and (min-width: 768px) and (max-width: 1099px) {
  /* Vlastní nastavení obsahu */
  .overlay-face { width: 600px; height: 490px; position: absolute; margin: calc(50vh - 200px) 0 0 calc(50% - 300px);}
  .overlay-pozice-a,.overlay-pozice-b, .overlay-pozice-c, .overlay-pozice-d, .overlay-pozice-e, .overlay-pozice-f, .overlay-pozice-g { width: 600px; height: 70px; position: absolute; margin: 0; text-align: left; overflow: hidden;}
  .overlay-pozice-b { margin: 75px 0 0 0;}
  .overlay-pozice-c { margin: 150px 0 0 0;}
  .overlay-pozice-d { margin: 225px 0 0 0;}
  .overlay-pozice-e { margin: 300px 0 0 0;}
  .overlay-pozice-f { margin: 375px 0 0 0;}
  .overlay-pozice-g { margin: 450px 0 0 0;}
  .overlay-button { width: 536px; height: 30px; position: absolute; margin: 0; font-weight: 600; font-size: 30px; padding: 17px 30px; border-radius: 30px; transition: all 0.35s ease-in-out; color: #fff;}
  a.overlay-button { color: #efefef; text-decoration: none; border: 2px solid rgba(255,255,255,.05); background: rgba(45,44,58,.0);}
  a.overlay-button:hover { color: #fff; border: 2px solid #36A4D9; background: rgba(45,44,58,.90);}
}

/* Rozhraní pro PC, notebook, tablet */
@media screen and (min-width: 480px) and (max-width: 767px) {
  /* Vlastní nastavení obsahu */
  .overlay-face { width: 470px; height: 230px; position: absolute; margin: 120px 0 0 calc(50% - 235px);}
  .overlay-pozice-a,.overlay-pozice-b, .overlay-pozice-c, .overlay-pozice-d, .overlay-pozice-e, .overlay-pozice-f, .overlay-pozice-g { width: 230px; height: 50px; position: absolute; margin: 0; text-align: left; overflow: hidden;}
  .overlay-pozice-b { margin: 0 0 0 240px;}
  .overlay-pozice-c { margin: 60px 0 0 0;}
  .overlay-pozice-d { margin: 60px 0 0 240px;}
  .overlay-pozice-e { margin: 120px 0 0 0;}
  .overlay-pozice-f { margin: 120px 0 0 240px;}
  .overlay-pozice-g { margin: 180px 0 0 120px;}
  .overlay-button { width: 186px; height: 20px; position: absolute; margin: 0; font-weight: 600; font-size: 20px; text-align: center; padding: 13px 20px; border-radius: 25px; transition: all 0.35s ease-in-out; color: #fff;}
  a.overlay-button { color: #efefef; text-decoration: none; border: 2px solid rgba(255,255,255,.05); background: rgba(45,44,58,.0);}
  a.overlay-button:hover { color: #fff; border: 2px solid #36A4D9; background: rgba(45,44,58,.90);}
}

/* Rozhraní pro PC, notebook, tablet */
@media screen and (max-width: 479px) {
  /* Vlastní nastavení obsahu */
  .overlay-face { width: 280px; height: 385px; position: absolute; margin: 200px 0 0 calc(50% - 140px);}
  .overlay-pozice-a,.overlay-pozice-b, .overlay-pozice-c, .overlay-pozice-d, .overlay-pozice-e, .overlay-pozice-f, .overlay-pozice-g { width: 280px; height: 50px; position: absolute; margin: 0; text-align: left; overflow: hidden;}
  .overlay-pozice-b { margin: 55px 0 0 0;}
  .overlay-pozice-c { margin: 110px 0 0 0;}
  .overlay-pozice-d { margin: 165px 0 0 0;}
  .overlay-pozice-e { margin: 220px 0 0 0;}
  .overlay-pozice-f { margin: 275px 0 0 0;}
  .overlay-pozice-g { margin: 330px 0 0 0;}
  .overlay-button { width: 236px; height: 22px; position: absolute; margin: 0; font-weight: 600; font-size: 22px; padding: 12px 20px; border-radius: 25px; transition: all 0.35s ease-in-out; color: #fff;}
  a.overlay-button { color: #efefef; text-decoration: none; border: 2px solid rgba(255,255,255,.05); background: rgba(45,44,58,.0);}
  a.overlay-button:hover { color: #fff; border: 2px solid #36A4D9; background: rgba(45,44,58,.90);}
  .overlay-button-active { width: 236px; height: 22px; position: absolute; margin: 0; font-weight: 600; font-size: 22px; padding: 12px 20px; border-radius: 25px; transition: all 0.35s ease-in-out; color: #fff; border: 2px solid #36A4D9; background: rgba(45,44,58,.90);}
}

@-webkit-keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}