/* General Reset */
:root{
  --dawn1:#1d2b64; /* night */
  --dawn2:#8f94fb;
  --sun:#fff5b1;
  --leaf:#ffbe76;
  --accent:#ff6b81;
  --wood:#704e2e;
  --bg:#fefaf5;
}
*{box-sizing:border-box;font-family:'Poppins',sans-serif;margin:0;padding:0}
body{overflow-x:hidden;overflow-y:auto;background:var(--bg);color:#333;cursor:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewport="0 0 32 32"><circle cx="16" cy="16" r="3" fill="%23ff6b81"/></svg>') 16 16,auto;}

/* Canvas sky covers entire viewport */
#sky{position:fixed;inset:0;z-index:-3;}

.btn{background:var(--accent);color:#fff;border:none;padding:.6rem 1.2rem;border-radius:10px;cursor:pointer;font-size:1rem;margin-top:1rem;transition:background .3s}
.btn:hover{background:#ff4757;}

.signpost{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);text-align:center;background:rgba(255,255,255,.75);padding:2rem 2.4rem;border-radius:18px;backdrop-filter:blur(6px);box-shadow:0 6px 20px rgba(0,0,0,.1);}

.acorn{position:fixed;width:28px;height:28px;background:var(--accent);border-radius:50%;box-shadow:0 0 8px 4px rgba(255,107,129,.6);pointer-events:none;z-index:999;}
.hidden{display:none;}

.clearing{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;width:90vw;max-width:600px;}
.hint{opacity:.7;font-size:.9rem;margin-top:.4rem;animation:pulse 1.8s infinite}
@keyframes pulse{0%,100%{opacity:.7}50%{opacity:1}}

/* Firefly Hollow */
.lantern{width:80px;height:100px;margin:0 auto;background:var(--wood);border-radius:8px 8px 50% 50%;position:relative;}
.lantern.broken::before{content:"";position:absolute;inset:12px 12px 0 12px;background:#555;border-radius:50%;}
.lantern.fixed::before{background:var(--sun);box-shadow:0 0 14px 6px var(--sun);} 

/* Story Log */
.log{height:260px;width:200px;margin:0 auto;background:var(--wood);border-radius:12px;padding:1rem;display:flex;align-items:center;justify-content:center;color:#fff;}
.log img{max-width:100%;max-height:100%;border-radius:8px;}

/* Pond */
.pond{width:260px;height:140px;margin:0 auto;border-radius:50%;background:linear-gradient(180deg,#b3eaff 0%,#7fd8ff 80%);position:relative;box-shadow:0 2px 8px rgba(0,0,0,.2) inset;}
.lilypads{list-style:none;display:flex;gap:12px;justify-content:center;margin-top:1rem;flex-wrap:wrap;}
.lilypads li{background:#97e97e;padding:.6rem 1rem;border-radius:50px;color:#034d05;font-weight:600;opacity:0;transform:translateY(10px);transition:all .6s}
.lilypads li.show{opacity:1;transform:translateY(0);}

/* Wish Grove */
.tree{width:160px;height:160px;margin:0 auto;background:#5e9732;border-radius:0 0 80px 80px;position:relative;overflow:hidden;}
.tree::before{content:"";position:absolute;bottom:-20px;left:68px;width:24px;height:80px;background:var(--wood);}

/* Falling leaves */
.leaf{position:absolute;width:22px;height:22px;background:var(--leaf);border-radius:4px;transform:rotate(10deg);opacity:.9;pointer-events:none;animation:fall 4s linear forwards;}
@keyframes fall{to{transform:translateY(120vh) rotate(180deg);opacity:0}}

/* Finale jars */
.finale{text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}
.jars{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:1.2rem 0;}
.jar{background:#ffeeb5;padding:.6rem 1rem;border-radius:12px;cursor:grab;user-select:none;font-weight:600;}
.satchel{width:140px;height:100px;margin:0 auto;border:3px dashed #555;border-radius:12px;line-height:100px;color:#555;font-size:.9rem}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: "Open Sans", sans-serif;
  color: #333;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  background: linear-gradient(to bottom right, #fbc2eb, #a18cd1);
  min-height: 100vh;
}

/* Force scrolling on mobile/desktop even with duplicate legacy rules */
html, body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* Container for hearts (positioned at top level) */
.heart-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Main Content Container */
.content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem;
  color: #fff;
  margin-top: 4rem;
}

.hero h1 {
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Hero Button */
.hero button {
  background-color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

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

/* Message Section */
.message-section {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
}

/* Preserve manual line breaks and spacing in the letter text */
.message-section p {
  white-space: pre-line;
}

.message-section h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #b83b5e;
}

/* Video Section */
.video-section {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.video-section h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #6a2c70;
}

.video-wrapper {
  margin: 1rem auto;
  max-width: 560px;
}

/* Reply Section */
.reply-section {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.reply-section h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #6a2c70;
}

.reply-section textarea {
  width: 80%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 2px solid #ccc;
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.reply-section button {
  background-color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 24px;
  color: black;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.reply-section button:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 4rem;
  color: #fff;
  font-weight: bold;
}
.footer p {
  margin: 0.5rem 0;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .video-section iframe {
    width: 90% !important;
    height: auto !important;
  }

  .reply-section textarea {
    width: 90%;
  }
}

/* =========================== */
/*   NEW STYLES FOR EID PAGE   */
/* =========================== */

/* Eid Poem Section */
.eid-poem-section {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  color: #333;
  font-size: 1.1rem;
}

.eid-poem-section p {
  line-height: 1.6;
  font-style: italic;
}

/* Eidiya Section */
.eidiya-section {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.eidiya-section h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  color: #6a2c70;
  margin-bottom: 1rem;
}

/* Number Pad */
.number-pad {
  display: inline-block;
  margin: 1rem 0;
  text-align: center;
}

.number-pad #amountInput {
  width: 200px;
  font-size: 1.5rem;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  background-color: #fff;
}

.number-pad .keys {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  grid-gap: 10px;
  justify-content: center;
  margin: 0 auto;
}

.number-pad .keys button {
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  width: 60px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.number-pad .keys button:hover {
  background-color: #f0f0f0;
}

.number-pad .clear {
  grid-column: span 3;
  background-color: #fad6e6;
  font-size: 1rem;
  font-weight: bold;
}

/* Eidiya Submit Button */
.submit-eid {
  display: inline-block;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  margin-bottom: 1rem;
}

.submit-eid:hover {
  transform: scale(1.05);
}

/* Celebrate Eid Link (top corner, if used in index.html) */
.celebrate-eid-top-link {
  position: fixed;           /* Instead of absolute */
  top: 20px;
  right: 20px;
  z-index: 9999;            /* Make sure it's on top of everything */
  text-decoration: none;
  display: inline-block;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 24px;
  transition: transform 0.2s ease-in-out;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  pointer-events: auto;      /* Ensures the link can be touched/clicked */
  touch-action: manipulation;/* Helps on mobile touchscreens */
  cursor: pointer;         
}

.celebrate-eid-top-link:hover {
  transform: scale(1.05);
}

/* =========================== */
/*   CONFETTI ANIMATION FX     */
/* =========================== */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2; /* above hearts */
}
.confetti {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  background-color: #fff;
  animation: confettiFall 3s linear forwards;
}
@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg);
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* Confetti Trigger Button */
.celebrate-btn {
  background: linear-gradient(135deg, #abecd6 0%, #fbed96 100%);
  color: #333;
  font-weight: bold;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out;
}
.celebrate-btn:hover {
  transform: scale(1.07);
}

/* ================================ */
/*  (3) Letters Reveal - Basic CSS  */
/* ================================ */
.letters-section {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.letters-section h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  color: #6a2c70;
  margin-bottom: 1rem;
}

/* ================================ */
/* (4) Balloon-Pop Mini-Game Styles */
/* ================================ */
.balloons-section {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.balloons-section h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  color: #6a2c70;
  margin-bottom: 1rem;
}

#balloonContainer {
  margin-top: 1rem;
}

.balloon {
  display: inline-block;
  margin: 0.5rem;
  padding: 1rem;
  border-radius: 50%;
  background: #ffd700; /* golden balloons */
  cursor: pointer;
  animation: floatBalloon 5s ease-in-out infinite alternate;
}

@keyframes floatBalloon {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}
