/* Main site styles */
@font-face {
  font-family: "PixelCode";
  src: url("PixelCode.ttf");
}

body {
  color: #edf2ed;
  background: #0b5846;
  font-family: "PixelCode", sans-serif;
  font-size: 1rem;
}

a {
  color: inherit;
  font-weight: bold;
}

a:focus {
  outline: 2px solid #16cf54;
}

hr {
  border-color: #13641f;
  margin: 1.75rem 1.5rem;
}

blockquote {
  border-left: 2px solid;
  margin: 0.1rem 0.5rem;
  padding: 1px 1rem;
}

.wrapper {
  margin: 2rem 10rem;
}

.header {
  padding: 0 0.25rem 0.75rem 0.25rem;
}

.header h1 {
  margin: 0.15em 0;
  font-weight: bold;
}

.header p {
  font-size: 0.95em;
}

/* FORCE breathing room on left and right */
.main {
  margin-left: 3rem !important;
  margin-right: 3rem !important;
  width: auto !important; /* Override any fixed widths */
}

.main-inner {
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
  max-width: 100% !important;
  box-sizing: border-box !important; /* Ensures padding doesn't add to width */
}

/* Check your existing CSS - look for these and comment them out */
/* 
.main {
  margin: 0;  <-- If this exists, it's overriding
}

.main-inner {
  padding: 0.25rem 1.5rem; <-- If this exists, it's overriding
}
*/

/* Responsive adjustments */
@media (max-width: 1280px) {
  .main {
    margin-left: 2rem !important;
    margin-right: 2rem !important;
  }
  .main-inner {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

@media (max-width: 768px) {
  .main {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
  .main-inner {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .main {
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
  }
  .main-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ===== CYBERPUNK NAVIGATION WITH DROPDOWN ===== */
.navigation {
  margin-bottom: -2px;
  margin-left: 1rem;
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

.navigation a, .nav-dropdown {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.05rem;
  position: relative;
  transition: all 0.2s;
}

/* Base nav button */
.nav-button {
  background: #0a0a0a;
  padding: 0.5em 1.8em 0.2em 1.8em;
  border-radius: 0;
  display: inline-block;
  text-align: center;
  border: 2px solid #39ff14;
  border-bottom: 2px solid #39ff14;
  position: relative;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%
  );
  box-shadow: 
    0 0 15px rgba(57, 255, 20, 0.5),
    inset 0 0 10px rgba(57, 255, 20, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: 1.5px;
  font-size: 13px;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
  color: #ffffff;
}

/* Dropdown container */
.nav-dropdown {
  display: inline-block;
  position: relative;
}

/* Dropdown button - same style as nav-button */
.dropdown-btn {
  background: #0a0a0a;
  padding: 0.5em 1.8em 0.2em 1.8em;
  border-radius: 0;
  display: inline-block;
  text-align: center;
  border: 2px solid #39ff14;
  border-bottom: 2px solid #39ff14;
  position: relative;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%
  );
  box-shadow: 
    0 0 15px rgba(57, 255, 20, 0.5),
    inset 0 0 10px rgba(57, 255, 20, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: 1.5px;
  font-size: 13px;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
  color: #ffffff;
  cursor: pointer;
}

/* Small dropdown arrow */
.dropdown-btn::after {
  content: '▼';
  font-size: 8px;
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.3s;
}

.nav-dropdown:hover .dropdown-btn::after {
  transform: rotate(180deg);
}

/* Hover effects */
.nav-button:hover, .dropdown-btn:hover {
  transform: translateY(-3px);
  background: #1a5f1a;
  border-color: #4cff2e;
  box-shadow: 
    0 5px 25px rgba(57, 255, 20, 0.8),
    inset 0 0 20px rgba(57, 255, 20, 0.5);
  text-shadow: 0 0 12px #39ff14;
}

/* Dropdown content - hidden by default */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #0a0a0a;
  border: 2px solid #39ff14;
  border-top: none;
  box-shadow: 0 10px 25px rgba(57, 255, 20, 0.4);
  z-index: 100;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%
  );
  padding: 8px 0;
}

/* Show dropdown on hover */
.nav-dropdown:hover .dropdown-content {
  display: block;
  animation: dropdown-appear 0.2s ease;
}

@keyframes dropdown-appear {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dropdown items */
.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #ffffff;
  border-bottom: 1px solid #2ecc40;
  font-size: 12px;
  transition: all 0.2s;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  background: #0a0a0a;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

/* Hover effect for dropdown items */
.dropdown-content a:hover {
  background: #1a5f1a;
  color: #ffffff;
  text-shadow: 0 0 10px #39ff14;
  padding-left: 30px;
  border-left: 4px solid #7cff5e;
}

/* Add a subtle glitch effect to dropdown items on hover */
.dropdown-content a:hover::before {
  content: '>';
  position: absolute;
  left: 10px;
  color: #7cff5e;
  animation: glitch-arrow 0.5s infinite;
}

@keyframes glitch-arrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

/* Current page indicator */
.navigation .current-page {
  background: linear-gradient(135deg, #1f8a1f 0%, #2ecc40 100%);
  color: #ffffff;
  border: 3px solid #7cff5e;
  border-bottom: 3px solid #7cff5e;
  box-shadow: 
    0 0 30px rgba(57, 255, 20, 1),
    inset 0 0 25px rgba(255, 255, 255, 0.3);
  text-shadow: 0 0 15px #ffffff, 0 0 25px #39ff14;
  position: relative;
  animation: current-pulse 1.5s infinite;
}

@keyframes current-pulse {
  0%, 100% { 
    box-shadow: 
      0 0 30px rgba(57, 255, 20, 1),
      inset 0 0 25px rgba(255, 255, 255, 0.3);
    border-color: #7cff5e;
  }
  50% { 
    box-shadow: 
      0 0 50px rgba(57, 255, 20, 1),
      0 0 80px rgba(57, 255, 20, 0.6),
      inset 0 0 35px rgba(255, 255, 255, 0.4);
    border-color: #a0ff80;
  }
}

/* Corner accents for current page */
.navigation .current-page::before,
.navigation .current-page::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid #a0ff80;
  opacity: 1;
  filter: drop-shadow(0 0 5px #39ff14);
}

.navigation .current-page::before {
  top: 2px;
  left: 2px;
  border-right: none;
  border-bottom: none;
}

.navigation .current-page::after {
  bottom: 2px;
  right: 2px;
  border-left: none;
  border-top: none;
}

/* Focus state */
.nav-button:focus-visible, .dropdown-btn:focus-visible {
  outline: 3px solid #7cff5e;
  outline-offset: 3px;
  transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 750px) {
  .navigation {
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .nav-button, .dropdown-btn {
    width: 100%;
    padding: 0.8em 1.2em;
    clip-path: none;
    border-radius: 4px;
    font-size: 14px;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    margin-top: 2px;
    animation: none;
    border: 2px solid #39ff14;
    margin-left: 15px;
    width: calc(100% - 30px);
  }

  .dropdown-content a {
    padding: 10px 15px;
  }

  .dropdown-btn::after {
    float: right;
  }

  .navigation .current-page {
    animation: none;
    border-width: 2px;
  }
}

/* FORCE DARK MODE ALWAYS */
body {
  background: #141615;
  color: #6af155;
}

.nav-button {
  background: #006850;
  border-bottom: 4px solid #006850;
}

.navigation .current-page {
  background: #174522;
  color: #edf2ed;
  border: 2px solid #006850;
  border-bottom: 4px solid #174522;
}

.main {
  border: 2px solid #006850;
}

.main-inner {
  background: linear-gradient(#174522 0px, #0b1516 150px);
  color: #edf2ed;
}

.main-inner a {
  color: #4cde3e;
}

/* Update Log Wrapper */
.update-log-wrapper {
  width: 100%;  /* matches main-inner width */
  margin: 10px 0;  /* vertical spacing */
  /* remove flex centering */
}

/* Window Container */
.update-log-window {
  background: #0e0e0e;
  border-radius: 8px;
  width: 100%;      /* full width of wrapper / main-inner */
  font-family: inherit;
  box-sizing: border-box;
  border: 1px solid #2f2f2f;
}

/* Header */
.update-log-header {
  background: #151515;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #3a3a3a;
}

/* Body - scrollable, invisible scrollbar */
.update-log-content {
  padding: 6px 8px;
  font-size: 11.5px;
  line-height: 1.32;
max-height: calc(1.32em * 5); /* 5 lines visible */
  overflow-y: scroll;
  white-space: pre-line;
}

/* Cyberpunk scrollbar styling */
.update-log-content::-webkit-scrollbar {
  width: 8px;
}

.update-log-content::-webkit-scrollbar-track {
  background: #0e0e0e;
  border-left: 1px solid #2f2f2f;
}

.update-log-content::-webkit-scrollbar-thumb {
  background: #39ff14;
  border-radius: 2px;
  box-shadow: 0 0 4px #39ff14;
}

.update-log-content::-webkit-scrollbar-thumb:hover {
  background: #4cff2e;
  box-shadow: 0 0 8px #39ff14;
}

/* Firefox scrollbar */
.update-log-content {
  scrollbar-width: none;
}

.update-log-content::after {
  content: '▌';
  color: #39ff14;
  animation: blink-cursor 0.8s infinite;
  display: inline;
}

@keyframes blink-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Auto-scroll to bottom on load */
.update-log-wrapper {
  width: 100%;
  margin: 10px 0;
}
.update-log-content {
  color: white;  /* grey text */
}

/* Widget Grid - responsive layout */
.widget-sidebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.widget {
  background: #0e0e0e;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
}

.widget-header {
  background: #151515;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid #3a3a3a;
  color: #39ff14;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.widget-content {
  padding: 12px;
}

/* Half-width widgets */
.half-widget {
  grid-column: span 1;
}

/* Compact widgets */
.visitor-count {
  font-size: 28px;
  color: #39ff14;
  text-align: center;
  font-weight: bold;
  animation: glitch-counter 3s infinite;
  text-shadow: 0 0 10px #39ff14;
}

.visitor-label {
  text-align: center;
  font-size: 9px;
  color: #666;
  margin-top: 5px;
  text-transform: uppercase;
}

@keyframes glitch-counter {
  0%, 90%, 100% { transform: translateX(0); }
  91% { transform: translateX(-2px); }
  92% { transform: translateX(2px); }
  93% { transform: translateX(-2px); }
}

.datetime {
  font-size: 18px;
  color: #39ff14;
  text-align: center;
  text-shadow: 0 0 5px #39ff14;
}

.date-label {
  font-size: 9px;
  color: #888;
  text-align: center;
  margin-top: 5px;
}
.transmission-log {
  font-size: 11px;
  line-height: 1.32;
  max-height: calc(1.32em * 3);
  overflow-y: auto;
  color: #888;
  scrollbar-width: none;
  scrollbar-color: #39ff14 #0e0e0e;
}
.transmission-log::-webkit-scrollbar {
  width: 0;
  background: transparent;
}
.log-entry {
  margin: 4px 0;
}

.log-time {
  color: #39ff14;
  margin-right: 5px;
}
/* Mission Generator */
.mission-box {
  background: #000;
  padding: 12px;
  border-radius: 4px;
  margin: 10px 0;
  min-height: 100px;
  border-left: 3px solid #39ff14;
}

.mission-field {
  margin: 8px 0;
  font-size: 12px;
}

.mission-label {
  color: #39ff14;
  font-weight: bold;
  display: inline-block;
  width: 80px;
}

.mission-value {
  color: #edf2ed;
}

.gen-btn {
  background: #174522;
  color: #39ff14;
  border: 1px solid #39ff14;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  display: block;
  width: 100%;
  margin-top: 10px;
  transition: all 0.2s;
  font-family: monospace;
}

.gen-btn:hover {
  background: #39ff14;
  color: #000;
  box-shadow: 0 0 10px #39ff14;
}

/* Glitch Text Generator */
.glitch-input {
  width: 100%;
  background: #000;
  border: 1px solid #2f2f2f;
  color: #39ff14;
  padding: 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  margin: 10px 0;
  box-sizing: border-box;
}

.glitch-output {
  background: #000;
  padding: 12px;
  border-radius: 4px;
  min-height: 60px;
  color: #39ff14;
  font-size: 16px;
  margin: 10px 0;
  word-wrap: break-word;
  text-align: center;
  border: 1px solid #2f2f2f;
}

/* Binary Clock */
.binary-clock {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px 0;
}

.binary-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.binary-label {
  text-align: center;
  font-size: 10px;
  color: #888;
  margin-bottom: 5px;
}

.binary-digit {
  width: 20px;
  height: 20px;
  border: 1px solid #2f2f2f;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all 0.3s;
}

.binary-digit.on {
  background: #39ff14;
  color: #000;
  box-shadow: 0 0 8px #39ff14;
  font-weight: bold;
}

.binary-digit.off {
  background: #1a1a1a;
  color: #444;
}

.time-display {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}
.widget-sidebar > p,
.widget-sidebar > h2,
.widget-sidebar > blockquote,
.widget-sidebar > ul,
.widget-sidebar > img {
  grid-column: 1 / -1; /* span all columns */
}
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0e0e0e;
  border: 1px solid #39ff14;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-header {
  font-size: 10px;
  color: #39ff14;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.play-btn {
  background: #174522;
  color: #39ff14;
  border: 1px solid #39ff14;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.play-btn:hover {
  background: #39ff14;
  color: #000;
  box-shadow: 0 0 10px #39ff14;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #666;
}

.status-dot.playing {
  background: #39ff14;
  box-shadow: 0 0 8px #39ff14;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.main-inner p {
  margin: 0.1rem 0; /* reduces space between paragraphs */
}
/* OR if you only want paragraphs smaller: */
.main-inner p {
  font-size: 0.8em;
}
/* Wall Section */
/* ===== CYBERPUNK WALL HEADER ===== */
.wall-header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border: 4px solid #2ecc40; /* Thicker (4px) and darker green */
  border-radius: 0;
  padding: 40px 30px;
  margin: 20px auto 30px;
  max-width: 900px;
  box-shadow: 
    0 0 15px rgba(46, 204, 64, 0.4),    /* Reduced glow */
    inset 0 0 30px rgba(46, 204, 64, 0.05); /* Reduced inset */
  position: relative;
  overflow: hidden;
  text-align: center;
  
  /* Industrial cyberpunk shape */
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0 100%
  );
  
  /* Pulsing border animation - more subtle */
  animation: wall-border-pulse 4s infinite;
}

@keyframes wall-border-pulse {
  0%, 100% { 
    border-color: #2ecc40; /* Darker green */
    box-shadow: 0 0 15px rgba(46, 204, 64, 0.4), inset 0 0 30px rgba(46, 204, 64, 0.05);
  }
  50% { 
    border-color: #39ff14; /* Brighter but still controlled */
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.5), inset 0 0 40px rgba(57, 255, 20, 0.08);
  }
}

/* Enhanced scanline effect */
.wall-header::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(57, 255, 20, 0.7),
    #ffffff,
    rgba(57, 255, 20, 0.7),
    transparent
  );
  animation: wall-scan 2s linear infinite;
  z-index: 2;
  opacity: 0.6;
}

@keyframes wall-scan {
  0% { top: -100%; opacity: 0.2; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 200%; opacity: 0.2; }
}

/* Grid overlay */
.wall-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(57, 255, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

/* Main title - keep the glitch but slightly reduced glow */
.wall-header h2 {
  margin: 0 0 10px 0;
  color: #39ff14;
  text-transform: uppercase;
  letter-spacing: 8px;
  font-size: 48px;
  font-weight: bold;
  text-shadow: 
    0 0 8px #39ff14,
    0 0 15px #39ff14,
    1px 1px 0 #ff00ff,
    -1px -1px 0 #00ffff;
  position: relative;
  z-index: 3;
  animation: wall-glitch-title 4s infinite;
}

/* Glitch animation */
@keyframes wall-glitch-title {
  0%, 85%, 100% {
    transform: translate(0);
    text-shadow: 
      0 0 8px #39ff14,
      0 0 15px #39ff14,
      1px 1px 0 #ff00ff,
      -1px -1px 0 #00ffff;
  }
  86% {
    transform: translate(-3px, 3px);
    text-shadow: 
      3px 0 #ff00ff,
      -3px 0 #00ffff;
  }
  87% {
    transform: translate(3px, -3px);
    text-shadow: 
      -3px 0 #ff00ff,
      3px 0 #00ffff;
  }
  88% {
    transform: translate(-2px, 2px);
    text-shadow: 
      2px 0 #ff00ff,
      -2px 0 #00ffff;
  }
  89% {
    transform: translate(2px, -2px);
    text-shadow: 
      -2px 0 #ff00ff,
      2px 0 #00ffff;
  }
  90% {
    transform: translate(0);
    text-shadow: 
      0 0 8px #39ff14,
      0 0 15px #39ff14,
      1px 1px 0 #ff00ff,
      -1px -1px 0 #00ffff;
  }
}

/* Glitch layers */
.wall-header h2::before,
.wall-header h2::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.wall-header h2::before {
  animation: wall-glitch-before 2.5s infinite;
  color: #ff00ff;
  text-shadow: 3px 0 #ff00ff;
}

.wall-header h2::after {
  animation: wall-glitch-after 2s infinite;
  color: #00ffff;
  text-shadow: -3px 0 #00ffff;
}

@keyframes wall-glitch-before {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); opacity: 0; }
  93% { clip-path: inset(0 0 80% 0); transform: translateX(-4px); opacity: 1; }
  94% { clip-path: inset(20% 0 60% 0); transform: translateX(4px); }
  95% { clip-path: inset(40% 0 40% 0); transform: translateX(-3px); }
  96% { clip-path: inset(60% 0 20% 0); transform: translateX(3px); }
  97% { clip-path: inset(80% 0 0 0); transform: translateX(-2px); }
  98% { clip-path: inset(0 0 100% 0); opacity: 0; }
}

@keyframes wall-glitch-after {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); opacity: 0; }
  91% { clip-path: inset(80% 0 0 0); transform: translateX(3px); opacity: 1; }
  92% { clip-path: inset(60% 0 0 0); transform: translateX(-3px); }
  93% { clip-path: inset(40% 0 0 0); transform: translateX(2px); }
  94% { clip-path: inset(20% 0 0 0); transform: translateX(-2px); }
  95% { clip-path: inset(0 0 0 0); transform: translateX(1px); }
  96% { clip-path: inset(0 0 100% 0); opacity: 0; }
}

/* ===== GREY SECONDARY TEXTS ===== */
/* Description text - now grey with subtle flicker */
.wall-description {
  color: #aaaaaa; /* Solid grey */
  font-size: 14px;
  margin: 0;
  position: relative;
  z-index: 3;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
  animation: wall-flicker 3s infinite;
  text-shadow: 0 0 2px rgba(170, 170, 170, 0.3); /* Subtle grey glow instead of green */
}

@keyframes wall-flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 1; }
  46% { opacity: 0.7; }
  47% { opacity: 1; }
  48% { opacity: 0.8; }
  49% { opacity: 1; }
  95% { opacity: 1; }
  96% { opacity: 0.6; }
  97% { opacity: 1; }
}

/* Any other secondary text elements in header */
.wall-subheader,
.wall-meta,
.wall-date,
.wall-info {
  color: #999999; /* Medium grey */
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Industrial corner accents - slightly dimmer */
.wall-header .corner {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 3px solid #2ecc40; /* Match darker border */
  z-index: 4;
  opacity: 0.6; /* Reduced from 0.8 */
  filter: drop-shadow(0 0 3px #2ecc40); /* Reduced glow */
}

.corner.top-left {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.corner.top-right {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.corner.bottom-left {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.corner.bottom-right {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

/* Hover effect - removed scaling, kept glow intensification */
.wall-header:hover {
  transition: box-shadow 0.3s;
  box-shadow: 
    0 0 30px rgba(57, 255, 20, 0.7),
    inset 0 0 50px rgba(57, 255, 20, 0.1);
}

.wall-header:hover h2 {
  animation: wall-glitch-title 0.5s infinite;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .wall-header {
    padding: 30px 20px;
    clip-path: none;
    border-radius: 4px;
    border-width: 3px; /* Slightly thinner on mobile */
  }
  
  .wall-header h2 {
    font-size: 32px;
    letter-spacing: 4px;
  }
  
  .wall-description {
    font-size: 12px;
    letter-spacing: 1px;
  }
  
  .wall-header .corner {
    width: 15px;
    height: 15px;
    border-width: 2px;
  }
}

/* Masonry Grid */
.wall-grid {
  position: relative;
  margin-bottom: 40px;
  width: 100%;
}

.wall-item {
  position: absolute; /* This will be set by JS, but we need a base */
  width: calc(33.333% - 10px); /* Fallback, JS will override */
  background: #0e0e0e;
  border: 2px solid #2f2f2f;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  margin-bottom: 15px;
}

/* Image styling */
.wall-item.image-only img {
  width: 100%;
  height: auto;
  display: block;
}

.wall-item-content {
  padding: 12px;
  border-top: 2px solid #2f2f2f;
}

/* Text-only styling */
.wall-item.text-only {
  padding: 0; /* Remove padding since content has it */
  min-height: 100px;
}

.wall-item.text-only .wall-item-text {
  font-size: 14px;
  text-align: center;
  word-wrap: break-word;
  max-width: 100%;
  margin: 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 3px solid #39ff14;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
}

/* Mobile fallback - but JS will override anyway */
@media (max-width: 750px) {
  .wall-item {
    width: 100%;
    position: relative !important; /* Force stack if JS fails */
    left: 0 !important;
    top: auto !important;
    margin-bottom: 15px;
  }
  
  .wall-grid {
    height: auto !important;
    display: block;
  }
}

/* Section Boxes */
.about-section {
  background: #0e0e0e;
  border: 2px solid #2f2f2f;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.about-section h3 {
  margin: 0 0 15px 0;
  color: #39ff14;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid #39ff14;
  padding-bottom: 8px;
}

.about-section p {
  color: #edf2ed;
  line-height: 1.6;
  margin: 10px 0;
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.interest-tag {
  background: #174522;
  border: 1px solid #39ff14;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  color: #39ff14;
  font-size: 12px;
  transition: all 0.3s;
  cursor: pointer;
}

.interest-tag:hover {
  background: #39ff14;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
}

/* Favorites List */
.favorites-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.fav-item {
  background: #1a1a1a;
  border-left: 3px solid #39ff14;
  padding: 12px;
  border-radius: 4px;
}

.fav-label {
  color: #39ff14;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.fav-value {
  color: #edf2ed;
  font-size: 13px;
}

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.gallery-item {
  aspect-ratio: 1;
  border: 2px solid #2f2f2f;
  border-radius: 8px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 12px;
  transition: all 0.3s;
  cursor: pointer;
}

.gallery-item:hover {
  border-color: #39ff14;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

/* Blog Entries */
.blog-entries {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.blog-entry {
  background: #1a1a1a;
  border: 2px solid #2f2f2f;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
}

.blog-entry:hover {
  border-color: #39ff14;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
  transform: translateX(5px);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2f2f2f;
}

.blog-title {
  margin: 0;
  color: #39ff14;
  font-size: 18px;
  font-weight: bold;
}

.blog-date {
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
}

.blog-content p {
  color: #edf2ed;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.blog-tag {
  background: #174522;
  color: #39ff14;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  border: 1px solid #39ff14;
}

/* Mobile Responsive */
@media (max-width: 750px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-stats {
    justify-content: center;
  }
  
  .interests-grid,
  .favorites-list,
  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
OCs page

/* THIS IS THE FIXED HEADER CSS */
.oc-header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border: 3px solid #39ff14;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
  position: relative;
  overflow: hidden;
  isolation: isolate; /* THIS LINE CONTAINS THE GLITCH */
}

/* Scanline animation */
.oc-header::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.8), transparent);
  animation: scan 2s linear infinite;
  z-index: 1;
}

/* Grid overlay */
.oc-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(57, 255, 20, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.oc-header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border: 3px solid #39ff14;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  margin-top: 30px; /* Adjust the value as needed */
  text-align: center;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
  position: relative;
  overflow: hidden;
  isolation: isolate;  /* ADD THIS LINE */
}

@keyframes scan {
  0% { top: -100%; }
  100% { top: 200%; }
}

.oc-header h2 {
  margin: 0 0 10px 0;
  color: #39ff14;
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 6px;
  text-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14;
  position: relative;
  z-index: 2; /* KEEPS TEXT ON TOP */
}

.oc-header p {
  color: #aaa;
  margin: 0;
  font-size: 12px;
  letter-spacing: 2px;
  position: relative;
  z-index: 2; /* KEEPS TEXT ON TOP */
}

/* Random Widget */
.random-widget {
  background: #0e0e0e;
  border: 2px solid #39ff14;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.random-widget h3 {
  margin: 0 0 15px 0;
  color: #39ff14;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.random-btn {
  background: #174522;
  color: #39ff14;
  border: 2px solid #39ff14;
  padding: 12px 30px;
  border-radius: 6px;
  cursor: pointer;
  font-family: monospace;
  font-size: 14px;
  text-transform: uppercase;
  transition: all 0.3s;
  font-weight: bold;
}

.random-btn:hover {
  background: #39ff14;
  color: #000;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.7);
  transform: scale(1.05);
}

/* Story Sections */
.story-section {
  margin-bottom: 40px;
}

.story-header {
  background: #0e0e0e;
  border: 2px solid #39ff14;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.story-title {
  color: #39ff14;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0;
}

.story-count {
  color: #888;
  font-size: 12px;
}

/* Character Grid */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.character-card {
  background: #0e0e0e;
  border: 2px solid #2f2f2f;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.character-card:hover {
  border-color: #39ff14;
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.5);
  transform: translateY(-5px);
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-image {
  width: 100%;
  aspect-ratio: 3/4;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  border-bottom: 2px solid #2f2f2f;
}

.character-info {
  padding: 10px;
  text-align: center;
}

.character-name {
  margin: 0;
  color: #39ff14;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

.character-role {
  margin: 5px 0 0 0;
  color: #888;
  font-size: 10px;
}

.character-stats {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-badge {
  background: #174522;
  color: #39ff14;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 9px;
  border: 1px solid #39ff14;
}
/* ===== MOBILE MODAL FIXES ===== */

/* Modal container - ensure proper scrolling */
.character-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
  padding: 10px;
}

.character-modal.active {
  display: block;
}
/* Modal */
.character-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;

}

.character-modal.active {
  display: block;
}

.modal-content {
  background: linear-gradient(135deg, #0e0e0e 0%, #1a1a1a 100%);
  border: 3px solid #39ff14;
  border-radius: 12px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 0 50px rgba(57, 255, 20, 0.8);
}

.modal-close {
  background: #174522;
  color: #39ff14;
  border: 2px solid #39ff14;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  float: right;
  margin: 15px;
}

.modal-close:hover {
  background: #39ff14;
  color: #000;
  transform: rotate(90deg);
}

    /* General Styling for the Hero Section */
    .modal-hero {
        display: flex;
        justify-content: space-between;
        padding: 20px;
        background: #121212; /* Dark background */
        border-radius: 15px;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3); /* Neon glow effect */
    }

    /* Left Section (Character Image + Stats) */
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 40%; /* Adjusting the width of the left section */
    }

/* Character Image */
.modal-character-image {
    width: 350px;  /* Increase the width */
    height: 350px; /* Increase the height */
    font-size: 5rem; /* Increase font size to better fit the image */
    background-color: #2a2a2a;
    color: #fff;
    border-radius: 50%;
    display: flex;
   align-items: center;
   justify-content: center;
   font-size: 100px;
   box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
   flex-shrink: 0;
   overflow: hidden;  /* Clips image to circle */
}


/* Update for smaller screen responsiveness (mobile view) */
@media (max-width: 768px) {
    .modal-character-image {
        width: 150px;  /* Adjust image size for smaller screens */
        height: 150px;
        font-size: 3rem; /* Adjust font size for smaller screens */
    }
}

    /* Stats Section */
    .hero-stats {
        width: 100%;
        background-color: #1a1a1a;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
        flex: 1;
    }

    /* Stat Item (for each stat in the stats box) */
    .stat-item {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
        border-bottom: 1px solid #2f2f2f;
        font-size: 12px;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-label {
        color: #888;
        text-transform: uppercase;
        font-size: 10px;
    }

    .stat-value {
        color: #39ff14;
        font-weight: bold;
       font-size: 15px;
    }

    /* Right Section (Character Info) */
    .hero-right {
        width: 55%; /* Adjusting the width of the right section */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Character Name and Title */
    

    .modal-character-name {
        font-size: 2.5rem;
        color: #39ff14;
        margin-bottom: 10px;
    }

    .modal-title, .modal-nickname {
        font-size: 1.2rem;
        color: #eaeaea;
        margin-bottom: 5px;
    }

    /* Quote Box */
    .quote-box {
        margin-top: 20px;
        font-size: 1.2rem;
        color: #39ff14;
        padding: 10px;
        border-radius: 8px;
        background-color: #1a1a1a;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
        margin-bottom: 20px;
    }

    /* Bio Box */
    .bio-box {
        font-size: 1rem;
        color: #ddd;
        background-color: #1a1a1a;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    }

    /* Responsiveness (Mobile View) */
    @media (max-width: 768px) {
        .modal-hero {
            flex-direction: column;
            padding: 10px;
        }

        .hero-left, .hero-right {
            width: 100%;
            align-items: center;
        }

        .modal-character-name {
            font-size: 2rem; /* Smaller font size on mobile */
        }

        .stat-item {
            font-size: 10px; /* Smaller text on mobile */
        }
    }


/* Tabs */
.modal-tabs {
  display: flex;
  gap: 0;
  padding: 0 30px;
  border-bottom: 2px solid #2f2f2f;
  background: #0a0a0a;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  color: #888;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-family: monospace;
  font-size: 12px;
  text-transform: uppercase;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #39ff14;
}

.tab-btn.active {
  color: #39ff14;
  border-bottom-color: #39ff14;
}

/* Tab Content */
.modal-body {
  padding: 30px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.section-title {
  color: #39ff14;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 25px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #39ff14;
}

.section-title:first-child {
  margin-top: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.info-card {
  background: #1a1a1a;
  border-left: 3px solid #39ff14;
  padding: 10px;
  border-radius: 4px;
}

.info-label {
  color: #39ff14;
  font-size: 9px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: bold;
}

.info-value {
  color: #edf2ed;
  font-size: 12px;
  line-height: 1.4;
}

/* Trait Boxes */
.trait-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.trait-box {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #2f2f2f;
}

.trait-box h4 {
  margin: 0 0 10px 0;
  color: #39ff14;
  font-size: 13px;
  text-transform: uppercase;
}

.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trait-tag {
  background: #174522;
  color: #39ff14;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  border: 1px solid #39ff14;
}

.trait-tag.negative {
  background: #451717;
  color: #ff4444;
  border-color: #ff4444;
}

/* List Box */
.list-box {
  background: #1a1a1a;
  border-left: 3px solid #39ff14;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.list-box ul {
  margin: 0;
  padding-left: 20px;
  color: #edf2ed;
  font-size: 12px;
  line-height: 1.8;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-left {
    align-items: center;
  }
  
  .trait-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}
/*comics page
/* Stats Widget */
.stats-widget {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-box {
  background: #0e0e0e;
  border: 2px solid #39ff14;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.stat-number {
  color: #39ff14;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 0 0 10px #39ff14;
  margin-bottom: 5px;
}

.stat-label {
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
}

/* Comic Cards Grid */
.comics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.comic-card {
  background: #0e0e0e;
  border: 3px solid #2f2f2f;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}
.comic-modal.active ~ .comics-grid .comic-card::before {
  display: none;
}

.comic-card:hover {
  border-color: #39ff14;
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.7);
  transform: translateY(-10px);
}

.comic-card::before {
  content: 'CLICK TO READ';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(57, 255, 20, 0.95);
  color: #000;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 5; /* Changed from 10 to 5 */
  pointer-events: none;
}

.comic-card:hover::before {
  opacity: 1;
}

.comic-cover {
  width: 100%;
  height: 300px;
  background: #1a1a1a;
  display: block;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
  object-fit: fill;
  border-bottom: 3px solid #2f2f2f;
}

.comic-card:hover .comic-cover {
  filter: brightness(0.3);
}

.comic-info {
  padding: 20px;
}

.comic-title {
  margin: 0 0 10px 0;
  color: #39ff14;
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.comic-tagline {
  color: #aaa;
  font-size: 13px;
  font-style: italic;
  margin-bottom: 15px;
}

.comic-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.meta-tag {
  background: #174522;
  color: #39ff14;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  border: 1px solid #39ff14;
  text-transform: uppercase;
}

.comic-stats {
  display: flex;
  justify-content: space-around;
  padding: 15px 0;
  border-top: 2px solid #2f2f2f;
}

.comic-stat {
  text-align: center;
}

.comic-stat-value {
  color: #39ff14;
  font-size: 20px;
  font-weight: bold;
}

.comic-stat-label {
  color: #888;
  font-size: 9px;
  text-transform: uppercase;
}

/* Modal */
.comic-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow-y: auto;
}

.comic-modal.active {
  display: block;
}

.modal-content {
  background: linear-gradient(135deg, #0e0e0e 0%, #1a1a1a 100%);
  border: 3px solid #39ff14;
  border-radius: 12px;
  max-width: 900px;
  margin: 20;
  box-shadow: 0 0 50px rgba(57, 255, 20, 0.8);
}

.modal-close {
  background: #174522;
  color: #39ff14;
  border: 2px solid #39ff14;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  float: right;
  margin: 15px;
}

.modal-close:hover {
  background: #39ff14;
  color: #000;
  transform: rotate(90deg);
}

.modal-header {
  padding: 60px 30px 30px 30px;
  border-bottom: 2px solid #2f2f2f;
  clear: both;
}

.modal-comic-title {
  margin: 0 0 15px 0;
  color: #39ff14;
  font-size: 42px;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 0 0 15px #39ff14;
}

.modal-tagline {
  color: #aaa;
  font-size: 16px;
  font-style: italic;
  margin-bottom: 20px;
}

.modal-genres {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.genre-tag {
  background: #174522;
  color: #39ff14;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  border: 1px solid #39ff14;
  text-transform: uppercase;
}

.modal-body {
  padding: 30px;
}

.section-title {
  color: #39ff14;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 25px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #39ff14;
}

.section-title:first-child {
  margin-top: 0;
}

.synopsis-text {
  color: #edf2ed;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.warning-box {
  background: #451717;
  border: 2px solid #ff4444;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.warning-box h3 {
  color: #ff4444;
  font-size: 14px;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.warning-list {
  color: #ffaaaa;
  font-size: 12px;
  margin: 0;
  padding-left: 20px;
}

.update-schedule {
  background: #1a1a1a;
  border-left: 3px solid #39ff14;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

.update-schedule p {
  color: #edf2ed;
  margin: 5px 0;
  font-size: 13px;
}

.read-button {
  background: linear-gradient(135deg, #39ff14, #2ecc40);
  color: #0a0a0a; /* Very dark grey */
  border: none;
  padding: 20px 40px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  font-family: monospace;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
  transition: all 0.3s;
  display: block;
  width: calc(100% - 40px); /* Subtract padding from width */
  max-width: 100%;
  margin: 30px auto 0 auto; /* Center it with auto margins */
  letter-spacing: 3px;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculation */
}

.read-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(57, 255, 20, 0.9);
  animation: pulse-glow 0.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(57, 255, 20, 0.6); }
  50% { box-shadow: 0 0 60px rgba(57, 255, 20, 1); }
}

/* Latest Update Widget */
.latest-update {
  background: #0e0e0e;
  border: 2px solid #39ff14;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.latest-update h3 {
  margin: 0 0 15px 0;
  color: #39ff14;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.update-item {
  background: #1a1a1a;
  padding: 12px;
  border-left: 3px solid #39ff14;
  margin-bottom: 10px;
  border-radius: 4px;
}

.update-item:last-child {
  margin-bottom: 0;
}

.update-title {
  color: #39ff14;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 5px;
}

.update-date {
  color: #888;
  font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
  .comics-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-widget {
    grid-template-columns: repeat(2, 1fr);
  }
}
/*writing page
/* Stats Widget */
.stats-widget {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-box {
  background: #0e0e0e;
  border: 2px solid #39ff14;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.stat-number {
  color: #39ff14;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 0 0 10px #39ff14;
}

.stat-label {
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Story Card */
.story-card {
  background: #0e0e0e;
  border: 2px solid #2f2f2f;
  border-radius: 12px;
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.3s;
}

.story-card:hover {
  border-color: #39ff14;
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.4);
  transform: translateY(-3px);
}

.story-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: 25px;
  border-bottom: 2px solid #2f2f2f;
}

.story-title {
  margin: 0 0 10px 0;
  color: #39ff14;
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 10px #39ff14;
}

.story-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  margin-right: 10px;
}

.status-ongoing {
  background: #174522;
  color: #39ff14;
  border: 1px solid #39ff14;
}

.status-complete {
  background: #2a2a2a;
  color: #888;
  border: 1px solid #444;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #888;
}

.meta-label {
  color: #39ff14;
  font-weight: bold;
}

.story-body {
  padding: 25px;
}

.synopsis {
  background: #1a1a1a;
  border-left: 3px solid #39ff14;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.synopsis h3 {
  margin: 0 0 10px 0;
  color: #39ff14;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.synopsis p {
  color: #edf2ed;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: #174522;
  color: #39ff14;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 10px;
  border: 1px solid #39ff14;
  text-transform: uppercase;
}

.tag.warning {
  background: #451717;
  color: #ff4444;
  border-color: #ff4444;
}

.tag.genre {
  background: #1a1a3a;
  color: #8888ff;
  border-color: #8888ff;
}

/* Chapter List */
.chapter-section {
  margin-top: 20px;
}

.chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #1a1a1a;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #2f2f2f;
}

.chapter-header:hover {
  background: #222;
  border-color: #39ff14;
}

.chapter-header h3 {
  margin: 0;
  color: #39ff14;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.chapter-count {
  color: #888;
  font-size: 12px;
}

.toggle-icon {
  color: #39ff14;
  font-size: 20px;
  transition: transform 0.3s;
}

.toggle-icon.open {
  transform: rotate(90deg);
}

.chapter-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.chapter-list.open {
  max-height: 1000px;
}

.chapter-item {
  background: #0a0a0a;
  border: 1px solid #2f2f2f;
  border-radius: 6px;
  padding: 15px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  cursor: pointer;
}

.chapter-item:hover {
  border-color: #39ff14;
  background: #111;
  transform: translateX(5px);
}

.chapter-info {
  flex: 1;
}

.chapter-number {
  color: #39ff14;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.chapter-title {
  color: #edf2ed;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}

.chapter-date {
  color: #666;
  font-size: 10px;
}

.chapter-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.word-count {
  color: #888;
  font-size: 11px;
}

.read-btn {
  background: #174522;
  color: #39ff14;
  border: 2px solid #39ff14;
  padding: 8px 20px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.read-btn:hover {
  background: #39ff14;
  color: #000;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
}

/* Progress Bar */
.progress-widget {
  background: #0e0e0e;
  border: 2px solid #39ff14;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.progress-widget h3 {
  margin: 0 0 15px 0;
  color: #39ff14;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.progress-bar {
  background: #1a1a1a;
  border-radius: 10px;
  height: 30px;
  overflow: hidden;
  position: relative;
  border: 1px solid #2f2f2f;
}

.progress-fill {
  background: linear-gradient(90deg, #39ff14, #2ecc40);
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: bold;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .story-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .chapter-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .chapter-meta {
    width: 100%;
    justify-content: space-between;
  }
}

/* Sidebar Ad Container */
.sidebar-ads {
  position: fixed;
  left: 20px;
  bottom: 20px;      /* ← anchor to bottom */
  top: auto;         /* ← disable top centering */
  transform: none;   /* ← remove translateY */
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
  max-width: 200px;
}

/* Individual Ad Box */
.page-ad {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border: 2px solid #39ff14;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: #39ff14; box-shadow: 0 0 15px rgba(57, 255, 20, 0.3); }
  50% { border-color: #2ecc40; box-shadow: 0 0 25px rgba(57, 255, 20, 0.5); }
}

.page-ad::before {
  content: 'AD';
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 8px;
  color: #666;
  background: #0a0a0a;
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid #2f2f2f;
}

.page-ad::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(57, 255, 20, 0.1), transparent);
  animation: scan-ad 3s linear infinite;
}

@keyframes scan-ad {
  0% { top: -100%; }
  100% { top: 200%; }
}

.page-ad:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
  animation: none;
  border-color: #4cff2e;
}

.ad-icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 5px #39ff14);
}

.ad-title {
  color: #39ff14;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 0 5px 0;
  text-align: center;
  letter-spacing: 1px;
}

.ad-text {
  color: #888;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  margin: 0;
}

.ad-cta {
  background: #174522;
  color: #39ff14;
  text-align: center;
  padding: 5px;
  margin-top: 10px;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  border: 1px solid #39ff14;
  font-weight: bold;
}

.page-ad:hover .ad-cta {
  background: #39ff14;
  color: #000;
}

/* Glitch Effect on Hover */
.page-ad:hover .ad-title {
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  33% { transform: translate(-2px, 2px); }
  66% { transform: translate(2px, -2px); }
}

/* Hide on mobile */
@media (max-width: 1024px) {
  .sidebar-ads {
    display: none;
  }
}

/* Demo content */
.content {
  max-width: 800px;
}

h2 {
  color: #39ff14;
}

p {
  color: #edf2ed;
  line-height: 1.6;
}
/*modal masonry*/
.char-gallery {
  column-count: 3;
  column-gap: 12px;
}

.gallery-image {
  break-inside: avoid;
  margin-bottom: 12px;
  width: 100%;
  border-radius: 6px;
  border: 2px solid #2f2f2f;
  transition: all 0.3s;
  cursor: pointer;
}

.gallery-image:hover {
  border-color: #39ff14;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.gallery-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.spotify-container {
  margin-top: 25px;
}

@media (max-width: 768px) {
  .char-gallery {
    column-count: 2;
  }
}

/* Page Layout with Left Sidebar Only */
.page-layout {
  display: grid;
  grid-template-columns: 300px 1fr; /* left sidebar | main content */
  gap: 0px;
  min-height: 100vh;
  padding: 10px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Sidebar Base Styling */
.left-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #39ff14 #0e0e0e;
  padding-right: 8px;
}

.left-sidebar::-webkit-scrollbar {
  width: 6px;
}

.left-sidebar::-webkit-scrollbar-track {
  background: #0e0e0e;
}

.left-sidebar::-webkit-scrollbar-thumb {
  background: #39ff14;
  border-radius: 3px;
  box-shadow: 0 0 4px #39ff14;
}

/* Main Content Area */
.main-content {
  min-width: 0; /* Prevents overflow */
}

/* Sidebar Widgets */
.sidebar-widget {
  background: #0e0e0e;
  border: 2px solid #2f2f2f;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s;
}

.sidebar-widget:hover {
  border-color: #39ff14;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

.widget-header {
  background: #1a1a1a;
  color: #39ff14;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #2f2f2f;
}

.widget-content {
  padding: 12px;
  color: #edf2ed;
  font-size: 12px;
  min-height: 60px; /* Placeholder height */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-layout {
    grid-template-columns: 1fr; /* Stack everything */
    padding: 10px;
    display: flex;
    flex-direction: column;
  }
  
  .left-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 20px;
    order: 2; /* Moves sidebar to bottom */
  }
  
  .main-content {
    order: 1; /* Keeps main content on top */
  }
}

/* Story Page Mobile Responsive */
@media (max-width: 768px) {
  .story-container {
    flex-direction: column;
  }
  
  .story-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }
  
  .category-intro {
    flex-direction: column;
  }
  
  .category-image {
    width: 100%;
    height: auto;
  }
  
  .category-synopsis {
    font-size: 14px;
  }
  
  .subcategory-title {
    font-size: 18px;
  }
  
  .category-header {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .book-cover {
    border-width: 1px;
  }
  
  .category-intro {
    padding: 15px;
  }
  
  .sidebar-nav {
    font-size: 12px;
  }
}

/* ===== GLOBAL MOBILE FIXES ===== */
@media (max-width: 768px) {
  /* Wrapper and spacing */
  .wrapper {
    margin: 1rem;
  }
  
  /* Header */
  .header h1 {
    font-size: 1.5rem;
  }
  
  .header p {
    font-size: 0.85em;
  }
  
  /* Navigation - already has mobile styles but ensure they work */
  .navigation {
    margin: 0;
  }
  
  /* Main content */
  .main-inner {
    padding: 0.5rem 1rem;
  }
  
  
  /* Widget Sidebar - stack to single column */
  .widget-sidebar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* Update Log */
  .update-log-content {
    font-size: 10px;
  }
  
  /* Music Player - move to top right */
  .music-player {
    top: 10px;
    right: 10px;
    bottom: auto;
    padding: 6px;
    gap: 6px;
  }
  
  .player-header {
    font-size: 8px;
  }
  
  .play-btn {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  
  /* Wall Grid */
  .wall-header {
    padding: 20px 15px;
  }
  
  .wall-header h2 {
    font-size: 28px;
    letter-spacing: 3px;
  }
  
  /* About Page */
  .profile-card {
    flex-direction: column;
    padding: 20px;
  }
  
  .profile-avatar {
    width: 120px;
    height: 120px;
    font-size: 50px;
  }
  
  .profile-stats {
    justify-content: center;
    width: 100%;
  }
  
  .interests-grid,
  .favorites-list,
  .image-gallery {
    grid-template-columns: 1fr;
  }
  
  /* OCs Page */
  .oc-header h2 {
    font-size: 24px;
    letter-spacing: 3px;
  }
  
  .character-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  /* Character Modal */
  .modal-content {
    margin: 10px;
  }
  
  .modal-hero {
    flex-direction: column;
    padding: 15px;
  }
  
  .hero-left,
  .hero-right {
    width: 100%;
  }
  
  .modal-character-image {
    width: 150px;
    height: 150px;
    font-size: 60px;
  }
  
  .modal-character-name {
    font-size: 1.8rem;
  }
  
  .modal-tabs {
    padding: 0 15px;
    overflow-x: auto;
  }
  
  .tab-btn {
    font-size: 10px;
    padding: 12px 15px;
  }
  
  .modal-body {
    padding: 20px 15px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .trait-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  
  .char-gallery {
    column-count: 2;
  }
  
  /* Comics Page */
  .comics-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-widget {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .comic-cover {
    height: 250px;
  }
  
  .modal-comic-title {
    font-size: 28px;
  }
  
  /* Writing Page */
  .story-title {
    font-size: 24px;
  }
  
  .story-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .chapter-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }
  
  .chapter-meta {
    width: 100%;
    justify-content: space-between;
  }
  
  .chapter-header h3 {
    font-size: 14px;
  }
  
  /* Story Page */
  .story-container {
    flex-direction: column;
  }
  
  .story-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }
  
  .category-intro {
    flex-direction: column;
    padding: 15px;
  }
  
  .category-image {
    width: 100%;
    height: auto;
  }
  
  .category-synopsis {
    font-size: 14px;
  }
  
  .subcategory-title {
    font-size: 18px;
  }
  
  .category-header {
    font-size: 24px;
  }
  
  /* Hide sidebar ads on mobile */
  .sidebar-ads {
    display: none;
  }
  
  /* Page Layout (for pages with sidebar) */
  .page-layout {
    grid-template-columns: 1fr;
    padding: 10px;
    display: flex;
    flex-direction: column;
  }
  
  .left-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 20px;
    order: 2;
  }
  
  .main-content {
    order: 1;
  }
}

/* ===== EXTRA SMALL SCREENS (phones in portrait) ===== */
@media (max-width: 480px) {
  /* Even smaller text */
  .header h1 {
    font-size: 1.2rem;
  }
  
  /* Book grid - 2 columns only */
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  /* Character grid - 2 columns */
  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Widget grid - single column */
  .widget-sidebar {
    grid-template-columns: 1fr;
  }
  
  /* Binary clock - smaller */
  .binary-digit {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }
  
  /* Reduce padding everywhere */
  .story-card,
  .comic-card,
  .about-section {
    padding: 15px;
  }
  
  /* Smaller modals */
  .modal-content {
    margin: 5px;
    border-width: 2px;
  }
  
  .modal-close {
    width: 35px;
    height: 35px;
    font-size: 20px;
    margin: 10px;
  }
}

   /* Speech Bubble Container - LEFT VERSION */
    .speech-bubble-widget {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      max-width: 900px;
      margin: 20px auto;
      position: relative;
    }

    /* Speech Bubble Container - RIGHT VERSION */
    .speech-bubble-widget.right {
      flex-direction: row-reverse;
    }

    /* Character Avatar Box */
    .character-avatar {
      width: 100px;
      height: 100px;
      background: #0a0a0a;
      border: 4px solid #39ff14;
      box-shadow: 
        inset -4px -4px 0 0 #2a2a2a,
        inset 4px 4px 0 0 #4fff4f;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      flex-shrink: 0;
      overflow: hidden;
      image-rendering: pixelated;
    }

    .character-avatar img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      image-rendering: pixelated;
    }

    .character-avatar .placeholder-icon {
      font-size: 48px;
      image-rendering: pixelated;
    }

    /* Speech Bubble - 8-bit retro game style */
    .speech-bubble {
      flex: 1;
      background: #0a0a0a;
      border: 4px solid #39ff14;
      box-shadow: 
        inset -4px -4px 0 0 #2a2a2a,
        inset 4px 4px 0 0 #4fff4f,
        4px 4px 0 0 #1a1a1a;
      padding: 20px 25px;
      position: relative;
    }

    /* 8-bit pixel tail - LEFT */
    .speech-bubble::before {
      content: '';
      position: absolute;
      left: -16px;
      top: 35px;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 8px 16px 8px 0;
      border-color: transparent #39ff14 transparent transparent;
    }

    .speech-bubble::after {
      content: '';
      position: absolute;
      left: -8px;
      top: 39px;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 4px 8px 4px 0;
      border-color: transparent #0a0a0a transparent transparent;
    }

    /* 8-bit pixel tail - RIGHT */
    .speech-bubble-widget.right .speech-bubble::before {
      left: auto;
      right: -16px;
      border-width: 8px 0 8px 16px;
      border-color: transparent transparent transparent #39ff14;
    }

    .speech-bubble-widget.right .speech-bubble::after {
      left: auto;
      right: -8px;
      border-width: 4px 0 4px 8px;
      border-color: transparent transparent transparent #0a0a0a;
    }

    /* Speech Content */
    .speech-text {
      color: #edf2ed;
      font-size: 14px;
      line-height: 1.6;
      margin: 0;
      position: relative;
      font-family: "PixelCode", monospace, sans-serif;
      text-shadow: 2px 2px 0 #000;
    }

 /* 8-bit blinking cursor - only show after typing is done */
.speech-text.typing::after {
  content: '';
}

.speech-text::after {
  content: '█';
  color: #39ff14;
  animation: cursor-blink 1s steps(2) infinite;
  margin-left: 1.5px;
}
    @keyframes cursor-blink {
      0%, 50% { opacity: 1; }
      51%, 100% { opacity: 0; }
    }

    /* Pixel grid overlay */
    .speech-bubble .pixel-grid {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
        repeating-linear-gradient(0deg, rgba(57, 255, 20, 0.02) 0px, rgba(57, 255, 20, 0.02) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(90deg, rgba(57, 255, 20, 0.02) 0px, rgba(57, 255, 20, 0.02) 1px, transparent 1px, transparent 4px);
      pointer-events: none;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
      .speech-bubble-widget,
      .speech-bubble-widget.right {
        flex-direction: column;
        gap: 15px;
      }

      .character-avatar {
        width: 80px;
        height: 80px;
        align-self: center;
      }

      .speech-bubble {
        padding: 15px 20px;
      }

      .speech-bubble::before {
        left: 50% !important;
        right: auto !important;
        top: -12px;
        transform: translateX(-50%) rotate(-90deg);
      }

      .speech-bubble::after {
        left: 50% !important;
        right: auto !important;
        top: -8px;
        transform: translateX(-50%) rotate(-90deg);
      }

      .speech-text {
        font-size: 12px;
      }
    }

    h2 {
      color: #39ff14;
      text-align: center;
      margin: 40px 0 10px 0;
      font-family: "PixelCode", monospace, sans-serif;
      text-shadow: 3px 3px 0 #000;
    }

    h3 {m
      color: #39ff14;
      text-align: center;
      margin: 60px 0 20px 0;
      font-family: "PixelCode", monospace, sans-serif;
      font-size: 18px;
      text-shadow: 2px 2px 0 #000;
    }

    p.note {
      color: #888;
      text-align: center;
      margin-top: 30px;
      font-size: 12px;
      font-family: "PixelCode", monospace, sans-serif;
    }