/* =====================================================
CSS VARIABLES (FALLBACKS)
These are used if /main-palette.css doesn't define them.
===================================================== */
:root {
  --bg-color: #00bcd4; /* Light Cyan/Aqua default */
  --text-color: #000000; /* Black default */
  --accent-color: #0088cc; /* Accent blue default */
}

/* =====================================================
GLOBAL / BODY STYLES
===================================================== */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
}

/* =====================================================
HEADER / NAVIGATION STYLES
Styles for the content loaded via header-loader.js
===================================================== */
header {
  background-color: #009688; /* Teal color */
  color: #fff;
  padding: 10px 0;
  text-align: center; /* This ensures the links are centered */
  font-size: 0.9em;
  border-bottom: 2px solid #444;
}

header a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

header a:hover {
  text-decoration: underline;
}

/* =====================================================
MAIN COMIC LAYOUT STYLES
These classes manage centering and spacing for the comic panels.
===================================================== */
.container {
  /* This ensures the comic panels are centered on the page */
  max-width: 800px;
  margin: 2em auto; 
  padding: 0 1em;
}

.narration {
  font-size: 1.4em;
  text-align: center;
  margin-bottom: 2em;
}

.comic-panel {
  margin-bottom: 2em;
  text-align: center; /* Centers the image and caption within the panel */
}

.comic-panel img {
  max-width: 100%;
  height: auto;
  border: 2px solid #000;
  margin-bottom: 0.5em;
}

.caption {
  font-size: 0.9em;
  color: #444;
}

/* =====================================================
CONSOLE COMMAND STYLES
===================================================== */
.console-command {
  display: block;
  text-align: center;
  margin-top: 2em;
  text-decoration: none;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1em;
}

.console-command::before {
  content: "> ";
  color: var(--accent-color);
  margin-right: 0.3em;
}

.console-command:hover {
  text-decoration: underline;
}
