/* style.css */

/* Basic Setup */
:root {
  --menu-width: 250px;
  --timing: 0.3s;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background-color: lightblue;
/*  background-color: #f4f4f4; */
  width: 100%;
}

/* Header Banner */
.banner-image {
  width: 100%;
  height: auto;
  display: block; /* Removes bottom space under image */
}

/* Main Content */
.content {
  padding-left: 10%;
  padding-right: 10%;
/*  width: 1000px; */
  max-width: 100%;
  line-height: 1.6;
}

/* --- Hamburger Menu & Nav Panel --- */

/* The Button */
#hamburger-btn {
  position: fixed; /* Does not scroll */
  top: 20px;
  left: 20px;
  z-index: 1001; /* Stays on top of everything */
  background: #333;
  border: none;
  padding: 10px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#hamburger-btn .bar {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  transition: transform var(--timing) ease, opacity var(--timing) ease;
}

/* The Navigation Panel */
#nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--menu-width);
  height: 100vh;
  background-color: #222;
  z-index: 1000;
  /* Hide the menu off-screen by default */
  transform: translateX(-100%);
  transition: transform var(--timing) ease-in-out;
  overflow-y: auto;
}

/* --- Menu List Styling --- */

/* 1. This rule applies a base padding to ALL lists in the menu. */
#nav-menu ul {
  list-style: none;
  /* Original padding for sub-menus */
  padding: 2px 20px 20px; 
  margin: 0;
}

/* 2. This rule uses ">" to apply the large top padding ONLY to the top-level list. */
#nav-menu > ul {
  padding-top: 80px;
}

#nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  display: block;
  padding: 0.75rem;
}

#nav-menu a:hover {
  background-color: #444;
}


/* --- The "Open" State (controlled by JS) --- */

/* When body has .menu-open, slide the nav panel into view */
body.menu-open #nav-menu {
  transform: translateX(0);
}

/* Animate the hamburger button into an "X" */
body.menu-open #hamburger-btn .bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
body.menu-open #hamburger-btn .bar:nth-child(2) {
  opacity: 0;
}
body.menu-open #hamburger-btn .bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

pre {
  padding:10px;
  font-size: 120%;
  color: orange;
  border: 5px solid orange;
  background-color: rgba(0, 0, 0, 1);
  overflow-x: auto;
}