/* === GENERAL SLIDE WIDTH ADJUSTMENT === */
.reveal .slides {
  padding-left: 2vw !important;
  padding-right: 2vw !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* === Force soft-wrapping for all code and output blocks === */
.reveal pre,
.reveal pre code,
.reveal .cell-output pre,
.reveal .cell-output code {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  padding-left: 2em !important; /* Prevent left-side clipping */
}

/* === Code chunks (input) === */
.reveal pre.sourceCode {
  font-size: 0.8em !important;
  font-family: "Fira Code", monospace;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  padding: 0.5em 1em;
  padding-left: 2em !important; /* Prevent left-side clipping */
  margin: 0.5em 0;
  background-color: #f5f5f5;
  border-left: 4px solid #4CAF50;
  border-radius: 6px;
}

/* === Output blocks (text output) === */
.reveal .cell-output-stdout pre,
.reveal .cell-output-stdout code {
  font-size: 0.8em !important;
  font-family: "Fira Code", monospace;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  padding: 0.5em 1em;
  padding-left: 2em !important; /* Prevent left-side clipping */
  margin: 0.5em 0;
  background-color: #eef;
  border-left: 4px solid #2196F3;
  border-radius: 6px;
}

/* === Output blocks (plots/images) === */
.reveal .cell-output-display img {
  max-width: 100% !important;
  height: auto;
  display: block;
  margin: 1em auto;
}

/* === INLINE CODE === */
.reveal code {
  font-size: 0.9em !important;
  white-space: pre-wrap;
  word-break: break-word;
}

/* === Callout Notes === */
.callout-note {
  background-color: #f9f9f9;
  border-left: 4px solid #ccc;
  padding: 0.5em;
}

/* === Hide speaker notes in HTML === */
.reveal .notes {
  display: none !important;
}


.scrollable-slide {
  max-height: 100vh;
  overflow-y: auto;
  padding-right: 1em;
}


/* Ensure slide sections can scroll */
.reveal .slides section {
  overflow-y: auto;
  max-height: 100vh;
}

.reveal.smaller .slides h1,
.reveal .slides section.smaller h1 {
  font-size:calc(1.5em / 0.7)
}
