body {
  background-image: url(images/beige231.jpg);
  margin: 0;
  font-family: Arial, sans-serif;
  color: #222;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    white 0%,
    lime 37.5%,
    lime 62.5%,
    white 100%
  );
  padding: 10px;
}

.left-images,
.right-images {
  display: flex;
  gap: 10px;
}

.header-content {
  display: flex;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}

.header-content span {
  font-family: 'Times New Roman', Times, serif;
  font-size: 32px;
  background: transparent linear-gradient(to top, yellow, #ff00ff);
  padding: 8px 12px;
  border-radius: 0px;
  line-height: 0.75;
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
}

/* SLUGWIND uses Cinzel Decorative bold, keep NEXUS in Times */
.slug-text {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  /* preserve existing inline gradient/color if present */
}

.header-content sub {
  font-family: 'Times New Roman', Times, serif;
  background: linear-gradient(to top, #ff0000, #ffffff);
  color: blue;
}

.header-container img {
  max-width: 100px;
  height: auto;
}

/* flower bar: touching header (no gap) and isolated as a section for later extension
   make flowers half-size (25px) so the bar is half as tall */
.flower-row {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 24px; /* add 24px gap between header-container and flower bar */
  margin-bottom: 0;
  padding: 0;
  align-items: center;
}

.flower-row img {
  width: 25px;               /* half size (was 50px) */
  height: 25px;              /* half size */
  background: transparent;   /* gradients set by script */
  display: block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-backface-visibility: hidden; /* smoother animation/compositing */
  backface-visibility: hidden;
}

/* remove rounded corners everywhere */
* { border-radius: 0 !important; }

/* frame that contains main + index (semi-transparent white with a full-width top bar) */
.frame {
  max-width: 1100px;
  margin: 0 auto 28px auto;
  background: rgba(255,255,255,0.5);
  border-radius: 0;
  /* make room for the full-width bar (48px) */
  padding: 40px 18px 18px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border: 1px solid #000;
  position: relative;
  overflow: visible;
  z-index: 1; /* ensure frame is behind the tab */
  box-sizing: border-box;
}

/* MARQUEE: simplified — no initial pad, CSS animation only, moves right smoothly */
.frame-tab {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background: linear-gradient(to bottom, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
  z-index: 2;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  overflow: hidden;
  font-size: 14px;
  line-height: normal;
}

.frame-tab .marquee {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
  display: block;
}

.frame-tab .track {
  width: 200%;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: marqueeRight 16s linear infinite;
}

.frame-tab .track .block {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: flex-start; /* left align text inside each block */
  align-items: center;         /* vertical centering */
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 14px;
}

/* marquee text styling: white with 1px black outline (simulated with 4 shadows) */
.frame-tab .track .block span.marquee-text {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  line-height: 1;
  /* 1px "outline" via four text-shadows */
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  white-space: nowrap;
}

@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* content grid inside frame */
.content {
  display: grid;
  grid-template-columns: 2fr 320px; /* main | index */
  gap: 18px;
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid #000 !important;
  border-radius: 0;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.hero {
  display: flex;
  gap: 12px;
  min-height: 220px;
}

.hero .big {
  flex: 1;
  background: #f0f0f0;
  border-radius: 0;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid #000 !important;
}

.hero .big img { width:100%; height:100%; object-fit:cover; display:block; }

.hero .side {
  width:260px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}

.small-thumb {
  background:#ddd;
  height:100px;
  border-radius:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid #000 !important;
}

/* index column */
.index-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.index-box {
  background:#f7f7f7;
  border:1px solid #000 !important;
  border-radius:0;
  padding:12px;
  text-align:center;
}

.index-box .icons { display:flex; gap:8px; justify-content:center; margin-bottom:8px; }

.index-box h3 {
  margin: 0;
  cursor: pointer;
  user-select: none;
  font-family: 'Sedan SC', serif; /* sedan sc for the INDEX header */
  font-size: 18px;
  letter-spacing: 0.5px;
}

.index-box ul {
  margin-top:12px;
  text-align:left;
  padding-left:18px;
  display: none; /* hidden by default; toggled with JS */
  font-family: 'Sedan', serif; /* sedan italic for the page list */
  font-style: italic;
  font-size: 14px;
}

.index-box ul li a { color: inherit; text-decoration: none; }
.index-box ul li a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .content { grid-template-columns: 1fr; }
  .frame { padding: 12px; }
  .frame-tab { left: 12px; }
  .hero .side { width: auto; }
}

/* ensure SLUGWIND uses Cinzel Decorative (override .header-content span) */
.header-content .slug-text {
  font-family: 'Cinzel Decorative', serif !important;
  font-weight: 700 !important;
}

/* add inside the <style> block in the <head> (or at end of existing CSS) */
/* use local PNG cursor (hotspot at 16,16) with automatic fallback */
html, body, * {
  cursor: url("images/burger.png") 0 0, auto !important;
}

/* ---------- AUDIO PLAYER (fixed bottom-left) ---------- */
.audio-player {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #000;
  padding: 6px 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  font-size: 13px;
  border-radius: 0 !important;
}
.audio-player button {
  appearance: none;
  border: 1px solid #000;
  background: #fff;
  padding: 4px 6px;
  cursor: pointer;
  line-height: 1;
}
.audio-player input[type="range"] {
  width: 120px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #ccc;
}
.audio-player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
}