/* Playscenes — page-specific styles (shared layout lives in layout.css) */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --spellbound-purple-mystic: #30195e;
  --spellbound-purple-mystic-alpha: rgba(48,25,94,0.85);
  --spellbound-lavender-1: #e6d6ff;
  --spellbound-lavender-2: #dac9f9;
  --spellbound-glow-active: 0 0 4px #ffffff, 0 0 6px #dac9f9, 0 0 10px #dac9f9;
  --spellbound-glow-hover: 0 0 2px #ffffff, 0 0 4px #dac9f9;
}

body {
  margin: 0;
  background: url('background-forest.png') no-repeat center center fixed;
  background-size: cover;
  font-family: sans-serif;
  color: #2c1b47;
  cursor: url('wand.cur'), auto;
}

/* Header & site title */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 950px;
  margin: 20px auto 5px;
}
.header-row .top-link {
  font-family: 'IM Fell English SC', serif;
  font-size: 18px;
  color: var(--spellbound-lavender-2);
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}
.header-row .top-link:hover { text-shadow: var(--spellbound-glow-hover); color: var(--spellbound-lavender-1); }
.site-header {
  display: flex; align-items: center; justify-content: center;
  font-family: 'IM Fell English SC', serif; font-size: 56px;
  color: var(--spellbound-lavender-1); text-shadow: 3px 3px 6px #000000aa; white-space: nowrap;
}
.site-header .star { font-size: 28px; color: #bfaeff; text-shadow: 1px 1px 3px #00000066; margin: 0 10px; }

/* Sticky nav bar */
#global-nav-wrapper { position: sticky; top: 0; z-index: 100; width: 950px; margin: 0 auto; }
#global-nav {
  background: var(--spellbound-purple-mystic-alpha);
  padding: 4px 16px; display: flex; justify-content: center; align-items: center; gap: 16px;
  border-radius: 6px; box-shadow: 0 0 10px rgba(0,0,0,0.5);
  font-family: 'IM Fell English SC', serif; font-size: 22px;
}
#global-nav a { color: var(--spellbound-lavender-2); text-decoration: none; transition: color .15s, text-shadow .15s; }
#global-nav a:hover { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-hover); }
#global-nav a.active { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-active); }

/* =================
   Two-column layout
   ================= */
.columns {
  display: flex;
  gap: 16px;
  align-items: stretch; /* children equal height; height set by JS */
}

/* Sidebar panel (replaces absolute sidebar) */
.sidebar-left {
  flex: 0 0 160px;
  background-color: rgba(244, 239, 255, 0.65);
  padding: 1rem;
  border-radius: 1rem;
  font-family: 'IM Fell English SC', serif;
  font-size: 18px;
  overflow-y: auto;           /* its own scroll */
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  max-height: 100%;           /* match .columns height */
}

/* Sidebar link styling — darker & readable */
.sidebar-left a {
  display: block;
  margin: 6px 0;
  color: #2c1b47;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
}
.sidebar-left a:hover  { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-hover); }
.sidebar-left a.active { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-active); font-weight: 700; }

/* Sidebar scrollbar (match main) */
.sidebar-left::-webkit-scrollbar { width: 8px; }
.sidebar-left::-webkit-scrollbar-thumb { background-color: #bda0ff; border-radius: 6px; border: 2px solid #f4efff; }

/* Main content panel */
.content-box {
  flex: 1 1 auto;
  height: 100%;              /* fill .columns height */
  overflow: auto;
  overflow-x: hidden;
  background-color: rgba(244, 239, 255, 0.65);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Outside-of-card headers (centered, above lavender boxes) */
.section-header {
  font-family: 'IM Fell English SC', serif;
  text-align: center;
  font-size: 32px;
  line-height: 1.2;
  color: var(--spellbound-purple-mystic);
  margin: 1.25rem 0 0.5rem;
  letter-spacing: 0.5px;
  scroll-margin-top: 90px; /* anchors clear sticky nav */
}

/* Section cards */
.section-card {
  background-color: rgba(244, 239, 255, 0.65);
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: center;
}

/* Body copy */
.section-card p { margin: 0 0 1rem; color: #2c1b47; line-height: 1.5; }
.section-sub { font-style: italic; color: #4b3a70; margin: 0 0 .5rem; }

/* Scene images (top & bottom inside cards) */
.scene-img { text-align: center; margin: 0.5rem 0; }
.scene-img img {
  max-width: 100%; height: auto; border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

/* Styled download button/link */
a.uc {
  display: block;
  text-align: center;
  margin: 0.75rem auto;
  padding: 8px 14px;
  background: rgba(189,160,255,.25);
  border: 1px solid rgba(189,160,255,.55);
  border-radius: 999px;
  font-weight: 700;
  color: #2c1b47;
  text-decoration: none;
  width: fit-content;
}
a.uc:hover { background: rgba(189,160,255,.45); text-shadow: var(--spellbound-glow-hover); }

/* Mobile adjustments */
@media (max-width: 900px) {
  #global-nav-wrapper { width: 100%; }
  #global-nav { flex-wrap: wrap; font-size: 20px; }
  .header-row, .content-stack { width: 90%; }
  .columns { display: block; }
  .sidebar-left { display: none; }
  .content-box { width: 100%; height: auto; }
}
