body {
  background-color: #000000;
  color: #ffffff;
  font-family: sans-serif;
  max-width: 800px;         /* Readable line length */
  margin: 2em auto;         /* Centers the page */
  padding: 0 1em;
  line-height: 1.6;
}

img {
  max-width: 100%;          /* Images never overflow the page */
  height: auto;
}

/* Styles the box containing the code */
pre {
  background-color: #1e1e1e; /* A dark charcoal gray */
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;         /* Adds a scrollbar if code is too long */
}

/* Styles the text inside the code box */
pre code {
  color: #ffffff;           /* Keeps text white */
  font-family: 'Courier New', monospace;
}

/* BELOW IS FOR SIDE-BY-SIDE PICTURES */
/* This makes the container align its contents horizontally */
.image-row {
  display: flex;
  gap: 10px;           /* Adds a small space between the images */
  margin: 20px 0;      /* Adds space above and below the row */
}

/* This ensures each image takes up exactly half the width */
.image-row img {
  flex: 1;             /* Makes images grow equally to fill the row */
  width: 50%;          /* Fallback for older browsers */
  max-width: 100%;     /* Prevents them from overflowing */
  height: auto;        /* Keeps the image aspect ratio correct */
}

/* Page title (h1) and the subtitle (h2) right under it sit tight together */
h1 {
  margin-bottom: 0; /* Removes space below h1 */
  line-height: 1.2; /* Fix h1 text wrapping space */
}

h1 + h2 {
  margin-top: 0;
  margin-bottom: 0;
}

/* Section headings get a little breathing room */
h2 {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/* Fix space b/t TOC label and contents */
h2 + ul {
  margin-top: 0.25rem; 
}

/* Custom Hyperlink Colors for Dark Background */
a:link {
  color: #FFCC00 !important; /* Golden yellow for unvisited links */
  text-decoration: underline; /* Ensures the link remains underlined */
}

a:visited {
  color: #FF9900 !important; /* Slightly darker orange-yellow for clicked links */
}

a:hover {
  color: #FFFFFF !important; /* Turns white when a user hovers over it */
}

a:active {
  color: #FFA500 !important; /* Turns a bright orange when clicked */
}

/* Fixes long URLs and text breaking mobile layouts globally */
a, p, span, li {
  word-break: break-word;      /* Breaks long links safely onto a new line */
  overflow-wrap: break-word;   /* Extra safety net for older browsers */
}

/* Sub-section headings (e.g. 3.1.1 = h4, 3.1.1.1 = h5) */
h3 { margin: 1.75em 0 0.5em; }
h4 { margin: 1.5em 0 0.5em; font-size: 1.1em; }
h5 { margin: 1.25em 0 0.5em; font-size: 1em; }
h6 { margin: 1em 0 0.4em; font-size: 0.95em; }

/* Keep whatever follows a heading close to it */
:is(h2, h3, h4, h5, h6) + * { margin-top: 0.4em; }

/* Indented notes ("> " in markdown) */
blockquote { margin: 1em 0 1em 2em; }

/* Code block labels: ```bash shows "bash", ```powershell shows
   "powershell", ```output shows "output". A custom label can be given
   with ```{.text label="output (abridged)"}. Plain ```text blocks
   without a label show no tag. */
pre[class]::before {
  content: attr(class);
  display: block;
  margin-bottom: 0.6em;
  font-family: sans-serif;
  font-size: 0.75em;
  font-style: italic;
  color: #9a9a9a;
}

pre[data-label]::before {
  content: attr(data-label);
}

pre.text:not([data-label])::before {
  display: none;
}
