
body {
  background-color: #f4f4f4;     /* light neutral background */
  color: #222;                   /* readable dark text */
  font-family: Arial, Helvetica, sans-serif;
  margin: 10px;                  /*  10px margin */
  line-height: 1.6;              /* readability */
}

/* ===== Required: center h1, nav, and footer ===== */
h1, h2, nav, footer {
  text-align: center;
}

/* Header styling (red divider to match your theme) */
header {
  
  padding-bottom: 10px;
  margin-bottom: 20px;
}

nav {
  text-align: center;            /* rubric requirement */
  margin: 15px auto;
  padding: 10px 12px;
  max-width: 900px;              /* matches content width */
  border: 2px solid #ff0000;     /* red border */
  border-radius: 8px;            /* optional rounded corners */
  background-color: #ffffff;     /* contrast on gray page */
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); /* subtle depth */
}

/* Nav link spacing and hover */
nav a {
  display: inline-block;
  padding: 6px 10px;
  margin: 4px 6px;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}

nav a:hover,
nav a:focus {
  background-color: #ffe5e5;     /* light red hover */
  text-decoration: none;
  outline: none;
}

/* Footer styling (red divider) */
footer {
  border-top: 3px solid #ff0000;
  margin-top: 25px;
  padding-top: 10px;
}

/* Optional: content width for nicer reading */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Figure/figcaption for the figure requirement */
figure {
  text-align: center;
  margin: 1rem auto;
}
figcaption {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Images: prevent overflow and keep aspect ratio */
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.5rem auto;
}

/* Responsive YouTube iframe wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0.5rem auto 1.25rem;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}