body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
yellow {
  background: #FEFAE3;
}
blue {
  background: #e8f6ffba;
}
.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

.publication-authors {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
  margin-bottom: 20px;
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  border: 1px solid #bbb;
  padding: 4px;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}

.eql-cntrb { 
  font-size: smaller;
}

.mycolumn {
  float: left;
  width: 50%;
  padding: 5px;
}

/* Clearfix (clear floats) */
.myrow::after {
  content: "";
  clear: both;
  display: table;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
  /* background-color: #fff; */
}

.interpolation-video-column {
  /* background-clip: content-box; */
  /* background-color: #f5f5f5; */

  background-color: #fff;
}

.interpolation_color {
  padding: .75rem;
  background-color: #f5f5f5;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}


.debug {
  background-color: black;
}

video {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

#fancy_grad {
  background-image: linear-gradient(to right, #29ADB2 , #C5E898);
  border-radius: 25px;
}

code {
  font: bold 14px monospace;
  /* font-family: monospace; */
}

bibtexcode {
  font: 14px monospace;
  /* font-family: monospace; */
}

/* fancy text color start */
.fancy_text_color {
  color: #3d7ade;
  /* font-weight: bolder; */
}
/* fancy text color end */


.big_text {
  font-size: large;
  font-weight: bolder;
}


.leaderboardcontainer {
  max-width: none;
}

.jaxtapose {
  height: 100%;
  width: 100%;
}

#shadowBox {
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.2);
  /* Black w/opacity/see-through */
  border: 3px solid;
}

/* Limit Tasks Description section width */
.tasks-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* rainbow text start */
.rainbow {
  text-align: center;
  text-decoration: underline;
  font-size: 32px;
  font-family: monospace;
  letter-spacing: 5px;
}
.rainbow_text_animated {
  background: linear-gradient(to right, #799EFF, #a3dd70, #FFDE63, #FFBC4C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow_animation 8s ease-in infinite;
  background-size: 800% 100%;
}

@keyframes rainbow_animation {
  0%,100% {
      background-position: 0 0;
  }

  50% {
      background-position: 100% 0;
  }
}
/* rainbow text done */

/* collapse start */
.collapsible {
  background-color: #F1DBBF;
  /* color: white; */
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;

  position: relative;
  z-index: 1;
}

.active, .collapsible:hover {
  background-color: #B99B6B;
}

.collapse_hide {
  max-height: 0;
  /* display: none; */
}

.collapse_content {
  padding: 0 18px;
  /* max-height: 0; */
  overflow: hidden;
  /* transition: max-height 0.2s ease-out; */
  /* background-color: #f1f1f1; */
}

.collapse_color {
  background-color: #f1f1f1;
  z-index: 0;
}

/* collapse end */

.collapse_color {
  background-color: #f1f1f1;
}


.no_pad_section {
  padding-top: 0em;
  padding-bottom: 0em;
}

.model-labels-container {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 8px; 
}

.model-label {
  display: inline-block;
  padding: 4px 10px;
  margin: 5px;
  border-radius: 3px;
  color: rgb(255, 255, 255);
}

.leaderboard-label {
  display: inline-block;
  padding: 4px 10px;
  margin: 5px;
  border-radius: 3px;
  color: rgb(48, 48, 48);
}

.box {
  display: flex;
  align-items: center; 
  justify-content: center; 
  height: 100%;
  margin: 5px; 
}

/* Ensure video on top and text below inside task cards */
.task-box {
  flex-direction: column;
  position: relative;
  overflow: visible; /* allow hover card to escape */
}
.task2-toggle .button { padding: 2px 8px; height: 24px; }
.task-box video {
  width: 100%;
  z-index: 2;
}

/* Task hover: show description on hover */
/* hide simple label; we'll use hover card instead */
.task-box .task-desc {
  display: block;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 4px;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.18s ease-in-out, visibility 0.18s ease-in-out;
}

/* Hover card content */
.task-hover-card {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 10px); /* appear below the video */
  transform: translateX(-50%);
  width: 720px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(120%) blur(2px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 14px 16px;
  border-radius: 8px;
  z-index: 999; /* overlay over other cards */
}
.task-box:hover .task-hover-card { display: block; }
/* Keep column height stable */
.columns .column { position: relative; }

/* When hover card shows, hide the bottom task name */
.task-box:hover .task-desc {
  opacity: 0;
  visibility: hidden;
}

/* Optional dim overlay on hover to focus attention */
.task-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent; /* don't dim or block the video */
  opacity: 0;
  transition: opacity 0.18s ease-in-out;
  border-radius: 6px;
  z-index: 1;
  pointer-events: none; /* let clicks pass to the video */
}
.task-box:hover::after { opacity: 0; }

.leaderboard-right-border {
  border-right: 1px solid #cdd0d4
}

.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position the tooltip above the text */
  left: 50%;
  margin-left: -80px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Comparison grid */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 1024px) {
  .comparison-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .comparison-grid { grid-template-columns: 1fr; }
}
.cmp-card.box {
  flex-direction: column;
  padding: 10px;
}
.cmp-media { width: 100%; }
.comparison-grid .cmp-media video {
  position: static;
  left: auto;
  transform: none;
  display: block;
}

/* Comparison banner */
.comparison-banner {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: none !important;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}
.comparison-banner .cmp-stage {
  position: relative;
  width: 100% !important;
  height: 0;
  padding-bottom: 45%; /* shorter banner on desktop */
  background: #f6f8fa;
}
@media (max-width: 1024px) {
  .comparison-banner .cmp-stage { padding-bottom: 50%; }
}
@media (max-width: 640px) {
  .comparison-banner .cmp-stage { padding-bottom: 56.25%; } /* keep readable on phones */
}
.comparison-banner .cmp-title {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 16px;
  z-index: 4;
  max-width: calc(100% - 24px);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.comparison-banner .cmp-stage video {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none; /* override global video centering */
}
.comparison-banner .cmp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 999px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease-in-out;
  z-index: 3;
}
.comparison-banner .cmp-nav:hover { background: #fff; }
.comparison-banner .cmp-prev { left: 8px; }
.comparison-banner .cmp-next { right: 8px; }
.comparison-banner .cmp-counter {
  position: absolute;
  bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 2;
}

/* Subtitles above banners */
.cmp-subtitle {
  margin-top: 0.25rem;
}

/* Ensure bottle section uses full width consistently */
#comparison-bottle,
#comparison-bottle .container,
#comparison-bottle .hero-body,
#comparison-bottle .comparison-banner,
#comparison-bottle .cmp-stage {
  width: 100% !important;
  max-width: none !important;
  display: block;
}

/* Normalize section content width */
#comparison .hero-body,
#comparison-bottle .hero-body {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
 table {
      border-collapse: collapse;
      margin: 40px auto;
      font-size: 15px;
      text-align: center;
      width: 85%;
    }
    th, td {
      padding: 6px 12px;
    }
    .left-align {
      text-align: left;
    }
    /* Top rule */
    table thead tr:first-child th {
      border-top: 2px solid black;
    }
    /* Header bottom rule */
    thead tr:last-child th {
      border-bottom: 2px solid black;
    }
    /* Thin rules between body rows */
    tbody tr td {
      border-bottom: 1px solid #999;
    }
    /* Bottom rule */
    tbody tr:last-child td {
      border-bottom: 2px solid black;
      font-weight: bold;
    }
    /* Bold header labels */
    thead th {
      font-weight: bold;
    }
    abbr {
      text-decoration: none;
      cursor: help;          
    }
    caption {
  caption-side: bottom;
  text-align: center; 
  font-style: italic;
  margin-top: 8px;   
}