/* ------ LANDING PAGE DISPLAY IMAGES ------ */
.overlay-container {
  position: relative;
  display: block;        /* block so it fills the column width */
  width: 100%;
  height: 255px;
  overflow: hidden;
  text-decoration: none; /* if used on <a>, keeps link styling off */
  color: inherit;
  border-radius: 12px;
}

/* image inside overlay: single place */
.overlay-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

/* overlay layer (single pseudo-element) */
.overlay-container::after {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0; */
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  z-index: 1;
}

/* overlay text/card (single place) */
.overlay-container .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: black;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.25em 0.5em;
  border-radius: 6px;
}

/* hover behaviour - single rule */
.overlay-container:hover img {
  transform: scale(1.1);
}

/* ------ LANDING PAGE BUTTON ------ */
.button-link {
  display: inline-flex;        /* shrink-wraps both horizontally & vertically */
  align-items: center;         /* vertical centering for text */
  justify-content: center;     /* horizontal centering for text */
  
  margin: 20px auto;           /* centers the button itself */
  background-color: #2596be;
  padding: 12px 20px;          /* controls vertical + horizontal padding */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 2rem;
  transition: background-color 0.3s ease;
  width: fit-content;          /* makes sure it only takes the space it needs */
  height: fit-content;         /* shrink-wrap vertically */
}

.button-link:hover {
  background-color: #1e7da0; /* Slightly darker on hover */
}

.button-wrapper {
  text-align: center; /* centers the inline-flex button horizontally */
}

/* ------ PROJECT ICONS ------- */
.project-card img {
  object-fit: contain !important;
  background-color: #fff; /* optional: avoids transparent gaps */
}

/* ------ TABSETS ------ */
.nav-tabs > li {
  width: 50%;
  text-align: center;
}

.nav-tabs .nav-link {
  font-size: 1.1rem; /* Increase this value as needed */
}

/* ------ CALLOUT BLOCKS ------*/
.callout-title-container.flex-fill {
  font-size: 1.50em;
}

/* ------ TABLE OF CONTENTS ------*/
#floating-toc {
  position: fixed;
  top: 110px;                /* vertical position - tweak as needed */
  right: 24px;               /* how far from the page edge */
  width: 260px;              /* width of the floating box */
  max-width: 28vw;
  max-height: calc(100vh - 140px);
  overflow: auto;
  background: var(--quarto-page-bg, #fff);
  color: var(--quarto-text, #111);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  z-index: 9999;
  transition: transform .22s ease, opacity .18s ease;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* A tiny close-control row inside the floating area (script inserts a button) */
#floating-toc .toc-close {
  display: block;
  text-align: right;
  margin-bottom: 0.35rem;
}

/* Hidden state for the floating box */
#floating-toc.hidden {
  transform: translateX(10px);
  opacity: 0;
  pointer-events: none;
}

/* Floating toggle button (small pill) */
#floating-toc-toggle {
  position: fixed;
  top: 70px;
  right: 24px;
  z-index: 10000;
  background: var(--quarto-accent, #0b5fff);
  color: #fff;
  border: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  font-size: 0.85rem;
}

/* Make sure the floating TOC and button don't show up when printing or on small screens */
@media print {
  #floating-toc, #floating-toc-toggle { display: none !important; }
}
@media (max-width: 900px) {
  #floating-toc, #floating-toc-toggle { display: none !important; }
}

/* Optional: tighten TOC list spacing */
#floating-toc .toc > ul,
#floating-toc nav.toc > ul {
  margin: 0.25rem 0;
  padding-left: 0.75rem;
}

.references {
  margin-left: 50px;  /* Adjust the left margin */
  margin-right: 20px; /* Adjust the right margin */
  margin-top: 20px;
  margin-bottom: 20px;
}