 /* ===============================
   LilyPad Hope – Global Styles
   (clean + consolidated)
   =============================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Fredoka:wght@400;600;700&display=swap');

/* Theme tokens */
:root{
  --orange:#f0641c;
  --purple:#3d0a69;
  --blue:#3AAFFF;           /* bright link blue */
  --neon-green:#7cff00;
  --ink:#171717;
  --white:#fff;
  --shadow: rgba(0,0,0,.25);
}

/* Resets */
*{ box-sizing:border-box }
html,body{ height:100% }
a{ color:inherit }

/* ===============================
   Backgrounds
   =============================== */
body{
  margin:0;
  font-family: 'Fredoka', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--white);
  overflow-x:hidden;
  position:relative;
}

/* Orange (home + level 2) */
.bg-orange{
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(120% 120% at 80% 85%, rgba(0,0,0,.10), transparent 55%),
    var(--orange);
}

/* Deep purple (level 3) */
.bg-purple{
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(255,255,255,.04), transparent 60%),
    radial-gradient(120% 120% at 80% 85%, rgba(0,0,0,.12), transparent 55%),
    var(--purple);
}

/* Frame */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:48px 24px 64px;
  text-align:left;
  position:relative;
  z-index:1;
}

/* Little + at top */
.cross{
  position:fixed;
  top:10px; left:50%;
  transform:translateX(-50%);
  font-weight:900;
  color:#000;
  text-shadow:0 2px 0 var(--shadow);
  z-index:3;
}

/* ===============================
   Logos
   =============================== */
#logoWrap{ text-align:center; margin-top:14px; }
#logoWrap img{
  max-width:min(420px, 88vw);
  height:auto;
  border-radius:18px;
  box-shadow:0 10px 0 rgba(0,0,0,.26);
}

/* Small home-link logo for subpages */
.mini-logo-link{
  position:absolute;
  top:10px; left:10px;
  display:inline-block;
  z-index:999;
}
.mini-logo{
  height:36px;           /* “tiny bit bigger” */
  width:auto;
  border-radius:5px;
  box-shadow:0 2px 4px rgba(0,0,0,.25);
  transition:transform .2s ease;
}
.mini-logo:hover{ transform:scale(1.08) }

/* Click bounce */
.bounce { animation: bounce .6s cubic-bezier(.25,.7,.2,1.3) }
@keyframes bounce{
  0%{transform:translateY(0)}
  38%{transform:translateY(-14px)}
  70%{transform:translateY(6px)}
  100%{transform:translateY(0)}
}

/* ===============================
   Headlines
   =============================== */
.title{
  font-family:'Luckiest Guy', cursive;
  margin:18px 0 22px;
  line-height:1.08;
  letter-spacing:.6px;
}
.hero{ text-align:center; }

/* Home/level-2 green header */
.title.bubble-green{
  color:var(--neon-green);
  font-size: clamp(28px, 5.5vw, 64px);
  text-shadow:
    6px 6px 0 #000,
    3px 3px 0 #000,
    -2px -2px 0 #000,
    0 0 22px rgba(124,255,0,.55);
}

/* Level-3 yellow header (purple pages) */
.title.yellow-pop{
  color:#ffe400;
  font-size: clamp(28px, 5.5vw, 64px);
  text-shadow:
    0 0 0 #000, 1px 1px 0 #000, -1px 1px 0 #000,
    1px -1px 0 #000, -1px -1px 0 #000, 0 6px 0 #000,
    0 0 22px rgba(0,0,0,.35);
}

/* ===============================
   Motto (under big logo)
   =============================== */
.motto{
  display:inline-block;
  margin:10px 8px 4px;
  font-family:'Luckiest Guy', cursive;
  font-size: clamp(22px, 3.8vw, 48px);
  line-height:1.05;
  color:var(--neon-green);
  -webkit-text-stroke:1.5px #000;
  text-shadow:6px 6px 0 #000, 3px 3px 0 #000, 0 0 18px rgba(124,255,0,.45);
}
.motto-reveal{ display:inline-block; opacity:0; animation:motto-reveal 1.6s ease-out forwards; will-change:clip-path,opacity }
@keyframes motto-reveal{ from{clip-path:inset(0 100% 0 0);opacity:0} to{clip-path:inset(0 0 0 0);opacity:1} }
.motto .hop{ display:inline-block; padding-inline:2px; animation:hop-bounce .65s .9s cubic-bezier(.2,.8,.2,1) both }
@keyframes hop-bounce{
  0%{transform:translateY(-10px) scale(1.05)}
  35%{transform:translateY(16px) scale(.90)}
  65%{transform:translateY(-6px) scale(1.02)}
  100%{transform:translateY(0) scale(1)}
}

/* Tagline */
.tagline{
  display:inline-block;
  font-family:'Luckiest Guy', cursive;
  font-size: clamp(20px, 3.4vw, 40px);
  color:var(--neon-green);
  margin:8px 8px 22px;
  text-shadow:10px 10px 0 #000, 6px 6px 0 #000, 3px 3px 0 #000, 0 0 18px rgba(0,0,0,.35);
}

/* ===============================
   Menus / Links
   =============================== */
.menu{ margin-top:clamp(16px,3vw,28px); position:relative; z-index:1; text-align:left }
.menu-link{
  display:block;
  text-decoration:none;
  font-weight:800;
  font-size:clamp(22px, 3.2vw, 44px);
  line-height:1.18;
  letter-spacing:.3px;
  margin:22px 0 30px;
}

/* Blue with black border (no heavy drop shadow) */
.bubble-blue{
  color:var(--blue);
  /* 8-direction shadow “stroke” so holes don’t get cut out */
  text-shadow:
    1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000,
    1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
  transition: transform .12s ease;
}
.bubble-blue:hover, .bubble-blue:focus{ transform:translateY(-1px) scale(1.02) }

a:focus-visible{ outline:3px solid var(--neon-green); outline-offset:4px }

/* ===============================
   Reading Pages (image + long text)
   =============================== */
.read-hero{
  width:100%;
  max-width:980px;
  display:block;
  margin:12px auto 18px;
  border-radius:12px;
  box-shadow:0 8px 0 rgba(0,0,0,.22);
}
.read-body{
  max-width:75ch;
  margin:20px auto 12vh;
  padding:0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight:700;
  font-size:clamp(18px,2.2vw,22px);
  line-height:1.65;
  color:#2d6cff;
  /* black edge using shadows (works on all browsers, no “cut through” on letters) */
  text-shadow:
    1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000,
    1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

/* ===============================
   Background Effects
   =============================== */
.clouds{ position:fixed; inset:0 0 auto 0; height:190px; pointer-events:none; z-index:0; overflow:hidden }
.cloud{
  position:absolute; top:46px; width:300px; height:96px; opacity:.18; filter:blur(1px);
  background:
    radial-gradient(40px 28px at 52px 44px, #fff 60%, transparent 61%),
    radial-gradient(60px 40px at 112px 40px, #fff 60%, transparent 61%),
    radial-gradient(45px 35px at 164px 55px, #fff 60%, transparent 61%),
    radial-gradient(72px 40px at 216px 40px, #fff 60%, transparent 61%);
  border-radius:50px;
  animation:cloud-drift linear infinite;
}
.cloud.c1{left:-25%; animation-duration:55s}
.cloud.c2{left:28%; top:72px; transform:scale(1.2); animation-duration:68s}
.cloud.c3{left:70%; top:30px; transform:scale(.9); animation-duration:59s}
@keyframes cloud-drift{ 0%{transform:translateX(-12vw)} 100%{transform:translateX(112vw)} }

.fireflies{ position:fixed; inset:0; pointer-events:none; z-index:0 }
.firefly{
  position:absolute; width:6px; height:6px; border-radius:50%;
  background: radial-gradient(circle,#fff 0 35%, rgba(255,255,255,.6) 45%, transparent 70%);
  box-shadow:0 0 12px 4px rgba(255,255,140,.85);
  opacity:.9;
  animation:fly 9s ease-in-out infinite, blink 1.7s ease-in-out infinite;
}
.firefly:nth-child(1){left:8%;  top:60%}
.firefly:nth-child(2){left:16%; top:35%}
.firefly:nth-child(3){left:28%; top:72%}
.firefly:nth-child(4){left:42%; top:28%}
.firefly:nth-child(5){left:55%; top:62%}
.firefly:nth-child(6){left:66%; top:40%}
.firefly:nth-child(7){left:78%; top:76%}
.firefly:nth-child(8){left:86%; top:30%}
@keyframes blink{ 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.8)} }
@keyframes fly{
  0%{transform:translate(0,0)}
  25%{transform:translate(12px,-18px)}
  50%{transform:translate(-10px,-6px)}
  75%{transform:translate(16px,10px)}
  100%{transform:translate(0,0)}
}

.bubbles{ position:fixed; inset:auto 0 0 0; height:60vh; pointer-events:none; z-index:0; overflow:hidden }
.bubble{
  position:absolute; bottom:-120px; width:28px; height:28px; border-radius:50%;
  border:2px solid rgba(255,255,255,.65); background:rgba(255,255,255,.08);
  animation:rise linear infinite; filter:blur(.2px);
}
.bubble:nth-child(1){left:8%;  animation-duration:12s}
.bubble:nth-child(2){left:22%; animation-duration:14s; transform:scale(1.2)}
.bubble:nth-child(3){left:35%; animation-duration:11s; transform:scale(.9)}
.bubble:nth-child(4){left:49%; animation-duration:15s}
.bubble:nth-child(5){left:63%; animation-duration:13s; transform:scale(1.15)}
.bubble:nth-child(6){left:78%; animation-duration:12.5s}
@keyframes rise{
  0%{transform:translateY(0) translateX(0); opacity:0}
  10%{opacity:.65}
  100%{transform:translateY(-65vh) translateX(18px); opacity:0}
}

/* ===============================
   Misc
   =============================== */
.home .menu, .home .menu a,
.list-links, .list-links a{ position:relative; z-index:50; pointer-events:auto }
.clouds, .fireflies, .bubbles{ pointer-events:none; z-index:0 }

@media (prefers-reduced-motion: reduce){
  .cloud,.firefly,.bubble,.motto-reveal,.hop{ animation:none !important }
}
