:root {
  --container-width: 960px;
  --base-background-color: #000000;
  --primary-color: #00ff00;
  --base-font-family: 'Courier New', Courier, monospace;
}


/* The Terminal Bounding Box */
#page-wrapper {
  width: 100%; /* Force it to expand */
  max-width: var(--container-width); /* Cap the expansion at 960px */
  margin: 0 auto;
  border-left: 1px solid #004400;
  border-right: 1px solid #004400;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.05);
}


.modular-hero {
  background-color: #000000;
  padding: 100px 0;
  border-bottom: 2px solid #00ff00;
}

.modular-hero h1 {
  font-weight: 800;
  letter-spacing: -1px;
  color: #00ff00;
}

pre, code {
  background-color: transparent !important;
  border: none !important;
  color: var(--primary-color);
  font-size: 14px;
  line-height: 1.2;
  overflow-x: auto;
}


/* NFO Vault Grid Styling */
.nfo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 40px;
}

.nfo-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--primary-color);
  text-decoration: none;
  background-color: #0a0a0a;
  transition: all 0.2s ease-in-out;
}

.nfo-thumb:hover {
  background-color: var(--primary-color);
  color: #000000;
}

.nfo-thumb .file-icon {
  font-size: 24px;
  margin-bottom: 10px;
}



/* Terminal Viewer Styling */
.terminal-window {
  margin-top: 50px;
  border: 1px solid var(--primary-color);
  background-color: #050505;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--primary-color);
  padding: 10px 15px;
  background-color: #0a0a0a;
  color: var(--primary-color);
  font-weight: bold;
}

.terminal-close {
  color: var(--primary-color);
  text-decoration: none;
}

.terminal-close:hover {
  color: #ffffff;
  background-color: #ff0000;
}

.terminal-body {
  padding: 20px;
}


/* =========================================
   CRT MONITOR OVERLAY & PHOSPHOR EFFECTS
   ========================================= */

/* 1. Global Phosphor Glow and Flicker Animation */
body {
  text-shadow: 0 0 4px rgba(0, 255, 0, 0.6);
  animation: crt-flicker 0.15s infinite;
}

/* 2. The Scanline Overlay */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
      rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.25) 50%
    ), 
    linear-gradient(
      90deg, 
      rgba(255, 0, 0, 0.06), 
      rgba(0, 255, 0, 0.02), 
      rgba(0, 0, 255, 0.06)
    );
  z-index: 9999;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none; /* Let clicks pass through the scanlines */
}

/* 3. Voltage Flicker Keyframes */
@keyframes crt-flicker {
  0% { opacity: 0.98; }
  5% { opacity: 0.85; }
  10% { opacity: 0.98; }
  15% { opacity: 1; }
  100% { opacity: 1; }
}


/* =========================================
   CUSTOM TERMINAL SCROLLBARS
   ========================================= */
::-webkit-scrollbar {
  width: 14px;
  background-color: #050505;
  border-left: 1px solid #004400;
}

::-webkit-scrollbar-thumb {
  background-color: #008800;
  border: 1px solid #00ff00;
  border-radius: 0; /* Keep it blocky, no modern rounded corners */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #00ff00;
}

/* Firefox compatibility */
html {
  scrollbar-width: thin;
  scrollbar-color: #008800 #050505;
}
