body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #1e1e2f, #3a3a5f);
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

header {
  text-align: center;
  padding: 50px 20px 20px;
  z-index: 1;
  position: relative;
}

header h1 {
  font-size: 3em;
  color: #ffd700;
}

header p {
  font-size: 1.2em;
  color: #ffe;
}

.image-section {
  text-align: center;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.image-section img {
  border-radius: 20px;
  max-width: 300px;
  border: 4px solid #fff;
  box-shadow: 0 0 20px #ffd700;
}


.love-letter {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  line-height: 1.7;
  font-size: 1.1em;
  z-index: 1;
  position: relative;
}

.chat-bubble {
  max-width: 60%;
  padding: 12px 18px;
  margin: 15px;
  border-radius: 18px;
  font-size: 1em;
  background: rgba(255,255,255,0.9);
  color: #333;
  position: relative;
  z-index: 2;
}

.chat-bubble.left {
  background: #fff8dc;
  margin-left: 20px;
  border-top-left-radius: 0;
  animation: fadeInLeft 1s ease-out;
}

.chat-bubble.right {
  background: #f0ffff;
  margin-right: 20px;
  border-top-right-radius: 0;
  text-align: right;
  animation: fadeInRight 1.5s ease-out;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.gift-button-container {
  text-align: center;
  margin: 20px 0;
  z-index: 2;
  position: relative;
}

.gift-button-container button {
  background: #ff69b4;
  color: white;
  font-size: 1.2em;
  padding: 10px 25px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px #fff;
}

.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
}

.popup-content {
  background-color: #fff;
  color: #000;
  margin: 15% auto;
  padding: 30px;
  border-radius: 15px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  animation: popupZoom 0.3s ease;
  position: relative;
}

@keyframes popupZoom {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.marquee {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffd700;
  color: #1e1e2f;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  padding: 8px;
  white-space: nowrap;
  overflow: hidden;
  z-index: 999;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.moon {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 35% 35%, #ffffdd, #e6dca5, #c2b280, #4a4a4a);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(255, 255, 200, 0.6), 0 0 120px rgba(255, 255, 160, 0.3);
  z-index: 0;
}


@keyframes rotateMoon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lantern-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.lantern {
  position: absolute;
  width: 30px;
  height: 40px;
  background: radial-gradient(#ff4500, #ff6347);
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 0 10px #ffa500;
  opacity: 0.8;
  animation: floatLantern 10s linear infinite;
}

@keyframes floatLantern {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(-30px); opacity: 0; }
}

.petals {
  position: fixed;
  top: -10px;
  width: 15px;
  height: 15px;
  background: pink;
  border-radius: 50%;
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(100vh) rotate(360deg); }
}

#shooting-star {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
