/* ============================================
   NOT-MALWARE.ZIP - GLOBAL STYLESHEET
   CLASSIFICATION: UNCLASSIFIED // FOR OFFICIAL USE ONLY
   DOCUMENT CONTROL: RECORDS DIVISION
   Last modified: February 30, 2025
   ============================================ */

/* ---- BASE: 90s Government Intranet ---- */
body {
  background-color: #d4d0c8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23d4d0c8'/%3E%3Crect width='1' height='1' fill='%23ccc8be' x='0' y='0'/%3E%3C/svg%3E");
  color: #000000;
  font-family: 'Times New Roman', 'Georgia', serif;
  margin: 0;
  padding: 0;
  cursor: default;
  overflow-x: hidden;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* ---- BLINK ANIMATION ---- */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.blink {
  animation: blink 1s step-end infinite;
}

/* ---- MARQUEE STYLING ---- */
.marquee-bar {
  background: #000080;
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  padding: 3px 0;
  border-top: 2px solid #808080;
  border-bottom: 2px solid #404040;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 1px;
}

.marquee-inner {
  display: inline-block;
  animation: marquee-scroll 25s linear infinite;
  padding-left: 100%;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---- MAIN LAYOUT TABLE ---- */
.page-table {
  width: 780px;
  max-width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
  background-color: #ffffff;
  border: 2px solid #808080;
  box-shadow: 2px 2px 0 #404040;
}
.page-table > colgroup col:first-child { width: 186px; }
.page-table > colgroup col:last-child { width: auto; }

.page-table td {
  vertical-align: top;
  padding: 8px;
}

/* ---- NAVIGATION TABLE ---- */
.nav-table {
  width: 100%;
  border-collapse: collapse;
  background: #000080;
  border: 2px outset #c0c0c0;
}

.nav-table td {
  padding: 3px 6px;
  text-align: center;
  border-right: 1px solid #0000b3;
}

.nav-table a {
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-table a:hover {
  color: #ffff00;
  text-decoration: underline;
}

.nav-table a:visited {
  color: #c0c0ff;
}

/* ---- HEADINGS ---- */
h1 {
  font-family: 'Courier New', monospace;
  color: #000080;
  text-align: center;
  font-size: 24px;
  letter-spacing: 6px;
  margin: 12px 0;
  border-bottom: 2px solid #000080;
  padding-bottom: 8px;
  text-transform: uppercase;
}

h2 {
  font-family: 'Courier New', monospace;
  color: #000080;
  border-bottom: 1px solid #808080;
  padding-bottom: 4px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h3 {
  color: #800000;
  font-family: 'Times New Roman', serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- LINKS ---- */
a {
  color: #0000ff;
  text-decoration: underline;
}

a:hover {
  color: #ff0000;
}

a:visited {
  color: #800080;
}

/* ---- CLASSIFICATION TEXT ---- */
.neon-green {
  color: #008000;
  font-weight: bold;
}

.neon-pink {
  color: #800000;
  font-weight: bold;
}

.neon-cyan {
  color: #000080;
  font-weight: bold;
}

.neon-yellow {
  color: #808000;
  font-weight: bold;
}

.neon-red {
  color: #ff0000;
  font-weight: bold;
}

/* ---- GLITCH TEXT ---- */
.glitch-text {
  position: relative;
  display: inline-block;
}

@keyframes glitch-shift {
  0%, 90%, 100% { transform: none; opacity: 1; }
  92% { transform: translate(-1px, 0px); opacity: 0.9; }
  94% { transform: translate(1px, 0px); opacity: 0.95; }
  96% { transform: translate(-1px, 1px); opacity: 0.85; }
  98% { transform: translate(1px, -1px); opacity: 0.9; }
}

.glitch-text {
  animation: glitch-shift 6s ease-in-out infinite;
}

/* ---- VISITOR COUNTER ---- */
.visitor-counter {
  background: #000000;
  border: 2px inset #808080;
  padding: 6px 12px;
  display: inline-block;
  font-family: 'Courier New', monospace;
  color: #00ff00;
  font-size: 16px;
  letter-spacing: 3px;
  margin: 10px auto;
  text-align: center;
}

.visitor-counter .counter-label {
  font-size: 10px;
  color: #808080;
  font-family: 'Courier New', monospace;
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---- CLASSIFICATION BANNER ---- */
.under-construction {
  background-color: #ffff00;
  color: #000;
  text-align: center;
  padding: 4px;
  font-weight: bold;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  border: 2px solid #808000;
  margin: 8px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.under-construction::before,
.under-construction::after {
  content: " \26A0 ";
}

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

@keyframes counterspin {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.spinning-logo {
  animation: spin 12s linear infinite;
  display: inline-block;
  font-size: 36px;
  color: #000080;
}

.counterspin {
  animation: counterspin 8s linear infinite;
  display: inline-block;
}

/* ---- WEBRING BOX ---- */
.webring {
  border: 2px solid #808080;
  background: #e8e8e0;
  padding: 8px;
  margin: 12px auto;
  width: 500px;
  text-align: center;
  font-size: 11px;
}

.webring h3 {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: #000080;
}

.webring a {
  color: #0000ff;
  margin: 0 8px;
  font-size: 11px;
}

/* ---- FRAME-LIKE BORDERS ---- */
.frame-box {
  border: 2px solid #808080;
  background-color: #f4f4f0;
  padding: 10px;
  margin: 10px 0;
}

.frame-box-alt {
  border: 2px solid #808080;
  border-left: 4px solid #000080;
  background-color: #f8f8f4;
  padding: 10px;
  margin: 10px 0;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: 170px;
  background: #e0e0d8;
  border-right: 2px solid #808080;
  font-size: 11px;
  padding: 8px;
}

.sidebar a {
  display: block;
  color: #0000ff;
  padding: 3px 0;
  text-decoration: none;
  font-size: 11px;
  font-family: 'Courier New', monospace;
}

.sidebar a:hover {
  color: #ff0000;
  text-decoration: underline;
}

.sidebar hr {
  border: none;
  border-top: 1px solid #808080;
  margin: 6px 0;
}

/* ---- CURRENT NODE LABEL (injected by scripts.js) ---- */
.node-label { font-size: 9px; color: #666; letter-spacing: 1px; text-transform: uppercase; }
.node-domain { font-family: 'Courier New', monospace; font-size: 10px; color: #000080; font-weight: bold; word-break: break-all; margin: 2px 0; }

/* ---- CONTENT AREA ---- */
.content-area {
  padding: 12px;
  line-height: 1.6;
  font-size: 13px;
  background: #ffffff;
  overflow-x: auto;
  overflow-y: hidden;
  word-break: break-word;
  box-sizing: border-box;
}

.content-area p {
  margin: 8px 0;
}

/* ---- FOOTER ---- */
.footer-area {
  background: #e0e0d8;
  border-top: 2px solid #808080;
  padding: 12px;
  text-align: center;
  font-size: 10px;
  color: #666;
}

.footer-area .copyright {
  color: #808080;
  margin-top: 8px;
}

.netscape-badge {
  border: 2px outset #c0c0c0;
  background: #c0c0c0;
  color: #000;
  padding: 3px 8px;
  font-size: 10px;
  display: inline-block;
  margin: 6px;
  font-family: 'Courier New', monospace;
}

/* ---- PROGRESS BARS ---- */
.progress-container {
  background: #c0c0c0;
  border: 2px inset #808080;
  height: 18px;
  width: 280px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.progress-bar {
  height: 100%;
  transition: width 0.5s;
}

.progress-bar.green { background: #000080; }
.progress-bar.red { background: #800000; }
.progress-bar.purple { background: #800080; }
.progress-bar.glitch { background: repeating-linear-gradient(90deg, #000080, #800000, #008000, #808000); }

.progress-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  line-height: 18px;
  color: #fff;
  font-family: 'Courier New', monospace;
}

/* ---- GUESTBOOK ---- */
.guestbook-entry {
  border: 1px solid #808080;
  border-left: 3px solid #000080;
  background: #f8f8f4;
  padding: 8px;
  margin: 8px 0;
  font-size: 12px;
}

.guestbook-entry .gb-name {
  color: #000080;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.guestbook-entry .gb-date {
  color: #808080;
  font-size: 10px;
  float: right;
  font-family: 'Courier New', monospace;
}

.guestbook-entry .gb-msg {
  color: #333;
  margin-top: 4px;
}

/* ---- FORM STYLING ---- */
input, textarea, select {
  background: #ffffff;
  border: 2px inset #808080;
  color: #000;
  font-family: 'Courier New', monospace;
  padding: 3px 6px;
  font-size: 12px;
}

input:focus, textarea:focus, select:focus {
  outline: 1px dotted #000080;
}

.submit-btn {
  background: #c0c0c0;
  color: #000;
  border: 2px outset #c0c0c0;
  padding: 4px 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}

.submit-btn:hover {
  background: #d4d4d4;
}

.submit-btn:active {
  border-style: inset;
}

/* The runaway button */
.runaway-btn {
  position: relative;
  transition: none;
}

/* ---- FAQ STYLING ---- */
.faq-q {
  color: #000080;
  font-weight: bold;
  font-size: 13px;
  margin-top: 12px;
  font-family: 'Courier New', monospace;
}

.faq-a {
  color: #333;
  margin-left: 20px;
  margin-bottom: 8px;
  border-left: 2px solid #000080;
  padding-left: 10px;
}

/* ---- TERMS STYLING ---- */
.legal-text {
  font-family: 'Times New Roman', serif;
  font-size: 12px;
  color: #333;
  line-height: 1.8;
}

.legal-text .section-num {
  color: #000080;
  font-weight: bold;
}

.legal-text .whereas {
  color: #800000;
  font-variant: small-caps;
  font-weight: bold;
}

/* ---- SITEMAP ---- */
.sitemap-list {
  list-style-type: none;
  padding: 0;
}

.sitemap-list li {
  padding: 3px 0;
  font-size: 12px;
}

.sitemap-list li::before {
  content: "\25BA ";
  color: #000080;
}

.sitemap-list .dead-link {
  color: #ff0000;
  text-decoration: line-through;
}

.sitemap-list .void-link {
  color: #c0c0c0;
}

/* ---- DOWNLOAD TABLE ---- */
.download-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.download-table th {
  background: #000080;
  color: #ffffff;
  padding: 4px 6px;
  border: 1px solid #808080;
  text-align: left;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.download-table td {
  padding: 5px 6px;
  border: 1px solid #c0c0c0;
}

.download-table tr:hover {
  background: #ffffcc;
}

/* ---- MISC ANIMATIONS ---- */
@keyframes rainbow-text {
  0% { color: #ff0000; }
  16% { color: #ff8800; }
  33% { color: #808000; }
  50% { color: #008000; }
  66% { color: #000080; }
  83% { color: #800080; }
  100% { color: #ff0000; }
}

.rainbow {
  animation: rainbow-text 5s linear infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pulse {
  animation: pulse-glow 3s ease-in-out infinite;
}

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

.float {
  animation: float 4s ease-in-out infinite;
}

/* ---- STARFIELD CANVAS (kept subtle) ---- */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}

/* ---- CURSOR ---- */
/* crosshair set on body; coordinate readout via scripts.js */

/* ---- TIMER DISPLAY ---- */
.time-counter {
  font-family: 'Courier New', monospace;
  color: #800000;
  font-size: 10px;
  text-align: center;
  margin: 4px 0;
}

/* ---- HORIZONTAL RULES ---- */
hr {
  border: none;
  height: 1px;
  background: #808080;
  margin: 12px 0;
}

/* ---- SELECTION STYLING ---- */
::selection {
  background: #000080;
  color: #ffffff;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: #c0c0c0;
}

::-webkit-scrollbar-thumb {
  background: #808080;
  border: 2px outset #c0c0c0;
}

::-webkit-scrollbar-thumb:hover {
  background: #666666;
}

/* ---- STATUS BAR ---- */
.status-bar {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: #000;
  background: #ffffff;
  border: 2px inset #808080;
  padding: 3px 6px;
  margin: 4px 0;
}


/* ============================================
   CLASSIFIED EFFECTS — RESTRICTED
   CLEARANCE LEVEL: PROTOCOL W
   ============================================ */

/* ---- CLASSIFICATION BANNER ---- */
.classification-banner {
  background: #800000;
  color: #ffffff;
  text-align: center;
  padding: 2px 0;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  border-bottom: 1px solid #400000;
}

/* ---- CLASSIFIED TEXT DECAY ---- */
.antimemetic {
  transition: color 3s ease-in-out, opacity 3s ease-in-out;
}

.antimemetic.decaying {
  color: transparent !important;
  opacity: 0 !important;
}

.antimemetic.decaying * {
  color: transparent !important;
  opacity: 0 !important;
  transition: color 3s ease-in-out, opacity 3s ease-in-out;
}

/* Hover restores text to black — matches institutional aesthetic */
.antimemetic:hover,
.antimemetic:hover * {
  color: #000 !important;
  opacity: 1 !important;
  transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* ---- CLASSIFIED DISAPPEARING ELEMENTS ---- */
.antimemetic-element {
  transition: opacity 2s ease-out, max-height 2s ease-out, padding 2s ease-out, margin 2s ease-out;
  overflow: hidden;
}

.antimemetic-element.vanished {
  opacity: 0;
  max-height: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.antimemetic-suppressed {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: #800000;
  font-style: italic;
  text-align: center;
  padding: 6px;
  border: 1px dashed #80000044;
  background: #fff8f8;
  margin: 8px 0;
  letter-spacing: 1px;
}

/* ---- SELF-REDACTING TEXT ---- */
.self-redacting {
  font-family: 'Courier New', monospace;
  color: #000;
  background: #fffff8;
  border: 1px solid #808080;
  padding: 10px;
  margin: 10px 0;
  line-height: 1.7;
  font-size: 12px;
  white-space: pre-wrap;
}

.self-redacting .redacted-char {
  color: #000;
  background: #000;
}

/* ---- PERIPHERAL VISION TEXT ---- */
.peripheral-text {
  position: fixed;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.3s ease-out;
  white-space: nowrap;
  letter-spacing: 1px;
}

.peripheral-text.fleeing {
  opacity: 0 !important;
  transition: opacity 0.1s ease-out;
}

/* ---- REMEMBER BUTTON ---- */
.remember-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  color: #808080;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  padding: 4px 12px;
  cursor: pointer;
  z-index: 9990;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.remember-btn:hover {
  color: #000;
  background: #d4d4d4;
}

.remember-btn:active {
  border-style: inset;
}

.remember-btn.spent {
  color: #800000;
  cursor: not-allowed;
  border-style: inset;
}

/* ---- MNESTIC FLASH ---- */
.mnestic-flash {
  animation: mnestic-pulse 0.5s ease-out;
}

@keyframes mnestic-pulse {
  0% { box-shadow: inset 0 0 100px rgba(128,0,0,0.2); }
  50% { box-shadow: inset 0 0 200px rgba(128,0,0,0.1); }
  100% { box-shadow: none; }
}

/* Full-screen flash overlay */
.mnestic-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 99999;
  pointer-events: none;
  animation: flash-out 0.3s ease-out forwards;
}

@keyframes flash-out {
  0% { opacity: 0.8; }
  100% { opacity: 0; }
}

/* ---- VISIT NOTICE ---- */
.visit-notice {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #800000;
  background: #fff8f8;
  border: 1px solid #80000033;
  padding: 8px 12px;
  margin: 8px 0;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.visit-notice .visit-count {
  color: #800000;
  font-weight: bold;
}

.visit-notice .visit-message {
  display: block;
  margin-top: 4px;
  color: #800000;
  font-style: italic;
}

/* ---- CLASSIFIED NOTICE SECTION ---- */
.antimemetic-section {
  border: 2px solid #800000;
  background: #fff8f8;
  padding: 0;
  margin: 10px 0;
}

.antimemetic-section .section-header {
  background: #800000;
  padding: 4px 10px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
}

.antimemetic-section .section-body {
  padding: 10px;
}

.scp-document {
  border-left: 3px solid #800000;
  padding-left: 10px;
  margin: 8px 0;
}

.scp-document .scp-header {
  color: #800000;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

.scp-document .scp-field {
  color: #333;
  font-size: 11px;
  margin: 2px 0;
  font-family: 'Courier New', monospace;
}

.scp-document .scp-field b {
  color: #000;
}

/* ---- REDACTED/CLASSIFIED BLOCKS ---- */
.classified-block {
  background: #f0f0e8;
  border: 1px solid #808080;
  padding: 8px;
  margin: 8px 0;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  position: relative;
}

.classified-block::before {
  content: "CLASSIFIED";
  position: absolute;
  top: -8px;
  left: 10px;
  background: #800000;
  color: #fff;
  font-size: 9px;
  padding: 1px 6px;
  letter-spacing: 2px;
}

.redacted {
  background: #000;
  color: #000;
  padding: 0 2px;
  user-select: none;
  word-break: break-all;
  overflow-wrap: break-word;
}

.redacted:hover {
  background: #000;
  color: #000;
}

/* ---- INCIDENT REPORT STYLING ---- */
.incident-log {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  background: #fffff8;
  border: 1px solid #808080;
  padding: 8px;
  margin: 8px 0;
  max-height: 200px;
  overflow-y: auto;
}

.incident-log .log-entry {
  border-bottom: 1px dotted #c0c0c0;
  padding: 3px 0;
}

.incident-log .log-timestamp {
  color: #808080;
}

.incident-log .log-level-warn {
  color: #808000;
}

.incident-log .log-level-error {
  color: #800000;
}

.incident-log .log-level-critical {
  color: #ff0000;
  font-weight: bold;
}

/* ---- CLEARANCE LEVELS ---- */
.clearance-1 { border-left: 3px solid #008000; }
.clearance-2 { border-left: 3px solid #000080; }
.clearance-3 { border-left: 3px solid #808000; }
.clearance-4 { border-left: 3px solid #ff8000; }
.clearance-5 { border-left: 3px solid #800000; }

/* ---- WATERMARK ---- */
.content-area::after {
  content: "UNCLASSIFIED // FOR OFFICIAL USE ONLY";
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', monospace;
  font-size: 9px;
  color: rgba(128, 0, 0, 0.15);
  letter-spacing: 3px;
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   MOBILE RESPONSIVE — CLEARANCE: PUBLIC
   ============================================ */

@media screen and (max-width: 768px) {
  /* Force table layout to stack */
  .page-table,
  .page-table tbody,
  .page-table tr,
  .page-table td {
    display: block;
    width: 100% !important;
    max-width: 100%;
  }

  .page-table {
    border: none;
    box-shadow: none;
  }

  /* Nav: wrap into grid */
  .nav-table,
  .nav-table tbody,
  .nav-table tr {
    display: block;
    width: 100%;
  }

  .nav-table tr {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-table td {
    flex: 1 1 25%;
    box-sizing: border-box;
    padding: 8px 4px;
    border-right: none;
    border-bottom: 1px solid #0000b3;
  }

  .nav-table a {
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  /* Sidebar: full width, collapsed by default look */
  .sidebar {
    width: 100% !important;
    border-right: none;
    border-bottom: 2px solid #808080;
    padding: 8px 12px;
    box-sizing: border-box;
  }

  /* Content area */
  .content-area {
    padding: 10px;
    box-sizing: border-box;
  }

  /* Headings */
  h1 {
    font-size: 18px;
    letter-spacing: 3px;
  }

  h2 {
    font-size: 14px;
  }

  /* Webring */
  .webring {
    width: auto;
    max-width: 100%;
    margin: 12px 8px;
    box-sizing: border-box;
  }

  /* Progress bars */
  .progress-container {
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
  }

  /* Footer */
  .footer-area {
    padding: 10px;
  }

  /* Classification banner */
  .classification-banner {
    font-size: 8px;
    letter-spacing: 1px;
    word-break: break-word;
    white-space: normal;
  }

  /* Marquee */
  .marquee-bar {
    font-size: 11px;
  }

  /* Visitor counter */
  .visitor-counter {
    font-size: 14px;
  }

  /* Download table: horizontal scroll */
  .download-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Remember button */
  .remember-btn {
    bottom: 10px;
    right: 10px;
    font-size: 9px;
    padding: 3px 8px;
  }

  /* Netscape badge */
  .netscape-badge {
    font-size: 9px;
    margin: 6px 4px;
  }

  /* Frame boxes */
  .frame-box,
  .frame-box-alt {
    margin: 8px 0;
    padding: 8px;
    overflow-wrap: break-word;
  }

  /* Guestbook dates */
  .guestbook-entry .gb-date {
    float: none;
    display: block;
    margin-bottom: 4px;
  }

  /* Under construction banner */
  .under-construction {
    font-size: 10px;
    letter-spacing: 1px;
    word-break: break-word;
  }

  /* Watermark */
  .content-area::after {
    font-size: 7px;
    letter-spacing: 1px;
  }

  /* Peripheral text: hide on mobile (can't flee from touch) */
  .peripheral-text {
    display: none;
  }
}

@media screen and (max-width: 400px) {
  .nav-table td {
    flex: 1 1 50%;
  }

  h1 {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .marquee-bar {
    font-size: 10px;
  }

  .sidebar a {
    display: inline-block;
    margin-right: 8px;
  }
}
