body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

.centered-square {
  background-color: #f0f0f0;
  /* Change this to your desired color */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  /* Adjust the value to control the size of the square */
  height: 100vw;
  /* Make sure to use the same value as width to maintain a square */
}

@media (min-width: 576px) {
  .centered-square {
    width: 576px;
    /* Adjust the value to control the size of the square */
    height: 576px;
  }
}

@media (min-width: 768px) {
  .centered-square {
    width: 620px;
    /* Adjust the value to control the size of the square */
    height: 620px;
  }
}

.games-container {
  position: absolute;
  top: 50%;
  right: 20px;
  /* Adjust the value to set the distance from the right side */
  transform: translateY(-50%);
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
}

.games-container button {
  display: block;
  margin-bottom: 5px;
  padding: 8px 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.games-container button:last-child {
  margin-bottom: 0;
}

.border {
  box-shadow: 0 0 15px black;
}


@media (prefers-color-scheme: dark) {

  html,
  .games-container button {
    background-color: #202124;
  }

  .games-container,
  .centered-square {
    background-color: #434344;
    background-color: #434344;
  }
}


.loader-container {
  z-index: 99999;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 1;
}

.loader-container.hidden-anim {
  animation: hide 0.15s 1 linear forwards;
}

.loader {
  top: 50%;
  left: 50%;
  translate: -50% -50%;

  width: 8%;
  height: 8%;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border-style: solid;
  border-width: 0.6vh;
  border-color: #7800ff #7800ff transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after,
.loader::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #ff4f12 #ff4f12;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border-width: 0.6vh;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}

.loader::before {
  width: 60%;
  height: 60%;
  border-width: 0.6vh;
  border-color: #7800ff #7800ff transparent transparent;
  animation: rotation 1.5s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}


@keyframes hide {
  0% {
    opacity: 1;
  }

  99% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    display: none;
  }
}

.burger-menu_button {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 30;
  width: 42px;
  height: 42px;
  border-radius: 8px;

  background-color: rgba(255, 255, 255, 0.5);
}

.burger-menu_button:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.burger-menu_nav {
  padding: 64px 10px 32px;
  position: fixed;
  top: 0;
  z-index: 20;
  display: flex;
  flex-flow: column;
  height: calc(100% - 64px - 32px);
  background-color: #434344;
  overflow-y: auto;
  right: -100%;
  -webkit-transition: 0.8s;
  -moz-transition: 0.8s;
  -o-transition: 0.8s;
  transition: 0.8s;
}

.burger-menu_active .burger-menu_nav {
  right: 0;
  -webkit-transition: 0.4s;
  -moz-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.burger-menu_overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
}

.burger-menu_active .burger-menu_overlay {
  display: block;
  background-color: rgba(0, 0, 0, 0.4);
}

.hamburger-lines {
  display: block;
  height: 20px;
  width: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: #0e2431;
}

.hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
}

.hamburger-lines .line2 {
  transition: transform 0.2s ease-in-out;
}

.hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
}

.burger-menu_active .line1 {
  transform: rotate(45deg);

}
.burger-menu_active .line2 {
  transform: scaleY(0);

}
.burger-menu_active .line3 {
  transform: rotate(-45deg);
}

.burger-menu_active .hamburger-lines {
  transform: translate(-30%, -50%);
}

/* 
  scroll bars on frontend
*/
@media screen and (max-width: 1000px) {
  #container.show-scroll-areas::before {
    width: 10.6666666667vw;
    height: 100%;
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    content: "";
    background-color: #0e2431;
    opacity: 0.3;
    z-index: 200;
  }

  #container.show-scroll-areas::after {
    width: 10.6666666667vw;
    height: 100%;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    content: "";
    background-color: #0e2431;
    opacity: 0.3;
    z-index: 200;
  }
}