body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(270deg, #0d1d31, #2a003f);
  background-size: 200% 200%;
  animation: gradient-smooth 10s ease infinite; /* Smoother and faster */
  overflow: hidden;
}

@keyframes gradient-smooth {
  0% {
      background-position: 0% 50%;
  }
  100% {
      background-position: 100% 50%;
  }
}

@media (max-width: 768px) {
  body {
    background: linear-gradient(270deg, #0d1d31, #2a003f); /* Static background for mobile */
    animation: none;
  }
}


.message {
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
  z-index: 10; /* Ensure message is above stars */
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.star {
  position: absolute;
  bottom: 100%;
  background: radial-gradient(circle, #ffd700 0%, #c0c0c0 70%, rgba(255, 255, 255, 0) 100%); /* Twinkling effect */
  opacity: 0.9;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 25px rgba(192, 192, 192, 0.6); /* Shiny effect */
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
      transform: translateY(0);
      opacity: 1;
  }
  100% {
      transform: translateY(100vh);
      opacity: 0; /* Fade out while falling */
  }
}

@keyframes gradient {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}


/*text part*/
@keyframes pulse-glow {
  0% {
    text-shadow: 
      0 0 5px rgba(255, 255, 255, 0.8), 
      0 0 10px rgba(255, 255, 255, 0.6), 
      0 0 15px rgba(255, 215, 0, 1), 
      0 0 20px rgba(255, 215, 0, 0.8), 
      0 0 30px rgba(255, 215, 0, 0.6);
  }
  50% {
    text-shadow: 
      0 0 10px rgba(255, 255, 255, 1), 
      0 0 20px rgba(255, 255, 255, 0.8), 
      0 0 30px rgba(0, 255, 255, 1), 
      0 0 40px rgba(0, 255, 255, 0.8);
  }
  100% {
    text-shadow: 
      0 0 5px rgba(255, 255, 255, 0.8), 
      0 0 10px rgba(255, 255, 255, 0.6), 
      0 0 15px rgba(255, 215, 0, 1), 
      0 0 20px rgba(255, 215, 0, 0.8), 
      0 0 30px rgba(255, 215, 0, 0.6);
  }
}

#fortune {
  color: #fff; /* Keep text color white */
  text-align: center;
  font-size: 3em; /* Increased size for more impact */
  font-weight: 700; /* Ensure boldness */
  animation: pulse-glow 3s infinite; /* Pulsing animation */
  text-shadow: 
    0 0 10px rgba(0, 0, 0, 0.8), /* Stronger black shadow */
    0 0 20px rgba(0, 0, 0, 0.5); /* Additional shadow for depth */
}