/* === MR. SCUMS — SHARED STYLESHEET === */
/* Fonts: Orbitron (headings), VT323 (terminal/UI), Source Code Pro (story text) */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=VT323&family=Source+Code+Pro:wght@400;600&display=swap');

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === BASE === */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #0a0a0a;
  color: #d0d0d0;
  font-family: 'VT323', monospace;
  font-size: 22px;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 50px;
}

/* CRT scanline overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  z-index: 50;
}

/* === LAYOUT === */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === DIVIDER === */
hr {
  border: none;
  border-top: 1px solid #333;
  margin: 24px 0;
}

/* === NEON GLOW === */
.glow-red {
  text-shadow:
    0 0 8px rgba(232, 52, 46, 1),
    0 0 16px rgba(232, 52, 46, 0.7),
    0 0 36px rgba(232, 52, 46, 0.45),
    0 0 70px rgba(232, 52, 46, 0.2);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid #6ab8c7;
  color: #6ab8c7;
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.4;
}

.btn:hover,
.btn:focus {
  background: rgba(106, 184, 199, 0.12);
  color: #9dd8e3;
  outline: none;
}

/* === LANDING PAGE === */
.landing-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 24px 0 16px;
}

.site-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(52px, 13vw, 104px);
  font-weight: 700;
  color: #e8342e;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 14px;
}

.site-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(13px, 2.8vw, 19px);
  font-weight: 400;
  color: #6ab8c7;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.site-byline {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #555;
  margin-bottom: 8px;
}

.menu-prompt {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #6ab8c7;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* Story menu list */
.story-menu {
  list-style: none;
  margin-bottom: 24px;
}

.story-menu li {
  margin-bottom: 2px;
}

.story-menu a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 14px;
  text-decoration: none;
  color: #d0d0d0;
  font-family: 'VT323', monospace;
  font-size: 26px;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}

.story-menu a:hover,
.story-menu a:focus {
  background: rgba(255, 255, 255, 0.035);
  border-color: #2a2a2a;
  outline: none;
}

.menu-number {
  color: #e8342e;
  min-width: 28px;
  flex-shrink: 0;
}

.menu-title {
  flex: 1;
}

.menu-pages {
  color: #555;
  font-size: 20px;
  flex-shrink: 0;
}

/* Blinking cursor */
.input-line {
  font-family: 'VT323', monospace;
  font-size: 26px;
  color: #d0d0d0;
  margin: 20px 0 32px;
  padding: 0 14px;
}

.cursor {
  display: inline-block;
  width: 14px;
  height: 1.05em;
  background: #d0d0d0;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.2s step-end infinite;
}

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

/* Footer WarGames quote */
.footer-quote {
  font-family: 'VT323', monospace;
  font-size: 19px;
  color: #555;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* === STATUS BAR === */
.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid #333;
  background: rgba(10, 10, 10, 0.97);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 24px;
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: #555;
  letter-spacing: 1px;
  z-index: 100;
}

.status-contact {
  color: #555;
  text-decoration: none;
  font-family: 'VT323', monospace;
  font-size: 17px;
  letter-spacing: 1px;
}

.status-contact:hover {
  color: #6ab8c7;
}

/* === ABOUT OVERLAY === */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 500;
  overflow-y: auto;
  padding: 40px 20px;
}

.overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.overlay-box {
  background: #111;
  border: 1px solid #333;
  border-radius: 3px;
  max-width: 580px;
  width: 100%;
  padding: 32px;
  position: relative;
  margin: auto 0;
}

.overlay-close {
  position: absolute;
  top: 10px;
  right: 14px;
  color: #e8342e;
  font-family: 'VT323', monospace;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 2px 6px;
  -webkit-appearance: none;
}

.overlay-close:hover {
  color: #ff6a64;
}

.overlay-title {
  font-family: 'Orbitron', sans-serif;
  color: #e8342e;
  font-size: 22px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.overlay-body {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #555;
  line-height: 1.65;
}

.overlay-body p {
  margin-bottom: 14px;
}

.overlay-body em {
  color: #6ab8c7;
  font-style: normal;
}

.overlay-divider {
  margin: 20px 0;
}

.overlay-contact-label {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.overlay-contact-email {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: #6ab8c7;
  text-decoration: none;
}

.overlay-contact-email:hover {
  color: #9dd8e3;
}

/* === STORY PAGE LAYOUT === */
.story-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 12px;
  gap: 16px;
  flex-wrap: wrap;
}

.story-nav-back {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #6ab8c7;
  text-decoration: none;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.story-nav-back:hover {
  color: #9dd8e3;
}

.story-nav-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(10px, 2vw, 14px);
  font-weight: 400;
  color: #e8342e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
  line-height: 1.4;
}

/* Story page images */
.story-pages {
  margin: 20px 0;
}

.story-page {
  margin-bottom: 48px;
  text-align: center;
}

.story-page img {
  max-width: 800px;
  width: 100%;
  display: block;
  margin: 0 auto;
  border: 1px solid #1c1c1c;
  box-shadow:
    0 0 0 1px #0f0f0f,
    0 0 28px rgba(106, 184, 199, 0.08),
    0 0 56px rgba(106, 184, 199, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.9);
}

.page-indicator {
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: #555;
  margin-top: 10px;
  letter-spacing: 2px;
}

/* Per-image text toggle */
.page-text-toggle {
  margin-top: 8px;
  text-align: center;
}

.btn-sm {
  font-size: 16px;
  padding: 2px 10px;
  letter-spacing: 1px;
}

.page-text {
  display: none;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #1c1c1c;
  border-top: none;
  background: #090909;
  text-align: left;
}

.page-text.open {
  display: block;
}

.text-page-content {
  font-family: 'Source Code Pro', monospace;
  font-size: 14px;
  color: #b8b8b8;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 20px 24px;
}

/* Story bottom prev/next navigation */
.story-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 10px;
  gap: 12px;
  flex-wrap: wrap;
}

.story-bottom-nav a {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #6ab8c7;
  text-decoration: none;
  letter-spacing: 1px;
}

.story-bottom-nav a:hover {
  color: #9dd8e3;
}

.nav-next {
  margin-left: auto;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .site-title {
    letter-spacing: 0.04em;
  }

  .story-menu a {
    font-size: 21px;
    gap: 10px;
    padding: 6px 10px;
  }

  .menu-pages {
    display: none;
  }

  .story-nav-title {
    font-size: 10px;
  }

  .overlay-box {
    padding: 24px 18px;
  }

  .text-version-content {
    padding: 20px 14px;
    font-size: 13px;
  }

  .story-bottom-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-next {
    margin-left: 0;
  }

  .status-bar {
    font-size: 14px;
    padding: 6px 12px;
  }
}
