/* ========== Variables ========== */
:root {
  --background: #f2f0eb;
  --text: #2e2e2e;
  --accent: #4EFB00; /* Default Kawasaki Lime Green */
  --header-bg: #1d1d1d;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
  --border: white;
}

/* ========== Global Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== Typography & Layout ========== */
body {
  font-family: 'Special Elite', monospace;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  padding: 20px;
}
/* Override font for main body text only */
main, section, p, li {
  font-family: 'Georgia', serif;
}
/* Header / Footer */
header,
footer {
  text-align: center;
  padding: 20px;
  background-color: var(--header-bg);
  color: white;
  font-size: 1.2em;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

/* Header title styling (for index hero) */
header h1 {
  color: var(--border);
  letter-spacing: 1px;
}

header h1 span {
  display: block;
}

header h1 .line1 {
  font-size: 3rem;
}

header h1 .line2 {
  font-size: 2rem;
}

header h1 .line3 {
  font-size: 1.5rem;
}

header p {
  font-size: 1rem;
  color: #ccc;
}
/* Brand text — green on every page */
.brand {
  color: var(--accent);
  font-family: 'Special Elite', monospace;
}

/* Page Sections */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  box-shadow: 0 0 10px var(--shadow);
  border-radius: 12px;
}

section {
  text-align: left;
}

section h2 {
  text-align: center; 
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: black;  
}

section p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* NAV BAR (desktop/base) */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: var(--header-bg);
  padding: 20px;
  border-bottom: 2px solid var(--border);
}

/* ===== UNIFIED NAV TAB STYLING ===== */
nav a,
nav a:link,
nav a:visited {
  color: #fff;
  text-decoration: none;
  border: 2px solid transparent;  /* invisible border until hover */
  border-radius: 8px;
  padding: 10px 20px;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Hover/focus — glowing Kawasaki green pulse */
nav a:hover,
nav a:focus {
  color: var(--accent);
  animation: glowPulse 3s infinite ease-in-out;
  text-shadow: 0 0 4px var(--accent);
  border: 2px solid var(--accent);
  background-color: #1f1f1f;
}

/* Pulse animation */
@keyframes glowPulse {
  0%   { text-shadow: 0 0 4px var(--accent); }
  50%  { text-shadow: 0 0 8px var(--accent), 0 0 16px white; }
  100% { text-shadow: 0 0 4px var(--accent); }
}
/* REMOVE these global rules: */
/* a { color: var(--accent); } */
/* a:hover { text-decoration: none; } */

/* Content links only */
main p a,
main li a,
main .content a {
  color: var(--accent);
  text-decoration: underline;
}
main p a:hover,
main li a:hover,
main .content a:hover {
  text-decoration: none;
}

/* ========== MOBILE TWEAKS ========== */

/* Tablets and down */
@media (max-width: 768px) {
  body { padding: 10px; }

  header { padding: 24px 12px; }
  header h1 .line1 { font-size: 2.2rem; }
  header h1 .line2 { font-size: 1.6rem; }
  header h1 .line3 { font-size: 1.2rem; }

  nav { flex-wrap: wrap; gap: 10px; padding: 12px; }
  nav a { padding: 8px 12px; font-size: 0.9rem; }

  main { margin: 20px auto; padding: 16px; }

  /* Force body text left on mobile */
  section, section p, section li { text-align: left; }
}  /* <-- CLOSES 768px BLOCK */

/* Small phones */
@media (max-width: 480px) {
  header h1 .line1 { font-size: 1.8rem; }
  header h1 .line2 { font-size: 1.3rem; }
  header h1 .line3 { font-size: 1rem; }

  /* Make the tab bar horizontally scrollable */
  nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav a { flex: 0 0 auto; white-space: nowrap; }
}  /* <-- CLOSES 480px BLOCK */

    white-space: nowrap;
  }
