/* reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body */

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #021526, #03346e);
  color: white;
  text-align: center;

  display: flex;
  flex-direction: column;

  min-height: 100vh;
  overflow: hidden;
}

/* hero section */

.hero {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 20px;
  position: relative;
}

/* judul */

h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

/* subtitle */

.subtitle {
  opacity: 0.8;
  margin-bottom: 25px;
  font-size: 18px;
}

/* tombol utama */

button {
  padding: 12px 24px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  background: #ffd700;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
}

/* pesan ucapan */

.message {
  margin-top: 25px;
  max-width: 500px;
  line-height: 1.7;
  font-size: 18px;

  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;

  backdrop-filter: blur(10px);
}

/* hidden */

.hidden {
  display: none;
}

/* footer */

footer {
  padding: 8px;
  font-size: 14px;
  opacity: 0.7;
}

/* ================= */
/* bulan */
/* ================= */

.moon {
  position: absolute;
  top: 80px;
  right: 140px;

  width: 120px;
  height: 120px;
  border-radius: 50%;

  background: #f5f3ce;

  /* bentuk sabit */

  -webkit-mask: radial-gradient(circle at 75% 50%, transparent 55%, black 56%);
  mask: radial-gradient(circle at 75% 50%, transparent 55%, black 56%);

  /* glow */

  box-shadow:
    0 0 25px rgba(245, 243, 206, 0.7),
    0 0 60px rgba(245, 243, 206, 0.4);

  /* animasi */

  animation: moonFloat 6s ease-in-out infinite;
}

@keyframes moonFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ================= */
/* background stars */
/* ================= */

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

  background-image: radial-gradient(white 1px, transparent 1px);

  background-size: 40px 40px;

  opacity: 0.3;

  animation: moveStars 60s linear infinite;
}

@keyframes moveStars {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-200px);
  }
}

/* ================= */
/* stars blinking */
/* ================= */

.star {
  position: fixed;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;

  animation: starBlink 2s infinite ease-in-out;
}

/* animasi kedip */

@keyframes starBlink {
  0% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }

  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
}

/* posisi beberapa bintang */

.star1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}
.star2 {
  top: 30%;
  left: 80%;
  animation-delay: 1s;
}
.star3 {
  top: 60%;
  left: 40%;
  animation-delay: 0.5s;
}
.star4 {
  top: 20%;
  left: 60%;
  animation-delay: 1.5s;
}
.star5 {
  top: 75%;
  left: 15%;
  animation-delay: 0.7s;
}
.star6 {
  top: 50%;
  left: 90%;
  animation-delay: 1.2s;
}

/* ================= */
/* kontrol musik */
/* ================= */

.music-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.music-controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  font-size: 22px;
}

/* ================= */
/* Mobile Responsive */
/* ================= */

@media (max-width: 768px) {
  .hero {
    padding: 40px 20px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  button {
    font-size: 16px;
    padding: 10px 20px;
  }

  /* tombol musik */

  .music-controls {
    gap: 12px;
    margin-top: 12px;
  }

  .music-controls button {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  /* pesan ucapan */

  .message {
    font-size: 16px;
    max-width: 90%;
    padding: 18px;
  }

  /* bulan */

  .moon {
    width: 90px;
    height: 90px;
    top: 40px;
    right: 40px;
  }
}

/* ================= */
/* Small Phones */
/* ================= */

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 15px;
  }

  .moon {
    width: 70px;
    height: 70px;
    top: 30px;
    right: 20px;
  }

  .music-controls button {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}
