/* A more modern theme for the slides */

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 0;
  background-color: #f0f0f0;
  scroll-snap-type: y mandatory;
}

.slides {
  /* Keep the document as the primary scroll container so browsers can
     restore position after reload. Inline lecture styles are overridden. */
  scroll-snap-type: none !important;
  overflow-y: visible !important;
  height: auto !important;
  counter-reset: slide;
}

.slide {
  scroll-snap-align: start;
  min-height: 100vh;
  padding: 2rem 4rem;
  box-sizing: border-box;
  position: relative;
  background-color: white;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide:before {
  counter-increment: slide;
  content: "Slide " counter(slide);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1rem;
  color: #999;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #333;
  margin-top: 1em;
  margin-bottom: 1em;
}

h1 {
  font-size: 3rem;
  color: #005a9c;
}

h2 {
  font-size: 2.2rem;
  color: #005a9c;
}

h3 {
  font-size: 1.8rem;
}

p, li {
  font-size: 1.1rem;
  line-height: 1.2;
  color: #444;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

blockquote {
  font-style: italic;
  border-left: 4px solid #005a9c;
  padding-left: 1rem;
  margin-left: 0;
  color: #666;
}

code {
  background-color: #eee;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
