@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Light mode */
@media (prefers-color-scheme: light) {
  body {
    background: radial-gradient(ellipse at top, #c2e9fb 0%, #a1c4fd 100%);
    color: #2d2a5c;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body {
    background: radial-gradient(ellipse at top, #101119 0%, #0e0f18 100%);
    color: #f8f8ff;
  }
}

/* Light mode styles for glow-container */
@media (prefers-color-scheme: light) {
  .glow-container {
    background: white;
    color: #2d2a5c;
  }
}

/* Dark mode styles for glow-container */
@media (prefers-color-scheme: dark) {
  .glow-container {
    background: #2e2e3a;
    color: #f0f0ff;
    box-shadow: 0 0 30px rgba(180, 170, 255, 0.3);
  }
}

.glow-container {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(123, 104, 238, 0.3);
  max-width: 90%;
}

h1 {
  font-size: 3rem;
  animation: glow 2s ease-in-out infinite alternate;
}

button {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #9370db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

button:hover {
  background: #7b68ee;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #b19cd9;
  }
  to {
    text-shadow: 0 0 20px #dda0dd;
  }
}

/* Sparkles! */

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  animation: sparkleFade 0.6s ease-out forwards;
}

@keyframes sparkleFade {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Starry Background */

.starry-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}