
body {
  margin: 0;
  padding: 0;
}

html {
  color: #222;
  font-size: 1em;
  font-family: sans-serif;
}

main {
  margin-left: 2rem;
  margin-right: 2rem;
  display: flex;
  flex-direction: column;
}

p a {
  color: black;
}

h2 a {
  text-decoration: none;
  color: inherit;
}

h1 {
  letter-spacing: 2px;
  display: inline-flex;
  width: fit-content;
  font-family: 'Courier New', Courier, monospace;
}

code {
  display: block;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-family: monospace;
  color: black;
  background-color: lightgray;
  padding: 1rem;
}

video {
  width: 100%;
}

table {
  max-width: 300px;
  width: 100%;
  border: none;
}

td {
  padding-bottom: 1rem;
}

.infoBox {
  background-color: white;
  padding: 2rem;
  border: 1px solid darkgray;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

article {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
}


section {
  margin-bottom: 2rem;
  margin-top: 2rem;
  max-width: 800px;
  padding: 2rem;
  border-radius: 10px;
  background-color: rgba(107, 63, 20, 0.1);
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  font-family: 'Courier New', Courier, monospace;
}

img {
  width: 100%;
}

.videoOverlay {
  position: relative;
  display: block;
}

.videoOverlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s;
}

.videoOverlay:hover::before {
  background: rgba(255, 255, 255, 0.2);
}

.videoOverlay::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: black;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-sizing: border-box;
  transition: background 0.2s, transform 0.2s;
}

.videoOverlay:hover::after {
  background: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

nav a {
  color: #222;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

h2 {
  font-family: 'Courier New', Courier, monospace;
}

nav a:hover {
  background: #f0f0f0;
  color: #000;
}

nav a.selected {
  text-decoration: underline;
}

ul {
  list-style: none;
}

.space {
  margin-bottom: 40px;
}

q {
  position: relative;
  padding: 10px;
  background: #ffffff;
  border-radius: .4em;

}

ol {
  list-style-type: disc;
}

q:before {
  content: ''
}

q:after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-right-color: #ffffff;
  border-left: 0;
  margin-top: -5px;
  margin-left: -5px;
}

@media (max-width: 600px) {


  h1, h2, h3 {
    text-align: center;
  }

  section {
    margin: 0 0;
    padding: 1.25rem 1rem;
    border-radius: 0;
  }

  article {
    margin-bottom: 1rem;
  }

  nav a {
    padding: 0.75rem 1rem;
  }
}

/* Blueprint dark mode — default for everything except an explicit light preference */
@media not all and (prefers-color-scheme: light) {
  html {
    color: #cdd9e5;
    background-color: #0d1f33;
  }

  body {
    background-color: #0d1f33;
    background-image: linear-gradient(rgba(120, 170, 220, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 220, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
  }

  h1, h2, h3 {
    color: #e6f0fa;
  }

  section {
    background-color: rgba(120, 170, 220, 0.06);
    border: 1px solid rgba(120, 170, 220, 0.25);
  }

  .infoBox {
    background-color: rgba(120, 170, 220, 0.08);
    border: 1px solid rgba(120, 170, 220, 0.3);
    color: #cdd9e5;
  }

  q {
    background: rgba(120, 170, 220, 0.12);
    color: #e6f0fa;
  }

  q:after {
    border-right-color: rgba(120, 170, 220, 0.12);
  }

  nav {
    background: #0a1a2b;
    border-bottom: 1px solid rgba(120, 170, 220, 0.3);
  }

  nav a {
    color: #cdd9e5;
  }

  p a {
    color: #cdd9e5;
  }

  nav a:hover {
    background: rgba(120, 170, 220, 0.12);
    color: #ffffff;
  }

  .videoOverlay::after {
    color: #0d1f33;
  }
}
