/* Reset default margins */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  color: rgb(245, 111, 111);
  background: #000000;
}

/*
================================================================
================================================================
                           Colors
================================================================
================================================================
*/
/* 
---------------------------------
Header Shimmer Colors
---------------------------------
*/
body {
  --glow0: 0 0 8px rgba(255,255,255,0.5),
           0 0 20px rgba(200,180,255,0.3),
           0 0 30px rgba(160,120,255,0.2);
  --glow1: 0 0 16px rgba(255,255,255,0.9),
           0 0 40px rgba(200,180,255,0.6),
           0 0 60px rgba(160,120,255,0.4);
}
/* Purple */
body[data-theme="purple"] {
  --chart-grid: rgba(221, 221, 221, 0.633);
  --chart-ticks: #ffffff;
  --glow0: 0 0 8px rgba(255,255,255,0.5),
           0 0 20px rgba(200,180,255,0.3),
           0 0 30px rgba(160,120,255,0.2);
  --glow1: 0 0 16px rgba(255,255,255,0.9),
           0 0 40px rgba(200,180,255,0.6),
           0 0 60px rgba(160,120,255,0.4);
}
/* Green */
body[data-theme="green"] {
  --chart-grid: rgba(221, 221, 221, 0.633);
  --chart-ticks: #ffffff;
  --glow0: 0 0 8px rgba(255,255,255,0.5),
           0 0 20px rgba(180,255,200,0.3),
           0 0 30px rgba(120,255,160,0.2);
  --glow1: 0 0 16px rgba(255,255,255,0.9),
           0 0 40px rgba(180,255,200,0.6),
           0 0 60px rgba(120,255,160,0.4);
}
/* Blue */
body[data-theme="blue"] {
  --chart-grid: rgba(221, 221, 221, 0.633);
  --chart-ticks: #ffffff;
  --glow0: 0 0 8px rgba(255,255,255,0.5),
           0 0 20px rgba(180,200,255,0.3),
           0 0 30px rgba(120,160,255,0.2);
  --glow1: 0 0 16px rgba(255,255,255,0.9),
           0 0 40px rgba(180,200,255,0.6),
           0 0 60px rgba(120,160,255,0.4);
}
/* Light Blue */
body[data-theme="lightblue"] {
  --chart-grid: rgba(221, 221, 221, 0.633);
  --chart-ticks: #ffffff;
  --header-grad-1: rgba(0, 85, 100, 0.35);
  --header-grad-2: rgba(0, 61, 80, 0.28);
  --header-grad-3: rgba(0, 52, 60, 0.25);

  --glow0: 0 0 8px rgba(255,255,255,0.5),
           0 0 20px rgba(160,200,255,0.3),
           0 0 30px rgba(100,180,255,0.2);
  --glow1: 0 0 16px rgba(255,255,255,0.9),
           0 0 40px rgba(160,200,255,0.6),
           0 0 60px rgba(100,180,255,0.4);
}
/* Red */
body[data-theme="red"] {
  --chart-grid: rgba(221, 221, 221, 0.633);
  --chart-ticks: #ffffff;
  --header-grad-1: rgba(100, 0, 0, 0.35);
  --header-grad-2: rgba(80, 0, 0, 0.28);
  --header-grad-3: rgba(60, 0, 0, 0.25);

  --glow0: 0 0 8px rgba(255,255,255,0.5),
           0 0 20px rgba(255,160,160,0.3),
           0 0 30px rgba(255,100,100,0.2);
  --glow1: 0 0 16px rgba(255,255,255,0.9),
           0 0 40px rgba(255,160,160,0.6),
           0 0 60px rgba(255,100,100,0.4);
}
/* Silver */
body[data-theme="silver"] {
  --chart-grid: rgba(221, 221, 221, 0.633);
  --chart-ticks: #ffffff;
  --header-grad-1: rgba(47, 47, 47, 0.35);
  --header-grad-2: rgba(39, 39, 39, 0.28);
  --header-grad-3: rgba(18, 18, 18, 0.25);

  --glow0: 0 0 8px rgba(255,255,255,0.5),
           0 0 20px rgba(169, 169, 169, 0.3),
           0 0 30px rgba(143, 143, 143, 0.2);
  --glow1: 0 0 16px rgba(255,255,255,0.9),
           0 0 40px rgba(148, 148, 148, 0.6),
           0 0 60px rgba(126, 126, 126, 0.4);
}
/* Timmy */
body[data-theme="timmy"] {
  --chart-grid: rgba(18, 18, 18, 0.633);
  --chart-ticks: #000000;
  --header-grad-1: rgba(226, 226, 226, 0.35);
  --header-grad-2: rgba(173, 173, 173, 0.28);
  --header-grad-3: rgba(133, 133, 133, 0.25);

  --glow0: 0 0 8px rgba(255, 255, 255, 0.5),
           0 0 20px rgba(255, 255, 255, 0.3),
           0 0 30px rgba(255, 255, 255, 0.2);
  --glow1: 0 0 16px rgba(255,255,255,0.9),
           0 0 40px rgba(255, 255, 255, 0.6),
           0 0 60px rgba(255, 255, 255, 0.4);
}
/* Neric */
body[data-theme="neric"] {
  --chart-grid: rgba(221, 221, 221, 0.633);
  --chart-ticks: #ffffff;
  --header-grad-1: rgba(66, 66, 66, 0.35);
  --header-grad-2: rgba(50, 50, 50, 0.28);
  --header-grad-3: rgba(20, 20, 20, 0.25);

  --glow0: 0 0 8px rgba(0, 0, 0, 0.5),
           0 0 20px rgba(0, 0, 0, 0.3),
           0 0 30px rgba(0, 0, 0, 0.2);
  --glow1: 0 0 16px rgba(0, 0, 0, 0.9),
           0 0 40px rgba(0, 0, 0, 0.6),
           0 0 60px rgba(0, 0, 0, 0.4);
}

/* 
---------------------------------
Header Colors
---------------------------------
*/
/* Defaults (purple) */
body {
  --header-grad-1: rgba(40, 0, 70, 0.35);
  --header-grad-2: rgba(20, 0, 40, 0.28);
  --header-grad-3: rgba(10, 0, 20, 0.25);
}

/* Green */
body[data-theme="green"] {
  --header-grad-1: rgba(0, 70, 40, 0.35);
  --header-grad-2: rgba(0, 40, 20, 0.28);
  --header-grad-3: rgba(0, 20, 10, 0.25);
}

/* Blue */
body[data-theme="blue"] {
  --header-grad-1: rgba(0, 40, 70, 0.35);
  --header-grad-2: rgba(0, 20, 40, 0.28);
  --header-grad-3: rgba(0, 10, 20, 0.25);
}
/* Light Blue */
body[data-theme="lightblue"] {
  --header-grad-1: rgba(0, 70, 100, 0.35); 
  --header-grad-2: rgba(0, 50, 80, 0.28);
  --header-grad-3: rgba(0, 30, 60, 0.25); 
}
/* Red */
body[data-theme="red"] {
  --header-grad-1: rgba(100, 0, 0, 0.35); 
  --header-grad-2: rgba(80, 0, 0, 0.28); 
  --header-grad-3: rgba(60, 0, 0, 0.25);
}
/* Silver */
body[data-theme="silver"] {
  --header-grad-1: rgba(226, 226, 226, 0.35);
  --header-grad-2: rgba(173, 173, 173, 0.28);
  --header-grad-3: rgba(133, 133, 133, 0.25);
}
/* Timmy */
body[data-theme="timmy"] {
  --header-grad-1: rgba(226, 226, 226, 0.35);
  --header-grad-2: rgba(173, 173, 173, 0.28);
  --header-grad-3: rgba(133, 133, 133, 0.25);
}
/* Neric */
body[data-theme="neric"] {
  --header-grad-1: rgba(65, 65, 65, 0.35);
  --header-grad-2: rgba(33, 33, 33, 0.28);
  --header-grad-3: rgba(0, 0, 0, 0.25);
}

/* 
---------------------------------
Graph Colors
---------------------------------
*/
/* Default (purple theme) */
body {
  --chart-temp: #ff6384;   /* red-pink */
  --chart-hum:  #36a2eb;   /* blue */
  --chart-pres: #4bc0c0;   /* teal */
  --chart-power: #ffcc66;   /* amber/gold */
}

/* Green theme */
body[data-theme="green"] {
  --chart-temp: #ff6666;   /* softer red */
  --chart-hum:  #66ff99;   /* greenish */
  --chart-pres: #33cc99;   /* teal-green */
  --chart-power: #ccff66;  /* lime */
}

/* Blue theme */
body[data-theme="blue"] {
  --chart-temp: #ff8080;
  --chart-hum:  #80aaff;
  --chart-pres: #3399ff;
  --chart-power: #66ccff;
}

/* Lightblue theme */
body[data-theme="lightblue"] {
  --chart-temp: #ff9999;
  --chart-hum:  #66e0ff;
  --chart-pres: #00ccff;
  --chart-power: #99ffcc;
}

/* Red theme */
body[data-theme="red"] {
  --chart-temp: #ff3333;   /* strong red */
  --chart-hum:  #ff9966;   /* orange-ish */
  --chart-pres: #cc6666;   /* muted red */
  --chart-power: #ffcc99;
}
/* Silver theme */
body[data-theme="silver"] {
  --chart-temp: #ffffff;   /* strong red */
  --chart-hum:  #6a6a6a;   /* orange-ish */
  --chart-pres: #b6b6b6;   /* muted red */
  --chart-power: #464646;
}

/* Timmy theme */
body[data-theme="timmy"] {
  --chart-temp: #3c1900;   /* strong red */
  --chart-hum:  #503f32;   /* orange-ish */
  --chart-pres: #582806;   /* muted red */
  --chart-power: #3c1900;
}

/* Neric theme */
body[data-theme="neric"] {
  --chart-temp: #ffffff;   /* strong red */
  --chart-hum:  #959595;   /* orange-ish */
  --chart-pres: #734f4f;   /* muted red */
  --chart-power: #cdcdcd;
}

/* 
---------------------------------
Button Colors
---------------------------------
*/
/* Default (purple) */
body {
  --menu-btn-bg: rgba(91, 39, 212, 0.25);
  --menu-btn-hover: rgba(137, 95, 251, 0.35);
  --menu-btn-border: rgba(161, 128, 252, 0.5);
}

/* Green */
body[data-theme="green"] {
  --menu-btn-bg: rgba(65, 254, 122, 0.25);
  --menu-btn-hover: rgba(123, 248, 156, 0.35);
  --menu-btn-border: rgba(155, 255, 182, 0.5);
}

/* Blue */
body[data-theme="blue"] {
  --menu-btn-bg: rgba(68, 124, 255, 0.25);
  --menu-btn-hover: rgba(91, 135, 255, 0.35);
  --menu-btn-border: rgba(122, 157, 254, 0.5);
}

/* Lightblue */
body[data-theme="lightblue"] {
  --menu-btn-bg: rgba(60, 161, 255, 0.25);
  --menu-btn-hover: rgba(92, 160, 255, 0.35);
  --menu-btn-border: rgba(125, 179, 255, 0.5);
}

/* Red */
body[data-theme="red"] {
  --menu-btn-bg: rgba(255, 62, 62, 0.25);
  --menu-btn-hover: rgba(255, 102, 102, 0.35);
  --menu-btn-border: rgba(255, 136, 136, 0.5);
}

/* Silver */
body[data-theme="silver"] {
  --menu-btn-bg: rgba(197, 197, 197, 0.25);
  --menu-btn-hover: rgba(230, 230, 230, 0.35);
  --menu-btn-border: rgba(255, 255, 255, 0.5);
}

/* Timmy */
body[data-theme="timmy"] {
  --menu-btn-bg: rgba(197, 197, 197, 0.25);
  --menu-btn-hover: rgba(230, 230, 230, 0.35);
  --menu-btn-border: rgba(255, 255, 255, 0.5);
}

/* Neric */
body[data-theme="neric"] {
  --menu-btn-bg: rgba(17, 17, 17, 0.25);
  --menu-btn-hover: rgba(49, 49, 49, 0.35);
  --menu-btn-border: rgba(90, 90, 90, 0.5);
}


/*
================================================================
================================================================
                           Basics
================================================================
================================================================
*/

h1{
  margin: 0;
  padding:0;
  color:#fff;
  font-family:'Times New Roman', Times, serif;
}


/* Base background container (fallback) */
/* Base background container */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(40px) brightness(1.2);
}
/*
===============================================================
================================================================
                            Background
================================================================
================================================================
*/

/* Theme variants */
.background.purple {
  background: radial-gradient(circle at 20% 30%, rgba(60,0,67,0.3), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(80, 1, 46, 0.3), transparent 60%),
              linear-gradient(135deg, #1d002c, #0b0015, #1d002c);
}
.background.green {
  background: radial-gradient(circle at 20% 30%, rgba(0, 60, 8, 0.3), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(0, 80, 11, 0.3), transparent 60%),
              linear-gradient(135deg, #001e05, #000901, #001e05);
}
.background.blue {
  background: radial-gradient(circle at 20% 30%, rgba(0,40,80,0.3), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(0,60,120,0.3), transparent 60%),
              linear-gradient(135deg, #001f3e, #000c24, #00274f);
}
.background.lightblue {
  background: radial-gradient(circle at 20% 30%, rgba(0, 79, 80, 0.3), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(0, 120, 114, 0.3), transparent 60%),
              linear-gradient(135deg, #005c5b, #001414, #005c5b);
}
.background.red {
  background: radial-gradient(circle at 20% 30%, rgba(80, 0, 0, 0.3), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(120, 0, 0, 0.3), transparent 60%),
              linear-gradient(135deg, #2b0000, #000000, #2c0000);
}
.background.silver {
  background: radial-gradient(circle at 20% 30%, rgba(0,40,80,0.3), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(0,60,120,0.3), transparent 60%),
              linear-gradient(135deg, #4c4c4c, #242424, #4c4c4c);
}
.background.timmy {
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(214, 214, 214, 0.3), transparent 60%),
              linear-gradient(135deg, #f3f3f3, #4f4f4f, #cbcbcb);
}
.background.neric {
  background: radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.678), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.585), transparent 60%),
              linear-gradient(135deg, #000000, #181818, #000000);
}

/* Canvas for dim stars */
#dimStars {
  position: fixed;
  inset: 0;
  z-index: 1;  /* behind bright stars */
  pointer-events: none;
}

/* Bright foreground stars (CSS divs) */
.static-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.static-stars .static-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.4;
  animation: twinkle 3s infinite alternate;
}
/* Make stars twinkle */
@keyframes twinkle {
  from { opacity: 0.4; }
  to   { opacity: 0.8; }
}

/* Shooting stars */
.shooting-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.shooting-stars .shooting-star {
  position: absolute;
  top: -10px;                 /* start slightly above view */
  width: 2px;
  height: 80px;
  background: linear-gradient(to top, #fff, transparent);
  opacity: 0.9;
  /* angle + duration + distance come from CSS vars */
  transform: rotate(var(--angle, 45deg)) translateY(0);
  animation: shooting var(--dur, 3s) linear forwards;
  transform-origin: top left; /* pivot at start point */
}

/* one animation: rotate first, then translate ALONG the rotated axis */
@keyframes shooting {
  0%   { transform: rotate(var(--angle, 45deg)) translateY(0); opacity: 0; }
  18%  { opacity: 0.3; }
  20%  { opacity: 0.5}
  30%  { opacity: 0.8}
  70%  { opacity: 1; }
  100% { transform: rotate(var(--angle, 45deg)) translateY(var(--dist, 1200px)); opacity: 0; }
}

/* keep faint (“blink”) variant but don't change direction */
.shooting-stars .blink {
  height: 60px;               /* a bit longer so it reads */
  opacity: 0.7;
  animation-duration: 1.4s;
}

/* Fireball variant: thicker and glowing */
.shooting-stars .fireball {
  width: 4px; /* thicker */
  background: linear-gradient(to top, #fffecf, transparent);
  filter: drop-shadow(0 0 6px rgba(255, 255, 239, 0.9));
}

/*
================================================================
================================================================
                            Header
================================================================
================================================================
*/
/* ===== Liquid glass header ===== */
/* ===== Dark liquid glass header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  isolation: isolate;
  overflow: hidden;

  /* darker tinted glass */
  background: linear-gradient(
    135deg,
    var(--header-grad-1) 0%,
    var(--header-grad-2) 50%,
    var(--header-grad-3) 100%
  );

  backdrop-filter: blur(14px) saturate(150%) contrast(120%) brightness(0.55);
  -webkit-backdrop-filter: blur(14px) saturate(150%) contrast(120%) brightness(0.55);

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border-radius: 0 0 16px 16px;

  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* liquid sheen highlight */
.site-header::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0 -10%;
  background: radial-gradient(
    120% 140% at -10% -40%,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 55%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.35;
}

/* animated shimmer */
.site-header::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(255, 255, 255, 0.12) 80%
  );
  background-size: 200% 100%;
  animation: header-shimmer 14s ease-in-out infinite;
  opacity: 0.15;
  pointer-events: none;
}

@keyframes header-shimmer{
  0%{   background-position: 180% 0; }
  50%{  background-position: 0 0; }
  100%{ background-position: 180% 0; }
}

/* Title styling */
/* Default header */
.header-title {
  font-family: "Times New Roman", serif;
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  /* One generic animation that reads variables */
  animation: title-glow 6s ease-in-out infinite alternate;
}

/* One keyframes that uses the variables */
@keyframes title-glow {
  0%   { text-shadow: var(--glow0); }
  100% { text-shadow: var(--glow1); }
}


/* Content */
.content {
  position: relative;
  text-align: center;
  padding: 100px 20px;
}


.menu-container {
  position: fixed;
  top: 35px;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000;
}

/* Glassmorphic button */
.menu-button {
  width: 40px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 4px;  /* smaller, consistent look */
  cursor: pointer;

  background: var(--menu-btn-bg);
  border: 1px solid var(--menu-btn-border);
  border-radius: 8px;
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);

  transition: background 0.3s, transform 0.2s;
}


.menu-button:hover {
  background: var(--menu-btn-hover);
  transform: scale(1.05);
}

.menu-button span {
  display: block;
  width: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}

/* Dropdown styled like header */
/* Dropdown styled like header */
.dropdown {
  position: absolute;
  top: 100%; /* directly below button */
  right: 0;
  margin-top: 0;
  min-width: 180px;
  border-radius: 12px;

  background: var(--header-grad-1);
  border: 1px solid rgba(255, 255, 255, 0.2);

  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden; /* round corners apply to children */

  /* --- animation state --- */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown a {
  display: block;
  padding: 12px 16px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-family: "Times New Roman", serif;
  font-size: 1.05rem;
  transition: background 0.2s;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Show with fade + slide */
.menu-container:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.weather-card {
  position: relative;
  z-index: 5;
  margin: 120px auto 40px;
  max-width: 900px;
  padding: 2rem;
  border-radius: 20px;
  background: var(--header-grad-1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px) saturate(160%);
  -webkit-backdrop-filter: blur(4px) saturate(160%);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
  text-align: center;
  color: #fff;
}
.weather-card h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-family: "Times New Roman", serif;
  text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.weather-data {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  font-size: 1.2rem;
}

.weather-data div {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
}

.weather-data div:last-child {
  grid-column: 1 / -1;   /* span across all columns */
  justify-self: center;  /* center the box */
  width: 96%;            /* adjust width to match others */
}


.weather-card canvas {
  margin-top: 1rem;
  width: 100% !important;
  height: 350px !important;
}


/* Timmy Mode Colors*/
body[data-theme="timmy"] .weather-card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
body[data-theme="timmy"] .weather-data div {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
body[data-theme="timmy"] .weather-card h2 {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}
body[data-theme="timmy"] .weather-data {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

/*
================================================================
================================================================
                    Story Button Colors
================================================================
================================================================
*/
/* Stories Theme variants */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

/* Default (purple) */
.story-card {
  background: rgba(91, 39, 212, 0.25);
  border: 1px solid rgba(161, 128, 252, 0.5);
}
.story-card:hover {
  background: rgba(137, 95, 251, 0.35);
}

/* Green */
body[data-theme="green"] .story-card {
  background: rgba(65, 254, 122, 0.25);
  border: 1px solid rgba(92, 230, 128, 0.5);
}
body[data-theme="green"] .story-card:hover {
  background: rgba(123, 248, 156, 0.35);
}

/* Blue */
body[data-theme="blue"] .story-card {
  background: rgba(68, 124, 255, 0.25);
  border: 1px solid rgba(122, 157, 254, 0.5);
}
body[data-theme="blue"] .story-card:hover {
  background: rgba(91, 135, 255, 0.35);
}

/* Lightblue */
body[data-theme="lightblue"] .story-card {
  background: rgba(60, 161, 255, 0.25);
  border: 1px solid rgba(125, 179, 255, 0.5);
}
body[data-theme="lightblue"] .story-card:hover {
  background: rgba(92, 160, 255, 0.35);
}

/* Red */
body[data-theme="red"] .story-card {
  background: rgba(255, 62, 62, 0.25);
  border: 1px solid rgba(255, 136, 136, 0.5);
}
body[data-theme="red"] .story-card:hover {
  background: rgba(255, 102, 102, 0.35);
}

/* Silver */
body[data-theme="silver"] .story-card {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
body[data-theme="silver"] .story-card:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Timmy */
body[data-theme="timmy"] .story-card {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
body[data-theme="timmy"] .story-card:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Neric */
body[data-theme="neric"] .story-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(55, 55, 55, 0.5);
}
body[data-theme="neric"] .story-card:hover {
  background: rgba(23, 23, 23, 0.35);
}

/* Chapters Theme variants */
.chapter-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.chapter-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-family: "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px) saturate(160%);
  transition: transform 0.2s, background 0.3s;
}
/* Purple (default) */
.chapter-card {
  background: rgba(91, 39, 212, 0.25);
  border: 1px solid rgba(161, 128, 252, 0.5);
}
.chapter-card:hover {
  background: rgba(137, 95, 251, 0.35);
}

/* Green */
body[data-theme="green"] .chapter-card {
  background: rgba(65, 254, 122, 0.25);
  border: 1px solid rgba(155, 255, 182, 0.5);
}
body[data-theme="green"] .chapter-card:hover {
  background: rgba(123, 248, 156, 0.35);
}

/* Blue */
body[data-theme="blue"] .chapter-card {
  background: rgba(68, 124, 255, 0.25);
  border: 1px solid rgba(122, 157, 254, 0.5);
}
body[data-theme="blue"] .chapter-card:hover {
  background: rgba(91, 135, 255, 0.35);
}

/* Lightblue */
body[data-theme="lightblue"] .chapter-card {
  background: rgba(60, 161, 255, 0.25);
  border: 1px solid rgba(125, 179, 255, 0.5);
}
body[data-theme="lightblue"] .chapter-card:hover {
  background: rgba(92, 160, 255, 0.35);
}

/* Red */
body[data-theme="red"] .chapter-card {
  background: rgba(255, 62, 62, 0.25);
  border: 1px solid rgba(255, 136, 136, 0.5);
}
body[data-theme="red"] .chapter-card:hover {
  background: rgba(255, 102, 102, 0.35);
}

/* Silver */
body[data-theme="silver"] .chapter-card {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
body[data-theme="silver"] .chapter-card:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Timmy */
body[data-theme="timmy"] .chapter-card {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
body[data-theme="timmy"] .chapter-card:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Neric */
body[data-theme="neric"] .chapter-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(55, 55, 55, 0.5);
}
body[data-theme="neric"] .chapter-card:hover {
  background: rgba(23, 23, 23, 0.35);
}

/* Chapter Theme variants */
.chapter-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  line-height: 1.6;
  font-size: 1.1rem;
  font-family: "Times New Roman", serif;
  color: #fff;
  white-space: pre-wrap;
}
.chapter-header {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 0 0 12px rgba(255,255,255,0.6);
}
.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}
.chapter-btn {
  flex: 1;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  border-radius: 12px;
  backdrop-filter: blur(8px) saturate(160%);
  transition: transform 0.2s, background 0.3s;
}
.chapter-btn:hover {
  transform: scale(1.05);
}

/* Theme-aware button backgrounds */
.chapter-btn {
  background: rgba(91, 39, 212, 0.25);
  border: 1px solid rgba(161, 128, 252, 0.5);
}
.chapter-btn:hover {
  background: rgba(137, 95, 251, 0.35);
}

body[data-theme="green"] .chapter-btn {
  background: rgba(65, 254, 122, 0.25);
  border: 1px solid rgba(155, 255, 182, 0.5);
}
body[data-theme="green"] .chapter-btn:hover {
  background: rgba(123, 248, 156, 0.35);
}

body[data-theme="blue"] .chapter-btn {
  background: rgba(68, 124, 255, 0.25);
  border: 1px solid rgba(122, 157, 254, 0.5);
}
body[data-theme="blue"] .chapter-btn:hover {
  background: rgba(91, 135, 255, 0.35);
}

body[data-theme="lightblue"] .chapter-btn {
  background: rgba(60, 161, 255, 0.25);
  border: 1px solid rgba(125, 179, 255, 0.5);
}
body[data-theme="lightblue"] .chapter-btn:hover {
  background: rgba(92, 160, 255, 0.35);
}

body[data-theme="red"] .chapter-btn {
  background: rgba(255, 62, 62, 0.25);
  border: 1px solid rgba(255, 136, 136, 0.5);
}
body[data-theme="red"] .chapter-btn:hover {
  background: rgba(255, 102, 102, 0.35);
}

body[data-theme="silver"] .chapter-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
body[data-theme="silver"] .chapter-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

body[data-theme="timmy"] .chapter-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
body[data-theme="timmy"] .chapter-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

body[data-theme="neric"] .chapter-btn {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(55, 55, 55, 0.5);
}
body[data-theme="neric"] .chapter-btn:hover {
  background: rgba(23, 23, 23, 0.35);
}
