/* Minimal custom styles for Remark.js presentation */

body {
  font-family: 'Computer Modern Serif', serif;
}

.remark-slide-content {
  font-size: 22px;
  padding: 0em 2em;
}

.remark-slide-content p {
  margin: 0.8em;
}

.remark-slide-content h1 {
  font-size: 40px;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.remark-slide-content h2 {
  font-size: 36px;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Ensure KaTeX math renders at a comfortable size */
.katex {
  font-size: 1.1em;
}

/* Display math gets a bit of spacing */
.katex-display {
  margin: 0.4em 0;
}

/* Links styling */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Small text for subtle notes */
.small {
  font-size: 0.7em;
  color: #666;
  margin-top: 0em;
}

/* Utility: center text */
.centered {
  text-align: center;
}

/* Utility: clear floats */
.clear {
  clear: both;
}

/* Float with text wrap */
.float-right {
  float: right;
  margin-left: 1em;
  margin-bottom: 0.5em;
}

.float-left {
  float: left;
  margin-right: 1em;
  margin-bottom: 0.5em;
}

/* Absolute corner positioning */
.bottom-right {
  position: absolute;
  bottom: 2em;
  right: 2em;
}

.top-right {
  position: absolute;
  top: 5em;
  right: 2em;
}

/* Image sizes */
.img-sm {
  width: 200px;
}

.img-md {
  width: 280px;
}

.img-lg {
  width: 350px;
}

.img-40 {
  float: right;
  width: 40%;
  margin-left: 1em;
  margin-bottom: 0.5em;
}

.img-50 {
  float: right;
  width: 50%;
  margin-left: 1em;
  margin-bottom: 0.5em;
}

/* Full-slide side-by-side images */
.full-slide-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: -1em -2em;
  gap: 0;
}

.full-slide-pair img {
  max-height: 95vh;
  max-width: 49%;
  object-fit: contain;
}
