:root {
  --r-heading-text-transform: none;  /* no more capitals */
  --r-main-font-size: 42px;          /* body text */
  --r-heading1-size: 1.5em;
  --r-heading2-size: 1.4em;
  --r-heading3-size: 1.3em;
}

.reveal h3 { color: #004D7F; }

.reveal .slide-number {
  background: none;      /* remove the dark box */
  color: #5E5E5E;           /* gray */
  font-family: inherit;  /* same font as the slides */
  font-size: 2.2vh;
  right: 2vh;
  bottom: 2vh;
}

/* Logo in the top left corner of the slide. Slides are centred vertically,
   so the slide holding the logo is stretched to full height to make "top"
   the top of the slide; align-content keeps its text centred. */
.reveal .slides section:has(.title-page-logo) {
  padding-top: 225px;   /* logo strip: 3% + 18% of the slide height */
  padding-bottom: 0;    /* no strip at the bottom of the title slide */
}

.reveal .title-page-logo {
  position: absolute;
  top: 0%;
  left: 0;
  height: 20%;                      /* logo size */
  margin: 0;
}

.reveal .citation {
  color: #5E5E5E;
  display: block;
  text-align: left;
  margin-left: 2%;
  font-size: 0.8em;
}

.reveal .tfblue { color: #0076BA; }
.reveal .blue { color: #004D7F; }
.reveal .green { color: #1DB100; }
.reveal .gray { color: #929292; }
.reveal .orange { color: #F27200; }
.reveal .magenta { color: #FF42A1; }    /* the pink highlight in the Keynote slides */

.reveal .listcurrent { color: #004D7F; font-weight: bold; }

/* Slide content to the left, title centred */
.reveal .slides section.left { text-align: left; }
.reveal .slides section.left h3 { text-align: center; }
.reveal .slides section.left > :is(p, ul, ol) { /* indent the body text */
  padding-left: 8%;
  padding-right: 8%
}

/* Default slide layout: title at the top, the rest centred vertically below it */
.reveal .slides section {
  height: 100%;
  box-sizing: border-box;
  padding-top: 3em;      /* room for the title */
  padding-bottom: 3em;   /* same at the bottom, so the centre is the slide's centre */
  align-content: center;
}
.reveal .slides section h3 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;          /* full width, so it stays centred */
}

/* Citations at the bottom of "middle" slides */
.reveal .slides section p:has(> .citation),  /* paragraph holding citations */
.reveal .slides section > .citation {         /* citation standing on its own */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-bottom: 0;
  padding: 0;          /* no indent on "left" slides */
}

/* Generic grid: cells fill row by row, each centred vertically in its row.
   Equal columns:  <div class="grid cols-4">
   Other widths:   <div class="grid" style="grid-template-columns: auto 1fr"> */
.reveal .grid {
  display: grid;
  gap: 15px 20px;              /* between rows | between columns */
  align-items: center;
  justify-content: center;     /* centres the grid when its columns have fixed widths */
}
.reveal .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* equal shares */
.reveal .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reveal .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reveal .cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.reveal .grid > p { margin: 0; }                 /* the gap does the spacing */
.reveal .grid :is(img, video) {                  /* media fill their column */
  display: block; width: 100%; max-width: none; max-height: none;
}

/* Text in a coloured box */
.reveal .turqoise-box {
  width: fit-content;        /* only as wide as its text */
  margin:  auto ;            /* centred */ 
  padding: 0.2em 1em;        /* space between the text and the edge */
  background: #16E7CF;       /* the turquoise of "Model" in the figure */
  /* text-align: left; */
  border-radius: 0.5em;
}
.reveal .turqoise-box > :first-child { margin-top: 0; }     /* no extra gap at the top */
.reveal .turqoise-box > :last-child { margin-bottom: 0; }   /* nor at the bottom */

/* A black box with gradient text.
   Leave a blank line after <div class="cool-box"> and before </div>, so the text is a paragraph. */
.reveal .cool-box {
  width: fit-content;        /* only as wide as its text */
  margin: auto;              /* centred */
  padding: 0.2em 1em;        /* space between the text and the edge */
  border-radius: 0.5em;
  background: black;
  color: white;              /* fallback if the text is not in a paragraph */
  font-size: 1.3em;
  font-weight: bold;
}
.reveal .cool-box > p {
  margin: 0;
  background-image: linear-gradient(315deg, #0BEEFF 15%, #FF00F2 85%);
  -webkit-background-clip: text;   /* the gradient shows only through the letters */
  background-clip: text;
  color: transparent;
}

/* A bullet belongs to its list item, not to the text inside it:
   hide it while that text is a fragment that is not showing */
.reveal li:has(> p.fragment:not(.visible))::marker,
.reveal li:has(> p.fragment.fade-in-then-out:not(.current-fragment))::marker {
  color: transparent;
}

