$shooting-time: 3000ms;

@keyframes slideInUp {
  0% {
    transform: translateY(3000%);
  }
  100% {
    transform: translateY(0);
  }
}

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

@keyframes fontSizeTitle {
  0% {
    font-size: 1em;
  }
  100% {
    font-size: 2em;
  }

}

.background-video {
  position: relative;
  height: 100vh; /* Full viewport height */
  width: 100%; /* Full width */
  overflow: hidden;
}

.dark-container {
  position:relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: #000220;
}
.background-video video {
  position: absolute;
  width: 100%;
  height: 100vh;
  object-fit: cover; /* Ensures the video covers the container */
  z-index: -1; /* Places the video behind the content */
}

.content {
  color: white;
  position: absolute;
  top: 50px;
  left: 20px;
  right: 20px;
  z-index: 100;
  text-align: center;
  font-family: Arial, sans-serif;
  padding: 20px;
}

.text-announce {
  margin-top: 15%;
  font-size: 2em;
  font-weight: bold;
  animation: slideInUp 1s  forwards, fontSizeTitle 1s forwards, opacityIn 1s forwards;
}

.shooting_star {
  position: absolute;
  left: 10%;
  top: 10%;
  // width: 100px;
  height: 2px;
  background: linear-gradient(-45deg, rgb(243, 227, 6), rgba(0, 0, 255, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 6px rgb(250, 253, 148));
  animation:
          tail $shooting-time ease-in-out infinite,
          shooting $shooting-time ease-in-out infinite;

  &::before {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    // width: 30px;
    height: 2px;
    background: linear-gradient(-45deg, rgba(0, 0, 255, 0), rgba(95, 145, 255, 1), rgba(0, 0, 255, 0));
    transform: translateX(50%) rotateZ(45deg);
    border-radius: 100%;
    animation: shining $shooting-time ease-in-out infinite;
  }

  &::after {
    // CodePen Error
    // @extend .shooting_star::before;

    content: '';
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    // width: 30px;
    height: 2px;
    background: linear-gradient(-45deg, rgba(0, 0, 255, 0), rgba(95, 145, 255, 1), rgba(0, 0, 255, 0));
    transform: translateX(50%) rotateZ(45deg);
    border-radius: 100%;
    animation: shining $shooting-time ease-in-out infinite;
    transform: translateX(50%) rotateZ(-45deg);
  }

  @for $i from 1 through 20 {
    &:nth-child(#{$i}) {
      $delay: random(9999) + 0ms;
      top: calc(50% - #{random(2000) - 200px});
      left: calc(50% - #{random(300) + 0px});
      animation-delay: $delay;
      opacity: random(50) / 100 + 0.5;

      &::before,
      &::after {
        animation-delay: $delay;
      }
    }
  }
}

@keyframes tail {
  0% {
    width: 0;
  }

  30% {
    width: 100px;
  }

  100% {
    width: 0;
  }
}

@keyframes shining {
  0% {
    width: 0;
  }

  50% {
    width: 30px;
  }

  100% {
    width: 0;
  }
}

@keyframes shooting {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(300px);
  }
}

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

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


@keyframes glow {
  0% {
    text-shadow: 0 0 2px #f5f5f5, 0 0 10px #f5f5f5, 0 0 20px #ffc14d, 0 0 30px #fff1e0, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 75px #ff4da6;
  }
  100% {
    text-shadow: 0 0 20px #ffffff, 0 0 20px #ff0080, 0 0 30px #ff0080, 0 0 40px #ff0080, 0 0 50px #ff0080, 0 0 75px #ff0080, 0 0 100px #ff0080;
  }
}
.night {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateZ(45deg);
   animation: sky 100000ms linear infinite;
}

.score {
  background-color: #f8b12c;
  border-radius: 50%;
  padding: 10px;
  text-shadow: 0 0 5px #f5f5f5, 0 0 10px #f5f5f5, 0 0 20px #ff4da6, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 75px #ff4da6;
  animation: glow 2s infinite alternate;
}