/* Default (light mode) */
body {
  background-color: #ffffff;
  color: #000000;
  font-family: sans-serif;
  margin: 0;
  padding: 1rem;
}

nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: #0066cc;
}

footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #555;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #000000;
    color: #ffffff;
  }

  nav a {
    color: #66ccff;
  }

  footer {
    color: #aaa;
  }
}

nav a {
  display: block;       /* Each link takes a full line */
  margin: 0.5rem 0;     /* Add vertical spacing between links */
  text-decoration: none;
  color: #66ccff;       /* Adjust color for dark mode */
}

.page-navigation {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between; /* pushes prev left, next right */
}

.prev-button,
.next-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #0066cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.prev-button:hover,
.next-button:hover {
  background-color: #004c99;
}

.video-container {
  position: relative;
  width: 100%;          /* take full width of text content area */
  padding-bottom: 56.25%; /* 16:9 aspect ratio (height = 9/16 of width) */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;          /* scale to container width */
  height: 100%;         /* scale height accordingly */
}
