/* ============================================================
   SARAH'S WORLD ~*~ a 30th birthday web-collage
   styled in the spirit of cameronsworld.net / GeoCities 2001
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a { color: #00ffff; }
a:visited { color: #ff66ff; }
a:hover { color: #ffff00; background: #ff00ff; }

img { image-rendering: pixelated; border: 0; }

/* ---------- THE ENTER SPLASH ---------- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,180,220,0.35), rgba(255,0,150,0.45) 70%),
    #ff4db8;
  background-repeat: repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}
/* GIFs scattered behind the splash card, fills the whole pink screen */
#splash-corners {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
#splash-corners img { position: absolute; }
#splash .splash-inner {
  position: relative;
  z-index: 2;
  padding: 26px 46px;
  border: 8px ridge #ff66cc;
  background: rgba(255,224,240,0.86);
  color: #99004d;
  box-shadow: 0 0 0 4px #ff009955, 0 0 45px 8px #ff00aa;
  max-width: 92%;
}
#splash h1 {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(36px, 9vw, 110px);
  margin: 0 0 10px;
  line-height: 0.95;
}
#splash p { font-size: clamp(16px, 3vw, 26px); }
#splash .splash-inner .gifrow img { margin: 2px; }
.enter-btn {
  display: inline-block;
  margin-top: 22px;
  font-family: "Comic Sans MS", cursive;
  font-size: clamp(20px, 4vw, 34px);
  font-weight: bold;
  padding: 12px 34px;
  color: #fff;
  text-decoration: none;
  border: 4px outset #ffff66;
  background: linear-gradient(#ff3399, #cc0066);
  text-shadow: 2px 2px 0 #000;
  cursor: pointer;
  animation: throb 0.7s steps(2) infinite;
}
@keyframes throb { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }

/* ---------- TOP BANNER ---------- */
#topbanner {
  background: #000;
  border-bottom: 4px double #ffcc00;
  padding: 6px 0;
  text-align: center;
  overflow: hidden;
}
#topbanner marquee, #topbanner .mq {
  font-family: "Comic Sans MS", cursive;
  font-size: 20px;
  color: #00ff00;
  text-shadow: 1px 1px 0 #006600;
}

/* ---------- SCENES (the collage blocks) ---------- */
.scene {
  position: relative;
  width: 100%;
  padding: 28px 14px 40px;
  border-top: 5px ridge #888;
  border-bottom: 5px ridge #888;
  overflow: hidden;
}
.scene-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2;
}

/* text panels that sit inside scenes — semi-opaque so bg shows */
.panel {
  background: rgba(0,0,0,0.8);
  border: 3px ridge #ffffff;
  padding: 12px 16px;
  margin: 14px auto;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}
.panel.light { background: rgba(255,255,255,0.92); color: #000; border-color:#ff00aa;}
.panel.light a { color:#0000cc; }
.panel h3 { margin-top: 0; }

/* ---------- WORDART HEADINGS ---------- */
.wordart {
  text-align: center;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(34px, 7vw, 74px);
  letter-spacing: 1px;
  margin: 6px 0 18px;
  transform: skewX(-6deg);
  line-height: 1;
}
.wa-rainbow {
  background: linear-gradient(90deg,#ff0000,#ff9900,#ffee00,#33ff00,#00ccff,#3300ff,#cc00ff,#ff0000);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  filter: drop-shadow(2px 2px 0 #000);
}
.wa-gold {
  color: #ffe98a;
  text-shadow: 0 1px 0 #fff, 0 2px 0 #c9a227, 0 3px 0 #b8901e,
               0 4px 0 #a87c0a, 0 5px 6px rgba(0,0,0,.7);
}
.wa-ice {
  color:#bfffff5;
  text-shadow: 2px 2px 0 #0099cc, -1px -1px 0 #fff, 4px 4px 8px #003344;
}
.wa-fire {
  color:#fff200;
  text-shadow: 0 0 6px #ff6600, 0 0 12px #ff3300, 2px 3px 0 #800000;
}
.wa-pink {
  color:#fff;
  text-shadow: 3px 3px 0 #ff1493, 6px 6px 0 #99004d, 0 0 12px #ff66cc;
}
.wordart.outline { -webkit-text-stroke: 2px #000; }

/* ---------- BLINK + RAINBOW TEXT ---------- */
.blink { animation: blinker 0.9s steps(2,start) infinite; }
@keyframes blinker { 50% { visibility: hidden; } }
.rainbow {
  background: linear-gradient(90deg,#ff0000,#ff9900,#ffee00,#33ff00,#00ccff,#cc00ff,#ff0000);
  background-size: 200% auto;
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  animation: rainflow 3s linear infinite;
  font-weight: bold;
}
@keyframes rainflow { to { background-position: 200% center; } }
.glow { text-shadow: 0 0 5px #fff, 0 0 10px #ff00ff, 0 0 18px #ff00ff; }

/* ---------- FLOATING / SCATTERED GIFS ---------- */
.gifwrap { display: inline-block; vertical-align: middle; margin: 4px; }
.scatter {
  position: absolute;
  z-index: 1;            /* behind .scene-inner (z-index 2) so gifs never cover text */
  pointer-events: none;
}
.gifrow {
  text-align: center;
  line-height: 0;
  margin: 8px 0;
}
.gifrow img { margin: 3px; vertical-align: middle; }

.tilt-l { transform: rotate(-7deg); }
.tilt-r { transform: rotate(8deg); }

/* ---------- WIN98 WINDOW PANELS ---------- */
.win {
  max-width: 640px;
  margin: 18px auto;
  background: #c0c0c0;
  color: #000;
  border: 2px outset #fff;
  box-shadow: 3px 3px 0 #000;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 13px;
}
.win-title {
  background: linear-gradient(90deg,#000080,#1084d0);
  color: #fff;
  font-weight: bold;
  padding: 3px 6px;
  display:flex; justify-content:space-between; align-items:center;
}
.win-title .btns span {
  display:inline-block; width:16px; height:14px; line-height:12px;
  text-align:center; background:#c0c0c0; color:#000;
  border:1px outset #fff; margin-left:2px; font-size:10px;
}
.win-body { padding: 12px; }
.win-body input[type=text], .win-body textarea {
  width:100%; border:2px inset #fff; padding:4px; font-family:inherit; font-size:13px;
}
.win-body button, .btn98 {
  font-family: Tahoma, sans-serif; font-size:13px;
  padding: 3px 14px; border:2px outset #fff; background:#c0c0c0; cursor:pointer;
}
.btn98:active { border-style: inset; }

/* ---------- GUESTBOOK ---------- */
#gb-entries { margin-top: 12px; max-height: 260px; overflow-y: auto;
  border:2px inset #fff; background:#fff; padding:8px; }
.gb-entry { border-bottom:1px dashed #999; padding:6px 2px; }
.gb-entry .gb-name { font-weight:bold; color:#cc0066; }
.gb-entry .gb-date { color:#888; font-size:11px; }

/* ---------- VISITOR COUNTER ---------- */
.counter {
  display:inline-block; background:#000; padding:4px 6px;
  border:2px solid #00ff00; font-family:"Courier New",monospace;
}
.counter span {
  display:inline-block; background:#001a00; color:#33ff33;
  font-size:24px; width:20px; text-align:center; margin:0 1px;
  text-shadow:0 0 4px #33ff33; border:1px solid #003300;
}

/* ---------- DIVIDERS ---------- */
.divider { text-align:center; margin:10px 0; line-height:0; }
.divider img { height: 26px; }

/* ---------- MUSIC PLAYER ---------- */
#music {
  position: fixed; right: 8px; bottom: 8px; z-index: 9000;
  background:#c0c0c0; border:2px outset #fff; box-shadow:2px 2px 0 #000;
  font-family:Tahoma,sans-serif; font-size:12px; width: 200px;
}
#music .win-title { font-size:12px; }
#music .mp-body { padding:6px 8px; color:#000; }
#music .nowplaying { font-size:11px; height:14px; overflow:hidden; white-space:nowrap;}
#music button { margin-top:4px; }

/* ---------- AUTO-CRUISE (kiosk) WIDGET ---------- */
#cruise {
  position: fixed; left: 8px; bottom: 8px; z-index: 9000;
  background:#c0c0c0; border:2px outset #fff; box-shadow:2px 2px 0 #000;
  font-family:Tahoma,sans-serif; width: 158px;
}
#cruise .win-title { font-size:12px; }
#cruise .cr-body { padding:7px 8px; color:#000; text-align:center; }
#cruise #cruise-ind {
  color:#c00; font-weight:bold; font-size:12px; margin-bottom:5px;
  font-family:"Courier New",monospace;
}
#cruise button { width:100%; font-weight:bold; }
#cruise .cr-hint { font-size:10px; color:#333; margin-top:5px; line-height:1.25; }
/* a friendly nudge that the kiosk is live */
body.cruising #cruise { outline:3px solid #00ff00; outline-offset:1px; }

/* ---------- SARAH-CAM (digital camera slideshow) ---------- */
#camScene {
  background:
    radial-gradient(circle at 50% 28%, #ffb3df 0%, #ff63b8 45%, #ff1c92 100%);
}
#camScene .wordart, #camScene .panel { position:relative; z-index:2; }
.cam-stage { display:flex; justify-content:center; margin:20px 0 8px; }
.cam-rig {
  position: relative;
  width: min(780px, 95vw);
  filter: drop-shadow(0 16px 34px rgba(0,0,0,0.65));
}
.cam-body {
  width:100%; display:block;
  /* tint the gunmetal body PINK while keeping its shading/realism */
  filter: sepia(1) saturate(5) hue-rotate(295deg) brightness(1.04) contrast(1.02);
}
/* the LCD overlay — positioned over the real screen in the photo (tuned values) */
.cam-lcd {
  position:absolute;
  left:1.3%; top:10.7%; width:68.1%; height:78.4%;
  background:#000; overflow:hidden;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.9);
}
/* blurred zoomed fill of the SAME media — so the whole photo shows (contain)
   with no black bars and nothing cut off */
.cam-bg {
  position:absolute; inset:0;
  background-size:cover; background-position:center; background-repeat:no-repeat;
  filter: blur(16px) brightness(0.5) saturate(1.15);
  transform: scale(1.2);
}
.cam-photo, .cam-video {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:none;
}
/* glossy screen reflection */
.cam-glare {
  position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(125deg,
    rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.05) 18%,
    rgba(255,255,255,0) 38%, rgba(255,255,255,0) 100%);
}
/* faint LCD scanlines */
.cam-scan {
  position:absolute; inset:0; pointer-events:none; opacity:0.25;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.4) 0 1px, rgba(0,0,0,0) 1px 3px);
}
/* on-screen HUD, mimicking the Casio playback display */
.cam-hud {
  position:absolute; inset:0; pointer-events:none;
  font-family:"Courier New",monospace; font-weight:bold;
  font-size: clamp(7px, 1.45vw, 13px);
  text-shadow: 0 0 2px #00131a, 1px 1px 0 #001;
  letter-spacing:0.5px;
}
.cam-hud > div { position:absolute; }
.hud-tl   { top:4%; left:5%; color:#7CFC00; }
.hud-tr   { top:4%; right:5%; color:#ffd24a; }
.hud-fine { top:17%; right:5%; color:#ff5050; }
.hud-batt { bottom:5%; left:5%; color:#39d0ff; letter-spacing:-1px; }
.hud-date { bottom:5%; right:5%; text-align:right; color:#eafff8; line-height:1.15; }

/* ---------- FLOATING PARTY-HAT CAT STICKERS ---------- */
#catstickers { position: fixed; inset: 0; z-index: 8000; pointer-events: none; }
.cat-sticker {
  position: fixed;
  width: 104px; height: auto;
  filter: drop-shadow(2px 4px 5px rgba(0,0,0,0.4));
  animation: catfloat 4.5s ease-in-out infinite;
}
/* Pin stickers just OUTSIDE the centered content column (.scene-inner is 1100px
   wide). 666px from centre clears the 550px half-column + the sticker, so they
   sit in the side margin and never cover text. On narrow screens the calc goes
   negative and they slide harmlessly off the edge. */
.cs1 { left:  calc(50% - 666px); top: 16%; --rot: -5deg; animation-duration: 5.2s; }
.cs2 { right: calc(50% - 666px); top: 30%; --rot:  6deg; animation-duration: 4.1s; animation-delay: .6s; }
.cs3 { left:  calc(50% - 666px); top: 58%; --rot: -7deg; animation-duration: 4.8s; animation-delay: 1.1s; }
@keyframes catfloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot)); }
  50%      { transform: translateY(-14px) rotate(var(--rot)); }
}
@media (max-width: 1100px) { #catstickers { display: none; } }

/* ---------- SARAH'S CATS (3x3 grid section) ---------- */
#catScene {
  background: radial-gradient(circle at 50% 22%, #ffd6ef 0%, #ff85cd 48%, #ff2e9a 100%);
}
.cats-win { max-width: 560px; }
.cats-grid { width:100%; display:block; }
.cats-extra {
  display:flex; justify-content:center; align-items:flex-start;
  gap:26px; flex-wrap:wrap; margin:20px 0 6px;
}
.cats-fig {
  margin:0; background:#fff; border:5px ridge #ff66cc;
  padding:9px 9px 4px; box-shadow:4px 4px 0 rgba(0,0,0,0.35); max-width:300px;
}
.cats-fig img { display:block; width:100%; max-width:282px; }
.cats-fig figcaption {
  font-family:"Comic Sans MS",cursive; color:#cc0066;
  text-align:center; font-size:14px; padding:5px 0 2px;
}

/* ---------- WEBRING / FOOTER ---------- */
#webring {
  background:#000; border-top:4px double #ffcc00; color:#0f0;
  text-align:center; padding:18px 10px 60px; font-family:"Comic Sans MS",cursive;
}
#webring .ring-box {
  display:inline-block; border:3px ridge #00ffff; padding:10px 18px;
  margin:10px; background:#001020;
}

/* ---------- SPARKLE CURSOR TRAIL ---------- */
.sparkle { position: fixed; z-index: 99999; pointer-events:none; width:14px; height:14px; }

/* ---------- BADGES ROW (88x31 buttons feel) ---------- */
.badges { text-align:center; margin:14px 0; }
.badges .badge {
  display:inline-block; width:88px; height:31px; margin:3px;
  font-family:"MS Sans Serif",Tahoma,sans-serif; font-size:9px; line-height:1;
  color:#fff; text-align:center; border:1px solid #fff;
  display:inline-flex; align-items:center; justify-content:center; padding:2px;
}

/* responsive: let gifs wrap, hide some chaos on tiny phones only */
@media (max-width: 500px){
  .scatter { display:none; }
}
