:root {
  --r-main-font-size: 24px;
  --r-link-color: #177339;
  --r-link-color-dark: #2c8f51;
  --r-link-color-hover: #21ad55;
  --r-selection-background-color: #4ee184;
  --r-main-font: "Montserrat", Helvetica, sans-serif;
  --r-heading-font: "Vollkorn", serif;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6,
.reveal p {
  text-wrap: balance;
}

.reveal img:not([style*="width"]):not([style*="height"]),
.reveal iframe:not([data-tweet-id]):not([style*="width"]):not([style*="height"]) {
  max-width: 100%;
  max-height: 40vh;
}

.reveal img,
.reveal iframe:not([data-tweet-id]) {
  border-radius: 4px;
}

.reveal video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 40vh;
  border-radius: 4px;
}

.reveal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.reveal iframe[width="600"] {
  width: 450px;
  scale: 2;
  translate: 0 25%;
  transform-origin: top center;
}

.reveal .r-hstack,
.reveal .r-vstack {
  gap: 2vmin;
}

.reveal .r-hstack > * {
  align-self: start;
  margin-trim: block;
}

.reveal .r-hstack > img {
  margin-block: 0;
}

.reveal .r-hstack img,
.reveal .r-hstack video {
  max-width: 100%;
}

.reveal blockquote:not(.twitter-tweet) {
  position: relative;
  width: fit-content;
  margin: 2em auto;
  padding: 0 2em 0 2.5em;
  color: #444;
  border: none;
  box-shadow: none;
  font-style: normal;
  font-size: 0.9em;
  line-height: 1.2;
  quotes: "“" "”" "‘" "’";
}

.reveal blockquote:not(.twitter-tweet)::before,
.reveal blockquote:not(.twitter-tweet)::after {
  position: absolute;
  font-size: 300%;
}

.reveal blockquote:not(.twitter-tweet)::before {
  content: open-quote;
  top: -0.1em;
  left: 0;
}

.reveal blockquote:not(.twitter-tweet)::after {
  content: close-quote;
  right: 0;
  bottom: -0.6em;
}

.reveal blockquote:not(.twitter-tweet) p {
  text-wrap: balance;
}

.reveal blockquote:not(.twitter-tweet) + p:has(a) {
  display: block;
  width: 70%;
  margin: var(--r-block-margin) auto;
  text-align: right;
}

.reveal blockquote:not(.twitter-tweet) + p:has(a)::before {
  content: "- ";
  display: inline;
}

.reveal blockquote:not(.twitter-tweet) > * {
  position: relative;
  z-index: 1;
}

.reveal pre,
.reveal code {
  padding: 0 0.25em;
  font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace;
  line-height: 1.5;
}

.reveal code {
  font-size: inherit !important;
  font-size-adjust: from-font;
}

.reveal pre {
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 1rem !important;
  line-height: 1.375;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  -moz-tab-size: 2;
  -o-tab-size: 2;
  tab-size: 2;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  padding: 1em;
  overflow: auto;
}

.reveal .r-logos > p {
  display: inline-block;
  margin: 0;
  padding: 1em;
}

.reveal .twitter-tweet {
  margin-inline: auto;
}

.reveal .fragments-invisible .fragment,
.reveal .fragment-replace {
  object-fit: cover;
  transition-property: max-width;
  transition-duration: 300ms;
  transition-timing-function: linear;
}

.reveal .fragments-invisible .fragment,
.reveal [data-fragment="-1"] p:has(.fragment-replace),
.reveal [data-fragment="-1"] .fragment-replace {
  display: block;
  max-width: 100vw !important;
}

.reveal .fragments-invisible .fragment:not(.visible),
.reveal .fragment-replace {
  max-width: 0 !important;
}

.reveal .fragments-invisible p:has(.fragment:not(.visible)),
.reveal p:has(.fragment-replace),
.reveal .fragment-replace {
  display: none !important;
}

.reveal .r-hstack p:has(video) {
  display: flex;
  align-self: stretch;
}

.reveal .r-hstack p video {
  align-self: stretch;
  height: 100% !important;
  object-fit: cover;
}

.reveal .r-stack .fragment {
  width: 100%;
  height: 100%;
  background: #fff;
  line-height: 1.2;
}

.reveal ol,
.reveal ul {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: left;
}

.box, .box2 {
  display: flex;
  flex-direction: row-reverse;
  gap: 15px;
  width: fit-content;
  margin: 0 auto;
}

.box2 {
  reading-flow: flex-visual;
}

.wrapper {
  display: block;
  reading-flow: source-order;
}

.first {
  reading-order: -1;
}

.reveal [popover] {
  width: 300px;
  height: auto;
  position: absolute;
  inset: unset;
  top: 50%;
  left: 50%;
  margin: auto;
  padding: 30px;
  box-shadow: 0 0 20px #333;
  transform: translate(-50%, -50%);
}

.cp_embed_iframe {
  height: 75vh;
}

dialog {
  padding: 30px;
  box-shadow: 0 0 20px #333;
  border: none;
  border-radius: 4px;
}