/* Cosmic Background */
.cosmic-background {
  overflow-y: auto;
  z-index: -1;
  width: 100vw;
  height: 100vh;

  background-color: #000;
  background-image: radial-gradient(
      circle at center,
      transparent 10%,
      rgba(0, 0, 0, 0.3) 20%,
      rgba(0, 0, 0, 0.8) 60%,
      #000 100%
    ),
    url("/images/space-bg.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  overscroll-behavior: none;
}

/* Shooting star animation */
@keyframes shooting-star {
  0% {
    transform: translateX(0) translateY(0) rotate(45deg);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateX(500px) translateY(500px) rotate(45deg);
    opacity: 0;
  }
}

.shooting-star {
  position: absolute;
  width: 100px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shooting-star 4s linear infinite;
  opacity: 0;
}

.shooting-star:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 1s;
}

.shooting-star:nth-child(2) {
  top: 30%;
  left: 65%;
  animation-delay: 3.5s;
}
