/* --- header sizing + spacing --- */
:root {
  --fs-header-h: 60px;              /* smaller now, just for logo/title block */
  --brand-color: #002EFF;   /* Frankfurt blue from the logo */
  --font-family: "Source Sans Pro", sans-serif;
  --font-size: 28px;
}

/* Top-right floating header (title + logo) */
#fs-header{
  position: fixed;
  top: 16px;
  right: 16px;
  left: auto;                       /* don't stretch full width */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 22px 22px;
  max-height: var(--fs-header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(120%) blur(4px);
  border-radius: 8px;
  z-index: 20;                      /* LOWER than menus/overlays */
}

html,
body,
.reveal,
.reveal .slides {
  font-family: var(--font-family);
  font-size: var(--font-size);
}

/* slide title in the floating header */
#slide-title-display{
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
}

/* logo size (auto-scales with header height) */
#fs-header img{
  height: calc(var(--fs-header-h) - 24px);  /* header height minus padding */
}

/* custom slide number  */
#custom-slide-number {
  position: fixed;
  bottom: 20px;
  right: 30px;
  background-color: #003366; /* Frankfurt blue */
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  z-index: 1000;
  opacity: 0.9;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* IMPORTANT: no extra margin-top — don't push slides down */
.reveal .slides{
  margin-top: 0 !important;
}

.reveal .progress span {
  height: 100%;        /* ensure the inner bar fills the new height */
}

/* --- ensure menus/overlays are ABOVE the header --- */
.reveal .slide-menu { z-index: 9999 !important; }
.reveal .overlay,
.reveal .drawer,
.reveal .popup { z-index: 9999 !important; }

.reveal .controls,

.reveal .progress {
  z-index: 200 !important;
  height: 7px;
  background-color: rgba(0, 0, 0, .2);
  color: var(--brand-color);
}

/* responsive tweak: shrink header on small screens */
@media (max-width: 900px){
  :root { --fs-header-h: 60px; }

  #slide-title-display{
    font-size: 1em;
    letter-spacing: 0.5px;
  }
}


.reveal .slides section aside {
  position: absolute;
  bottom: 0.5em;    /* move closer or further from the bottom */
  left: 0;
  width: 100%;
  text-align: left;   /* or left/right, as you prefer */
  font-size: 0.8em;
}

.reveal h2 {
  margin-bottom: 1em;  /* Increase to 1.5em or 2em if you want more space */
}

.reveal .slides section.level1.center {
  top: 320px !important;  /* smaller than 379px = higher on the screen */
}

.reveal .slides section.centered-slide {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  height: 100%;
  padding-top: 0;        /* no extra padding */

  position: relative;    /* allow top offset */
  top: -60px;            /* move slide content up; tweak -20px / -60px etc. */
}


.reveal .smaller {
  font-size: 0.8em;   /* 80% of normal */
}

.reveal .much_smaller {
  font-size: 0.6em;   /* 80% of normal */
}

/* shrink the clickable area */
.reveal .slide-menu-button,
.reveal .slide-menu-button a{
  width: 26px !important;
  height: 26px !important;
}

/* Quarto/reveal-menu draws the icon via ::before (SVG background) */
.reveal .slide-menu-button .fa-bars::before{
  width: 24px !important;
  height: 24px !important;
  background-size: 24px 24px !important; /* key for SVG background icons */
  display: inline-block !important;
  content: "" !important;                /* ensure the pseudo-element exists */
}

/* avoid extra vertical spacing from the <i> */
.reveal .slide-menu-button i{
  line-height: 1 !important;
}

/* Quarto revealjs title slide */
.reveal section#title-slide h1.title {
  font-size: 2.2em;   /* shrink title */
  line-height: 1.1;
  margin-bottom: 0.35em;
}

.reveal section#title-slide p.subtitle {
  font-size: 1.25em;  /* grow subtitle */
  font-weight: 500;
  margin: 0 0 1.2em 0;
}

.reveal section#title-slide .quarto-title-authors .quarto-title-author-name {
  font-size: 1.05em;  /* slightly larger author */
  margin-top: 0.2em;
}

/* Learning objectives box */
.learning-objectives {
  border-left: 6px solid #2c7be5;
  background-color: #f5f8ff;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 6px;
}

/* Title with icon */
.learning-objectives::before {
  content: "🎯 Learning objectives";
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* List styling */
.learning-objectives ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.learning-objectives li {
  margin-bottom: 0.35rem;
}

#refs,
#refs .csl-entry {
  font-size: calc(var(--font-size) * 0.9);
  line-height: 1.4;
  margin-bottom: 0.4em;
}

.boxed-image {
  border: 1.5px solid black;
  padding: 2px;
}

.slide-menu-button {
  display: none !important;
}

.slide-menu.slide-menu--left.active {
  width: 400px !important;
}

.reveal .title-slide {
  position: relative;
}

.reveal .title {
  font-size: 3em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.reveal .subtitle {
  font-size: 1.4em;
  margin-top: 0.6em;
  color: #555;
}

.reveal .author {
  margin-top: 1.2em;
  font-size: 1em;
}

.reveal .date {
  color: #666;
  font-size: 0.9em;
}

.highlight_must_learn {
  border-left: 4px solid #e57373;
  padding-left: 12px;
}

.learning_note {
  background-color: #fff9d6;      /* lighter yellow */
  border-left: 3px solid #f6d365; /* softer border */
  padding: 8px 12px;
  font-size: 0.8em;

  position: absolute;
  bottom: 20px;
  right: 20px;
  max-width: 75%;

  opacity: 1;
  transform: translateY(10px);
  animation: sidenote-fade-in 0.6s ease-out forwards;
}

.reveal blockquote {
  border-left: 5px solid var(--brand-color);
  padding-left: 0.8em;
}

.reveal pre.sourceCode {
  font-size: 0.9em;   /* try 1.1–1.4 */
}

.reveal pre.text {
  font-size: 0.9em;   /* increase as needed (1.3–1.6 works well) */
  line-height: 1.4;
}