/* =====================================================
   style.css  -  the design for BOTH pages
   Sections: 1 Colours  2 Page  3 Wings/stars  4 Menu
             5 Home page  6 Gallery page  7 Photo view  8 Music button
   ===================================================== */

/* ---------- 1. COLOURS (change them here, they update everywhere) ---------- */
:root {
  --rose: #ff8fb8;   /* pink */
  --lav:  #b79cff;   /* lavender */
  --gold: #f6c96b;   /* gold */
  --deep: #c2417d;   /* dark pink for titles */
  --ink:  #4a1d45;   /* text colour */
  --glass: rgba(255,255,255,.55);  /* see-through white boxes */
}

/* ---------- 2. PAGE BASICS ---------- */
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: Poppins, system-ui, sans-serif; color: var(--ink);
  /* soft pink-lavender-blue princess background */
  background: radial-gradient(circle at 20% 10%, #ffe3f1, transparent 45%),
              radial-gradient(circle at 85% 80%, #e4d8ff, transparent 50%),
              linear-gradient(160deg, #ffd6ea, #e9d9ff 60%, #d9ecff);
  background-attachment: fixed;
}
.script { font-family: "Great Vibes", cursive, serif; font-weight: 400; }  /* fancy writing */
.page   { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto;
          padding: 24px 16px 40px; animation: fade .7s; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
footer  { position: relative; z-index: 1; text-align: center; padding: 20px; color: var(--deep); }
footer .script { font-size: 26px; }

/* ---------- 3. FLYING WINGS + STARS (made by js/common.js) ---------- */
#wings { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.fly   { position: absolute; bottom: -90px; animation: rise linear infinite; opacity: .9; }
.fly svg { display: block; width: 100%; height: auto;
           filter: drop-shadow(0 0 6px rgba(255,255,255,.95)) drop-shadow(0 0 4px rgba(246,201,107,.8));
           animation: sway ease-in-out infinite alternate; }          /* left-right drifting */
.fly .w { transform-box: fill-box; transform-origin: center;
          animation: flap 1.1s ease-in-out infinite alternate; }      /* wing flapping */
@keyframes rise { to { transform: translateY(-120vh); } }             /* float upwards */
@keyframes sway { from { transform: translateX(-30px) rotate(-8deg); } to { transform: translateX(30px) rotate(8deg); } }
@keyframes flap { from { transform: scale(1,1); } to { transform: scale(.72,.9); } }
.star { position: fixed; width: 4px; height: 4px; border-radius: 50%; background: #fff;
        box-shadow: 0 0 8px 2px #fff; animation: twinkle 3s ease-in-out infinite; z-index: 0; }
@keyframes twinkle { 50% { opacity: .15; transform: scale(.6); } }

/* ---------- 4. MENU ---------- */
nav { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; gap: 10px;
      padding: 12px; backdrop-filter: blur(8px); background: rgba(255,255,255,.35); }
nav a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 22px;
        border-radius: 30px; color: var(--deep); background: var(--glass); }
nav a.on { background: linear-gradient(135deg, var(--rose), var(--lav)); color: #fff;
           box-shadow: 0 4px 14px rgba(194,65,125,.35); }            /* current page */

/* ---------- 5. HOME PAGE ---------- */
.hero { text-align: center; padding-top: 5vh; }
.crown { display: inline-block; font-size: 56px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(4deg); } }
.hero h1 { font-size: clamp(46px, 12vw, 92px); margin: 4px 0 0; color: var(--deep); text-shadow: 0 3px 18px #fff; }
.hero h2 { font-size: clamp(34px, 9vw, 64px); margin: 0;
           background: linear-gradient(90deg, var(--deep), var(--lav), var(--gold));
           -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p  { max-width: 520px; margin: 18px auto; line-height: 1.7; font-weight: 300; font-size: 17px; }
.btn { display: inline-block; text-decoration: none; font: 500 15px Poppins, sans-serif; border: 0;
       padding: 13px 30px; border-radius: 40px; cursor: pointer; color: #fff;
       background: linear-gradient(135deg, var(--rose), var(--lav));
       box-shadow: 0 8px 22px rgba(194,65,125,.35); transition: transform .2s; }
.btn:hover { transform: scale(1.06); }
.card { max-width: 560px; margin: 34px auto 0; padding: 26px 24px; border-radius: 26px; line-height: 1.8;
        background: var(--glass); backdrop-filter: blur(10px); border: 1px solid #fff;
        box-shadow: 0 10px 40px rgba(183,156,255,.3); }
.card .script { font-size: 34px; color: var(--deep); margin: 0 0 6px; }
#secret { max-height: 0; overflow: hidden; opacity: 0; transition: all 1s; color: var(--deep); font-size: 20px; }
#secret.show { max-height: 300px; opacity: 1; margin-top: 18px; }   /* "show" is added by home.js */
#secret .script { font-size: 30px; }

/* ---------- 6. GALLERY PAGE ---------- */
.gh { text-align: center; }
.gh h2 { font-size: clamp(38px, 9vw, 60px); margin: 6px 0; color: var(--deep); }
.gh p  { margin: 0 0 18px; font-weight: 300; }
.grid  { columns: 2 150px; column-gap: 14px; }                       /* 2 columns on phone */
@media (min-width: 700px) { .grid { columns: 4 150px; } }            /* 4 columns on big screens */
.ph { position: relative; break-inside: avoid; margin-bottom: 14px; border-radius: 18px; overflow: hidden;
      cursor: pointer; border: 4px solid #fff; box-shadow: 0 8px 22px rgba(194,65,125,.22);
      background: linear-gradient(145deg, #ffd0e6, #dccbff); transition: transform .3s; }
.ph:nth-child(3n+1) { aspect-ratio: 3/4; }   /* three different heights for a nice look */
.ph:nth-child(3n+2) { aspect-ratio: 1; }
.ph:nth-child(3n)   { aspect-ratio: 4/5; }
.ph:hover { transform: translateY(-6px) rotate(-1deg); }
.ph img   { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; }  /* empty-frame emoji */
.ph .cap  { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 8px; text-align: center;
            font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(120,30,90,.7));
            opacity: 0; transition: .3s; }                            /* caption shows on hover/tap */
.ph:hover .cap { opacity: 1; }
.tip { text-align: center; font-size: 13px; color: var(--deep); }

/* ---------- 7. BIG PHOTO VIEW ---------- */
#lb { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; padding: 20px;
      background: rgba(74,29,69,.85); }
#lb.on { display: grid; }                                             /* "on" is added by gallery.js */
#lbc { max-width: min(90vw, 520px); text-align: center; color: #fff; }
#lbc img { max-width: 100%; max-height: 70vh; border-radius: 18px; border: 5px solid #fff; }
#lbc .big { width: 260px; height: 320px; margin: auto; border-radius: 18px; border: 5px solid #fff;
            display: grid; place-items: center; font-size: 60px; background: linear-gradient(145deg, #ffd0e6, #dccbff); }
#lbc .script { font-size: 30px; margin: 10px 0 0; }

/* ---------- 8. MUSIC BUTTON ---------- */
#mus { position: fixed; right: 16px; bottom: 16px; z-index: 6; width: 48px; height: 48px; border-radius: 50%;
       border: 0; font-size: 22px; cursor: pointer; display: none;
       background: linear-gradient(135deg, var(--rose), var(--lav)); box-shadow: 0 6px 18px rgba(194,65,125,.4); }
#mus.on  { display: block; animation: bob 3s ease-in-out infinite; }  /* music playing */
#mus.off { display: block; opacity: .6; animation: none; }            /* music paused */
