/* ---------------------------------------------------------------------- */
/* Whole presentation
/* ---------------------------------------------------------------------- */

/* Base font size and image behind the entire presentation */
.reveal {
  font-size: 30px;
  background: url("banner_hq.png") center / cover no-repeat;
}

/* Grey panel covering the full slide */
.reveal .slides section.slide {
  background: rgba(56, 56, 56, 0.8);
  /* Round the corners */
  border-radius: 12px;
  /* Include padding within the specified width and height */
  box-sizing: border-box;
  padding: 32px;
  /* Fill the slide's available height and width */
  height: 100%;
  width: 100%;
}

/* Centre ordinary slide content in the space BELOW the heading */
.reveal .slides section.slide.present:not(#title-slide) {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Let column layouts use the full slide width */
.reveal .slides section.slide > .columns {
  width: 100%;
}

/* Only reserve title space when the heading is not empty */
.reveal .slides section.slide.present:not(#title-slide):has(> h2:not(:empty)) {
  padding-top: 110px;
}

/* Hide empty headings */
.reveal .slides section.slide:not(#title-slide) > h2:empty {
  display: none;
}

/* Keep headings in a consistent position */
.reveal .slides section.slide:not(#title-slide) > h2 {
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  margin: 0;
  text-align: left;
}

/* Preserve proportions for images with an explicit height */
.reveal .slides img[height] {
  width: auto !important;
  object-fit: contain;
}

/* ---------------------------------------------------------------------- */
/* Title slide
/* ---------------------------------------------------------------------- */

/* Set title font size */
#title-slide .title,
#title-slide .subtitle {
  font-size: 1.2em;
}

/* Centre the author names */
#title-slide .quarto-title-authors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

/* Smaller author names in HSMA green */
#title-slide .quarto-title-author-name {
  color: #7ac943;
}

/* Centre title slide */
.reveal .slides > section#title-slide.present {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}

/* ---------------------------------------------------------------------- */
/* Countdown
/* ---------------------------------------------------------------------- */

.hsma-countdown {
  font-family: "HSMA Display", "Lexend", sans-serif;
  font-size: 96px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
  cursor: pointer;
}
