/* Homepage Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    color: #000;
    overflow-x: hidden;
}

/* Background */
#wave-bg {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Main Content */
.container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar Left */
.sidebar-left {
    width: 20%;
    min-width: 240px; /* prevents shrinking too small */
    max-width: 300px;
    padding: 2rem;
    flex-shrink: 0; /* important: don't let it shrink */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* background: white; /* ensure visibility */ 
    z-index: 100;
}

body:not(#homepage) .sidebar-left {
    border-right: 1px solid #ccc;
}

/* Title */
.menu-title {
    font-weight: 700;
    font-size: 1.75rem;              /* ← Use a fixed size, no clamp */
    color: #000;
    text-align: center;
    line-height: 1.1;
    white-space: normal;          /* Allow line breaks */
    margin: 0;
}

.title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

/* Tagline */
.tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    font-style: italic;
    text-align: center;
    color: #000;
    margin-top: 1rem; /* or whatever you need */
}

.cursor {
    display: inline-block;
    margin-left: 2px;
    color: #000;
    animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Nav */
.nav-items {
    display: flex;
    flex-direction: column;
    align-items: center;  /* centers <li> horizontally */
    gap: 0.5rem;          /* optional: space between items */
    padding: 0;
    margin: 0;
}

.nav-items li {
    list-style: none;
    width: 100%;          /* or auto if you want tighter fit */
    text-align: center;   /* center text inside li */
}

.nav-items li:hover {
    color: #777;
    transform: translateX(6px);
}

.nav-items a {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem 0;
    text-align: center;
    transition: color 0.3s, transform 0.3s;
}

.nav-items a:hover {
    color: #777;
    transform: scale(1.05); /* center-friendly hover */
}

/* Dropdown Structure */
/* Dropdown hidden by default */
.has-dropdown .dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    padding: 0;
    margin: 0;
}

/* Dropdown items style */
.has-dropdown .dropdown li a {
    display: block;
    font-style: italic;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    color: #777; /* Slightly lighter */
    background-color: transparent;
    transition: background 0.3s;
}

.has-dropdown .dropdown li a:hover {
    background: transparent;
    color: #000;
}

/* When hovered (after class toggle) */
.has-dropdown.hover-active .dropdown {
    max-height: 500px; /* large enough to show all items */
    opacity: 1;
}

/* Center Content */
#logo {
    width: 25rem;
    padding: 3rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;   /* <-- center icons horizontally */
    align-items: center;
    width: 100%;               /* <-- take up full width of sidebar */
}

.social-icons a {
    text-decoration: none;
    color: #000;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #777;
    transform: scale(1.2);
}

/* Center Logo HUD */
.center-content {
    flex: 1; /* Replaces width: 60% */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

.hud-circle {
  position: relative;
  z-index: 1;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: spin 30s linear infinite;
  width: 50%;
  height: 50%;
}

.logo-circle {
    background: rgba(255, 255, 255);
    border-radius: 50%;
    box-shadow: 0 0 30px 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar Right */
.sidebar-right {
    width: 20%;
    padding: 2rem;
    min-width: 240px;
    max-width: 300px;
    flex-shrink: 0;
}

/* Updates */
.updates-header {
    margin-bottom: 0.5rem;
}

.updates-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 0.5rem;
}

.updates-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.updates-nav button {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #000;
    transition: opacity 0.3s, transform 0.2s;
    padding: 0.2rem;
}

.updates-nav button:hover {
    opacity: 1;
    color: #777;
    transform: scale(1.2);
}

.updates-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.updates-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.updates-page {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.updates-page.active {
    opacity: 1;
    transform: translateX(0);
}

.updates-page.prev {
    transform: translateX(-20px);
}

.updates-list li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    color: #777;
    transition: color 0.3s ease;
}

.updates-list li.highlight {
    color: #000;    /* black */
    font-weight: 400; /* bold */
    font-style: normal;
}

.page-indicator {
    position: absolute;
    bottom: -1rem;
    right: 0;
    font-size: 0.8rem;
    color: #000;
}

/* Notes */
.notes-card {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 300px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: floatCard 4s ease-in-out infinite;
    z-index: 10;
    transition: all 0.4s ease;
}

.notes-card.minimized {
    height: 3rem;
    overflow: hidden;
}

.notes-card.minimized .notes-content,
.notes-card.minimized .notes-indicator {
    opacity: 0;
    pointer-events: none;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.notes-nav {
    display: flex;
    gap: 0.5rem;
}

.notes-nav button {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #000;
    transition: opacity 0.3s, transform 0.2s;
}

.notes-nav button:hover {
    opacity: 1;
    color: #777;
    transform: scale(1.2);
}

.notes-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.minimize-notes {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #000;
    transition: color 0.3s;
    transform: rotate(0deg);
    transition: color 0.3s, transform 0.3s;
}

.minimize-notes:hover {
    color: #777;
    transform: scale(1.2);
}

.minimize-notes.minimized {
    transform: rotate(180deg);
}

.notes-content {
    position: relative;
    overflow: hidden;
    transition: height 0.4s ease;
    margin-bottom: 1.5rem;
}

.note-page {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.note-page.active {
    opacity: 1;
    transform: translateY(0);
}

.notes-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.notes-content p {
    font-size: 0.85rem;
    font-weight: 300;
    color: #000;
    line-height: 1.4;
}

.notes-indicator {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.3s;
}

.dot.active {
    background: #000;
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Standardized layout for other pages */
.layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

.page-content {
    margin-left: 3rem;
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-content p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar-left {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .page-content {
        width: 100%;
        padding: 1rem;
    }
}

/* Contact Page Stuff */
/* AI Prompt Box */
.ai-prompt-box {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border-left: 4px solid #000;
    background-color: #eee;
    font-style: italic;
    color: #000;
    font-weight: 300;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin-top: 2rem;
    }

.contact-form label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #000;
}

.contact-form input,
.contact-form textarea {
    background: transparent;
    border: 1px solid #ccc;
    padding: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #000;
    transition: border-color 0.3s, box-shadow 0.1 ease ;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #000;
    outline: none;
}

.contact-form button {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    align-self: start;
}

.contact-form button:hover {
    background: #777;
    transform: translateY(-2px);
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
    outline: none; /* Remove default outline */
}

/* Archive Content */
/* === Archive Grid === */
.archive-grid {
  display: grid;
  grid-template-columns: 1fr; /* 2 columns on larger screens */
  gap: 1.5rem;
  margin: 0 auto;
  width: 100%;
}

/* === Archive Card === */
.archive-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-right: 3rem;
  width: auto;
  margin-inline: auto;
}

.archive-card {
  display: block;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: floatCard 4s ease-in-out infinite; /* ✨ Add this line */
}

.archive-card-disabled {
  display: block;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #000;
  opacity: 40%;
  border-radius: 10px;
}

.archive-card:hover {
  transform: translateY(-5px);
  opacity: 0.5;
  animation: none;
}

.border-frame {
  position: relative;
  border: 3px solid #000;
  border-radius: 10px;
  overflow: hidden; /* ⬅️ Clips the SVG and label inside rounded border */
  width: 100%;
}

.svg-shape {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.svg-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Added shadow */
}

/* About Content */
.about-section {
    max-width: 800px;
    margin: 3rem auto 0; /* centers horizontally, keeps top margin */
    padding: 0 1rem;     /* small horizontal padding for breathing room */
    line-height: 1.8;
    color: #000;
    text-align: left;    /* ensures text stays left-aligned */
}

.about-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.about-section p {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.about-section img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 12px;
}

/* Games Content */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.game-card {
  position: relative; /* Needed to anchor absolutely positioned icon */
  background: #f9f9f9;
  border: 2px solid #000;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatCard 4s ease-in-out infinite;
  overflow: hidden; /* Ensures icon doesn't overflow the card */
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  animation: none;
}

.game-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #000;
}

.game-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: #333;
  margin-bottom: 1rem;
}

.play-button {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.play-button:hover {
  background: #777;
  transform: scale(1.05);
}

.coming-soon .play-button.disabled {
  background: #ccc;
  color: #666;
  pointer-events: none;
  cursor: not-allowed;
  font-style: italic;
}

/* Sidebar mini‑footer */
.site-footer {
  width: 100%;
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 300;
  color: #777;
}

/* Blog Page*/
.blog-stack {
  display: flex;
  flex-direction: column;  /* ← default order: newest first */
  align-items: stretch;
  width: 100%;
  padding-top: 1rem;
  box-sizing: border-box;
}

.blog-post {
  width: 100%;           /* ← take full width from parent (.blog-stack) */
  background: #dddddd;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.blog-post.minimized {
  background: #000;
}

/* Header Row: title + timestamp on left, toggle on right */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
}

/* White inline title box */
.blog-title-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
}

.post-timestamp {
  font-size: 0.8rem;
  font-weight: 300;
  color: #777;
  white-space: nowrap;
}

/* Toggle button */
.toggle-post {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  transition: transform 0.2s ease;
}

.toggle-post:hover {
  transform: scale(1.2);
}

/* Blog post content (white box below) */
.blog-content-box {
  background: #fff;
  padding: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  border-radius: 12px;
  margin: 1rem;
  transition: opacity 0.3s ease;
}

/* When minimized, just hide the content box */
.blog-post.minimized .blog-content-box {
  display: none;
}

.layout {
  display: flex;
}

.sidebar-left {
  width: 200px;
  /* your existing left sidebar styles */
}

.page-content {
  flex: 1;
  padding: 20px;
  max-width: auto;
}

.sidebar-right2 {
  width: 200px;
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  text-align: center;
  justify-content: center;
  margin-right: 1.5rem;
}

.sidebar-right2 ul {
  list-style: none;
  padding-left: 0;
}

.sidebar-right2 li {
  margin-top: 1rem;
  margin-bottom: 10px;
}

.sidebar-right2 a {
  color: #777;
  text-decoration: none;
  cursor: pointer;
  display: inline-block; /* ✨ allows transform to work */
  transition: transform 0.2s ease, color 0.2s ease; /* smooth effect */
}

.sidebar-right2 a:hover {
  color: #ccc;
  transform: scale(1.2);
}

/* Style links inside blog content paragraphs */
.blog-content-box p a {
  color: #ccc;
  font-weight: 500;
  text-decoration: none;
}

.blog-content-box p a:hover {
  transform: scale(1,2);
  opacity: 0.5;
}

/* Style the final DP paragraph */
.blog-content-box p:last-of-type {
  font-weight: bold;
  font-style: italic;
}

/* === Writing Table of Contents Page === */
.writing-toc {
  padding-top: 2rem;
  max-width: 75%;
  margin-inline: auto;
}

.toc-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border-bottom: 2px solid #000;
  padding-bottom: 1rem;
}

.toc-section {
  padding-top: 1rem;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-left: 4px solid #000;
  padding-left: 0.75rem;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toc-list li {
  font-size: 1.1rem;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0.5rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.75rem;
}

.toc-list a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s, padding-left 0.3s;
}

.toc-list a:hover {
  color: #777;
  padding-left: 6px;
  font-weight: 500;
}

.last-updated {
  font-size: 0.8rem;
  font-weight: 300;
  color: #777;
  margin-top: 0.2rem;
}

#pre-2023 {
  border-top: 1px solid #ccc;
}

.section-subtitle {
  font-weight: 200;
  font-size: 1rem;
  font-style: italic;
  color: #777;
  padding-bottom: 1rem;
}

/* Book Page Layout*/
/* === Book Page Layout (Final Version) === */
.book-page {
  display: flex;
  justify-content: center;
  padding: 3rem 3rem;
  background: transparent;
}

.page-sheet {
  background: rgba(255, 255, 255, 0.75);
  padding: 4rem 5rem;
  width: 75%;
  height: max-content;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  color: #222;
  position: relative;
  overflow: hidden;
}

/* Typography */
.book-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}

.book-meta {
  font-size: 0.75rem;
  font-style: italic;
  color: #ccc;
  margin-bottom: 2.5rem;
  z-index: 1;
  position: relative;
}

.book-body {
  position: relative;
  z-index: 1;
}

.book-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 300;
}

/* If i want to make it look like a novel - 2 columns 
.book-body {
  column-count: 2;
  column-gap: 3rem;
}
*/

.drop-cap::first-letter {
  float: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 0.85;         /* Pulls letter up slightly */
  margin-right: 0.15em;      /* Space between drop cap and next text */
  margin-top: 0.1em;         /* Aligns with text baseline */
  color: #222;
  height: 1em;
  vertical-align: top;
}

/* Poem Layout*/

.poem {
  white-space: pre-wrap;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: normal;
  letter-spacing: 0.01em;
  font-style: italic;
}

/* Video Page */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding-right: 3rem;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.video-card {
  background: #fff;
  border: 2px solid #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatCard 4s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
  animation: none;
}

.thumbnail-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  background: #000;
}

.video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #000;
}

.video-meta {
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 300;
  color: #777;
}

/* Photography Page Layout */
.page-content h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.photo-category {
  font-size: 1rem;
  font-weight: 200;
  margin-bottom: 3rem;
  color: #777 
}

/* Photo Series and Toggle Button Layout */
.photo-series {
  margin-bottom: 1rem;
  width: 100%;
  border-bottom: 1px solid #ccc;
}

.toggle-series {
  display: inline-flex;          /* Inline flex so width fits content */
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  padding: 0.75rem 1rem;          /* Padding top/bottom + left/right */
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  border: none;
  transition: color 0.2s ease, background-color 0.3s ease, border 0.3s ease;
}

.toggle-series:hover {
  color: #000;
  background-color: #fff;
  border: 2px solid #000;
  transition: 0.3s ease;
}

.toggle-series.active {
  color: #000;
  background-color: #fff;
  border: 2px solid #000;
}

/* Photo Grid (Static grid layout) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  gap: 1rem;                            /* Space between items */
  padding-top: 1rem;
  padding-bottom: 1rem;

  opacity: 1;
  visibility: visible;
  height: auto;
  pointer-events: auto;
  overflow: visible;

  transition: opacity 0.3s ease, height 0.3s ease, visibility 0.3s ease;
}

/* Hidden state for photo grid */
.photo-grid.hidden {
  opacity: 0;
  visibility: hidden;
  height: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Individual photo items */
.photo-item {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.3s ease;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.3);
}

/* Hover effect for images */
.photo-item:hover {
  opacity: 0.7;
}

/* Scroll reveal animation for images */
.photo-item.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.photo-item.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Simple Fullscreen Viewer */
.simple-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}

.simple-viewer img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Comic landing page */
.shelf-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid #ccc;
}

.shelf-row {
  position: relative;
  width: 100%;
}

.shelf-background {
  width: 100%;
  display: block;
}

.comic-books {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comic-books a {
  pointer-events: auto; /* re-enables interaction for each comic */
}

.comic-book {
  position: absolute;
  width: 5%;
  height: auto;
  cursor: pointer;
  opacity: 1;
  filter: drop-shadow(7px 3px 4px rgba(0, 0, 0, 0.5)); /* soft offset shadow */
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.comic-book:hover {
  opacity: 0.9;
  filter: drop-shadow(4px 4px 12px rgba(255, 255, 255, 0.8)); /* brighter on hover */
}

@media (max-width: 600px) {
  .comic-book {
    width: 8%; /* increase size on smaller screens */
  }
}

/* Drawings landing page */
/* Art sheet - Fullscreen viewer */
/* Fullscreen overlay backdrop */
.art-viewer {
  display: none;
  position: fixed;
  inset: 0;
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  background: rgba(15, 15, 15, 0.85); /* Add subtle dark overlay */
}

.viewer-content {
  /* Make transparent container to center the inner card */
  max-width: none;
  width: 100%;
  height: 100%;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;

  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-inner {
  display: flex;
  flex-direction: column;  /* stack vertically */
  align-items: flex-start; /* left-align text */
  gap: 1.2rem;
  max-width: 600px;        /* limit max width */
  width: 90vw;
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* Image style */
.viewer-inner img {
  width: 100%;      /* full card width */
  height: auto;
  border-radius: 6px;
}

/* Text block */
.viewer-text {
  width: 100%;
}

/* Title and date container */
.viewer-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 0.25rem;
  color: #000;
}

#viewerDate {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #ccc;
  margin-left: 1rem;
}

/* Put title and date inline */
.viewer-text h2, #viewerDate {
  display: inline-block;
  vertical-align: middle;
}

/* Caption text */
#viewerCaption {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: #777;
  margin-top: 0.7rem;
}

/* Program info text below caption */
.program-info {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.4rem;
}

/* GAME CARDS - Inverse style for "How to Play" card */
.how-to-play-banner {
  background: #000;
  color: #fff;
  width: 100%;
  padding: 3rem 2rem; /* More vertical space */
  text-align: center;
  border-radius: 16px;
  cursor: pointer;
  margin: 3rem auto;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: background 0.3s, transform 0.3s;
}

.how-to-play-banner:hover {
  background: #111;
  transform: translateY(-2px);
}

.how-to-play-text {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.how-to-play-subtext {
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  color: #fff;
  margin-top: 0.5rem;
}

#instructionImage {
  opacity: 1;
  transition: opacity 0.5s ease;
}

#instructionImage.fade-out {
  opacity: 0;
}

#instructionImage.fade-in {
  opacity: 1;
}

/* --- FULLSCREEN CARD: Wrapper (if needed) --- */
.howto-fullscreen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  padding: 2rem;
  position: relative;
}

/* --- INNER CONTENT --- */
.howto-inner {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;   /* limits width for better reading */
  width: 90vw;        /* responsive width on small screens */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}


/* --- CONTROLS GROUP (dots + arrows) --- */
.howto-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* --- INSTRUCTION DOTS --- */
#howtoinstructionDots {
  display: flex;
  justify-content: center;
  align-items: center;
}

.howto-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bbb;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  margin: 0 4px;
}

.howto-dot.active {
  background: #000;
  transform: scale(1.4);
}

/* --- NAVIGATION ARROWS --- */
.howto-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.howto-arrows button {
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.howto-arrows button:hover:not(:disabled) {
  color: #777;
  transform: scale(1.2);
}

.howto-arrows button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Comic viewing pages */

.comic-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  padding: 2rem;
}
.comic-viewer img {
  max-width: 100%;
  height: auto;
  display: block;
}

.arrow {
  background: none;
  border: none;
  font-size: 2rem;
  color: #000;
  cursor: pointer;
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease, color 0.2s ease;
}

.left-arrow {
  left: 1rem;
}

.right-arrow {
  right: 1rem;
}

.arrow:hover {
  transform: translateY(-50%) scale(1.2);
  color: #777;
}

.page-list {
  display: none;
  padding-left: 0;
}

.page-list ul li a{
  font-size: 0.25rem;
}

.arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Chapter Toggle */
.chapter-toggle {
  font-weight: 600;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
}

.chapter-toggle:hover {
  color: #777;
}

/* Toggle Arrow Icon */
.chapter-toggle .arrow-icon {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  transition: transform 0.3s;
}

/* Page links inside chapter dropdowns */
.page-list a {
  font-size: 0.75rem;
  font-style: italic;
  color: #777;
  padding-left: 1.25rem;
  display: block;
  margin: 0.25rem 0;
  text-decoration: none;
  transition: color 0.3s;
}

.page-list a:hover {
  color: #333;
}

/* Only show page-list if chapter has .open */
.chapter.open .page-list {
  display: block;
}

/* Comic viewing pages */
.comic-viewer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;               /* ← let it grow beyond the screen */
  min-height: 140vh;          /* ✨ force minimum height larger than screen */
  padding-left: 3rem;
  padding-right: 3rem;
}

.comic-viewer img {
  width: auto;
  max-width: 100%;
  height: auto;               /* ← allow natural height */
  max-height: none;          /* ← remove cap */
  object-fit: contain;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.arrow {
  background: none;
  border: none;
  font-size: 3rem;
  color: #000;
  cursor: pointer;
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease, color 0.2s ease;
}

.left-arrow {
  left: 1rem;
}

.right-arrow {
  right: 1rem;
}

.arrow:hover {
  transform: translateY(-50%) scale(1.2);
  color: #777;
}

.arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

#toc-name {
  opacity: 0.5;
  font-weight: 300;
}

/* Drawings Masonry */
/* === Masonry Grid for Drawings Page === */
.photo-masonry {
  column-count: 3;
  column-gap: 1.25rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  width: 100%;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.photo-item:hover {
  transform: scale(1.03);
  opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .photo-masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .photo-masonry {
    column-count: 1;
  }
}
