html, body {
    overscroll-behavior: none;
    touch-action: manipulation;
    overflow: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}
* {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Older Firefox */
  -ms-user-select: none;     /* Internet Explorer */
}
.playerContainer {
  width: 100%;
  height: calc(50vh - 100px);
  z-index: 20;
  pointer-events: none;
  position: absolute;
}
.playerContainer .intro {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  position: absolute;
}
.playerContainer .intro .content {
  width: 100%;
}
.playerContainer .rank_img {
  width: 140px;
  height: 140px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background-size: cover;
  background-position: center;
}
.playerContainer.opponent {
  bottom: 50vh;
  left: 0px;
}
.playerContainer.user {
  top: 50vh;
  left: 0px;
}
.playerContainer.opponent .intro {
  right: 50%;
}
.playerContainer.user .intro {
  left: 50%;
}
.loader {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  transition-duration: 0.2s;
  pointer-events: auto;
  opacity: 1;
  filter: blur(0px);
  background-color: #1E1E1E;
  transition-duration: 0.5s;
}
.loader .logoAni img {
  opacity: 1;
}
.loader.hidden {
  transition-duration: 0.5s;
  opacity: 0;
  filter: blur(30px);
  pointer-events: none;
}
body {
  background-color: #1E1E1E;
  margin: 0px;
  padding: 0px;
}
body::-webkit-scrollbar {
    display: none;
}

/* Container to ensure the image fits 100% width */
.image-container {
  width: 100%;
  height: 100vh; /* You can adjust this based on your needs */
  overflow: hidden; /* Ensures the image doesn't go outside the container */
  position: absolute;
  top: 0;
  z-index: 0;
  left: 0;
}
.image-container .overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
  background: linear-gradient(0deg, #1e1e1e, #1e1e1e00);
}
.button-yellow {
  background: #EEC308;
  height: 58px;
  font-size: 22px;
  border: 1.5px solid black;
  width: 140px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  transition: 0.4s;
  box-shadow: 0px 4px 0 #00000047;
  transform: skewX(-9deg);
  text-transform: uppercase;
  margin-bottom: 24px;
  border-radius: 5px;

  text-shadow: -2px 2px black, 0 1px black, 1px 0 black, 0 -1px black;
  font-weight: 900;
  float: right;
  margin-right: 20px;
}
.button-yellow:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 200;
  background-color: #FBEF43;
  height: 4px;
}
.button-yellow:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background-color: #A5532D;
  height: 4px;
}
#canvas3d {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
}
/* The image that will move */
.animated-image {
  position: absolute;
  top: 0px; /* Start the image off-screen at the bottom */
  width: 100%; /* Scale the image to 100% width */
  animation: moveUp 30s linear infinite; /* Adjust the duration (10s) as needed */
  opacity: 0.023;
}

@keyframes moveUp {
  0% {
    top: 0px; /* Start below the visible area */
  }
  100% {
    top: calc(-400vw + 100vh); /* End when the top of the image is fully visible */
  }
}


.backVid {
  position: absolute;
  width: 200px;
  left: calc(50% - 100px);
  z-index:2;
  top: -20px;
}
.frontVid {
  position: absolute;
  width: 300px;
  left: calc(50% - 150px);
  z-index:4;
  top: 20px;
}

.game-menu {
    position: fixed;
    width: 100%;
    bottom: 0;
    height: 80px;
    top: calc(100% - 80px);
    z-index: 999; /* Ensure it's on top of other content */
}

.logoAni {
  position: absolute;
  width: 280px;
  height: 168px;
  left: calc(50% - 140px);
  top: calc(50% - 160px);
  transform: scale(1.2);
}
.logoAni h1 {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: -50px;
  text-align: center;
  color: white;
}
.logoAni img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
}
.logoAni .first {
  z-index: 4;
  animation-name: first;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-direction: normal;
}
.logoAni .second {
  z-index: 3;
  animation-name: second;
  animation-delay: 0.5s;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-direction: normal;
}
.logoAni .third {
  z-index: 2;
  animation-name: third;
  animation-delay: 0.5s;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-direction: normal;
}
.logoAni .fourth {
  z-index: 5;
  animation-name: fourth;
  animation-delay: 1s;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-direction: normal;
}

@keyframes first {
  0% {
    opacity: 0;
    filter: blur(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
  }
}
@keyframes fourth {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes second {
  0% {
    opacity: 0;
    transform: rotate(-55deg);
  }

  40% {
    opacity: 1;
    transform: rotate(15deg);
  }
  50% {
    opacity: 1;
    transform: rotate(0deg);
  }

  60% {
    opacity: 1;
    transform: rotate(15deg);
  }
  70% {
    opacity: 1;
    transform: rotate(0deg);
  }

  80% {
    opacity: 1;
    transform: rotate(15deg);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg);
  }
}
@keyframes third {
  0% {
    opacity: 0;
    transform: rotate(55deg);
  }

  40% {
    opacity: 1;
    transform: rotate(-15deg);
  }
  50% {
    opacity: 1;
    transform: rotate(0deg);
  }

  60% {
    opacity: 1;
    transform: rotate(-15deg);
  }
  70% {
    opacity: 1;
    transform: rotate(0deg);
  }

  80% {
    opacity: 1;
    transform: rotate(-15deg);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg);
  }
}
