/* Heading color*/
:root {
    --r-heading-color: #A60F2D;
}

/* Title slide styling */
/* Logo styling */
/* If the presentation contains an active title slide, completely hide the logo */
.reveal:has(#title-slide.present) .slide-logo,
.reveal:has(#title-slide.present) .footer,
.reveal:has(#title-slide.present) .slide-number {
  display: none !important;
}

#title-slide::before {
    content: '';
    display: block;
    width: 800px;
    height: 150px;
    margin: 0 auto 0.5rem auto;
    background-image: url('title_slide_logo.png');
    background-size: 50% auto;
    /*background-position: center 70%;*/
    background-position: center;
    background-repeat: no-repeat;
    order: -1;
}

/* Title styling */
.reveal h1,
.reveal h2,
.reveal .slides section.smaller h1,
.reveal .slides section.smaller h2 {
    font-size: 3.6rem !important;
    font-weight: bold;
    text-align: center;
    /* min, ideal, max*/
    padding-bottom: clamp(0.5em, 3vh, 2em);

    /* Gemini suggestions for fixing the position of the slide title */
    /*height: 80px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;*/
}

/* Positions the title exactly the same location on each slide */
.reveal .slides section.slide {
    top: 20px !important; 
}

/* Style the Author Name specifically */
.reveal .quarto-title-block .quarto-title-authors 
.quarto-title-author .quarto-title-author-name {
  font-weight: 700;           /* Bold */
  font-style: italic;
  margin-bottom: 3rem;
  margin-top: 3rem;
}

/* Slides padding */
.reveal .slides section {
  box-sizing: border-box !important;
  padding-left: 1vw !important;  /* Adjust this value to increase/decrease left space */
  padding-right: 1vw !important; /* Adjust this value to increase/decrease right space */
  padding-bottom: 6vh !important;
}

/* Heading font size */
/*.reveal h2{*/
    /*font-size: 1.6em;*/
/*    font-size: min(1.6em, 4.5vw);
    text-align: center;
    font-weight: Bold;
    white-space: nowrap;
    padding-top: 0.4em;
    padding-bottom: 0.8em;
}*/

/* Heading font size */
.reveal h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: black
}

/* Adds a psuedo-element of some height 
to create space at the bottom of the slide */
section.present::after {
    content: '';
    display: block;
    height: 2em;
}

/* Footer - logo, text, and slide numbers */
/* Logo on the slides */
.reveal .slide-logo {
    /* Reset Quarto's default bottom-right anchoring */
    position: unset !important;
    bottom: unset !important;
    right: unset !important;
    /*top: -4.6vmin !important;
    left: 0px !important;*/
    
    /* Explicitly constrain the dimensions to preserve quality */
    height: 25px !important;
    max-height: 50px !important;
}

.reveal .footer {
  font-size: 1rem !important;
  color: rgb(119, 119, 119);
  letter-spacing: 0.5em;
}

/* Move slide numbers to the bottom-right corner */
.reveal .slide-number, 
.reveal.has-logo .slide-number {
    top: unset !important;    /* Clears out Quarto's default top positioning */
    bottom: 20px !important;  /* Spaces it nicely from the bottom window edge */
    right: 20px !important;   /* Aligns it to the left edge */
    color: rgb(119, 119, 119) !important;/* Adjust color if needed to match your theme */
}

/* Image cropping */
.img-crop-container {
  display: flex;
  flex-direction: column;
  align-items: center;  /* Centers both the image box and caption */
  justify-content: center;
  margin: 0 auto;       /* Centers the container on the slide */
  width: 80%;
  /*max-width: 80vw;*/
}

.img-crop-container img {
  display: block;
  max-width: 100%; /* Controls the display size of your image */
  height: auto;
}

/* Your clip variations */
.img-crop-container img.clip-top {
  clip-path: inset(65% 0 0 0);
  margin-top: -55%;
}

img.clip-box {
  clip-path: inset(82% 20% 0 65%);
  /*margin-top: -100%;
  margin-bottom: 50%;
  margin-left: -60% !important;*/
  width: 100% !important;
  height: auto;
  max-width: none !important;
  transform: scale(3);
  transform-origin: 80% 120%;
  margin-bottom: -30%;
}

.img-crop-container figcaption {
  margin-top: 1em;
  font-size: 0.8em;
  line-height: 1.0;
}

.reveal p.caption,
figcaption {
  text-align: center;
  margin-top: 0.25em;
  font-size: 0.8em;
  line-height: 1.0;
}

.overlay-box {
  position: absolute;
  width: 100%;
  height: 100%;
  
  /* Style your box here */
  border: 3px solid #ff4136; /* Red border box */
  background: rgba(0, 0, 0, 0.2); /* Optional semi-transparent fill */
  pointer-events: none; /* Ensures mouse clicks pass through the box to anything underneath */
}

/* Center align text */
.center {
  text-align: center !important;
}
