.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: sparkle 2s linear infinite;
  box-shadow: 0 0 5px white;
  opacity: 0.8;
}

@keyframes sparkle {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(20px) scale(0.5); opacity: 0; }
}
body {
  margin: 0;
  height: 100vh;
  background: linear-gradient(to bottom, #ffe6f0, #fff);
  overflow: hidden;
  font-family: sans-serif;
  text-align: center;
  padding-top: 40px;
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, white, pink);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkleFade 2s ease-out forwards;
  z-index: 9999;
}

@keyframes sparkleFade {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
.gift {
  width: 80px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  animation: floatGift 2s infinite ease-in-out;
  z-index: 9999;
}

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

body {
  background: linear-gradient(to bottom right, #ffc3e0, #ffdee9);
  font-family: sans-serif;
  text-align: center;
  padding-top: 50px;
  height: 100vh;
  margin: 0;
}

.cinnamoroll {
  width: 120px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  animation: floatGift 2s infinite ease-in-out;
  cursor: pointer;
  z-index: 9999;
}

@keyframes floatGift {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.scroll-container {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  background: transparent;
}

.scroll-track {
  display: inline-block;
  white-space: nowrap;
  animation: scrollLoop 30s linear infinite;
}

.scroll-track img {
  height: 140px;
  margin: 0 10px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@keyframes scrollLoop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.gallery-container {
  overflow-x: auto;
  white-space: nowrap;
  padding: 20px;
  margin: 20px;
}

.gallery {
  display: flex;
  gap: 12px;
}

.gallery img {
  height: 150px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}
.judul {
  font-size: 24px;
  font-weight: bold;
  color: #e91e63;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
}
body {
  background: linear-gradient(to bottom right, rgba(20,20,50,0.8), rgba(10,10,30,0.8));
  color: white;
}
  cursor: pointer; z-index: 9999;
}
#musicSelect {
  position: fixed;
  bottom: 140px;
  left: 20px;
  padding: 10px;
  border-radius: 10px;
  z-index: 9999;
}

.music-controls {
  position: fixed;
  bottom: 80px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.music-btn {
  background: #ffd1dc;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  cursor: pointer;
}

.music-btn:hover {
  background: #ff8db3;
}
#modeToggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #ffc3e0;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 9999;
}
#modeToggle:hover {
  background: #ff90b3;
}

/* MODE SIANG (default) */
body {
  background: linear-gradient(to bottom right, #fefcea, #f1daff);
  color: #333;
  transition: background 0.6s ease;
}

/* MODE MALAM */
body.night-mode {
  background: radial-gradient(circle at top, #0d1b2a, #1b263b);
  color: #fff;
}
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  display: none; /* disembunyikan dulu */
}
body.night-mode #stars {
  display: block; /* muncul saat mode malam aktif */
}
.page-btn {
  display: inline-block;
  padding: 10px 16px;
  margin: 20px;
  background: #ffb6c1;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.page-btn:hover {
  background: #ff80a5;
}
.judul-halaman {
  text-align: center;
  margin-top: 20px;
  font-size: 22px;
  color: #e91e63;
}

.flipbook {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.page {
  display: none;
  width: 80%;
  max-width: 400px;
  background: #fff0f5;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  font-size: 16px;
}

.flip-controls {
  margin-top: 10px auto 0;
  text-align: center;
}

.flip-controls button {
  background: #ffb6c1;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin: 0 5px;
  cursor: pointer;
}

.flip-controls button:hover {
  background: #ff80a5;
}
.page-btn {
  display: inline-block;
  margin-top: 15px;
  background: #ffb6c1;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: 0.2s ease;
}

.page-btn:hover {
  background: #ff8aa5;
}
