@import '../../../styles';
@keyframes slideDown {
  0% {
    top: -100vh;
  }
  100% {
    top: 0;
  }
}
@keyframes slideRight {
  0% {
    left: -100vh;
  }
  100% {
    left: 0;
  }
}

@keyframes slideLeft {
  0% {
    right: -100vh;
  }
  100% {
    right: 0;
  }
}

@keyframes slideInUp {
  0% {
    bottom: -100px;
  }
  100% {
    bottom: 25%;
  }
}

@keyframes opacityIn {
  0% {
    opacity: 0;
  }
  100% {
  opacity: 0.84;
  }
}




.versus {
  background-color: $thg_brown;
  z-index: 20000;
  position: fixed;
  top: -100vh;
  left: 0;
  width: 100%;
  height: 100vh;
  animation: slideDown 1s ease forwards;
}
.versus:before {
  content: "VS";
  position: absolute;
  font-size: 20vw; /* Large size for the background */
  color: rgba(255, 255, 255, 0.2); /* Light opacity */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  z-index: 22000; /* Puts it behind other content */
  pointer-events: none;
}

.players {
  height: 100vh;
}

/* Left player area */
.player-one {
  position: relative;
  width: 50%;
  height: 100%;
  background-color: #4a90e2;
  clip-path: polygon(0 0, 100% 0, 50% 100%, 0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  animation: slideRight 2s ease forwards;
}

/* Right player area */
.player-two {
  position: relative;
  width: 50%;
  height: 100%;
  background-color: #d9534f;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  animation: slideLeft 2s ease forwards;
}

.task {
  position: absolute;
  bottom: 0;
  width: 50%;
  background-color: white;
  opacity: 0.84;
  animation: slideInUp 3s ease forwards, opacityIn 1500ms linear;
}