body {
  font-family: 'Noto Sans', sans-serif;
}


.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: 'Google Sans', sans-serif;
}


.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: 'Google Sans', sans-serif;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

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

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

.publication-authors {
}

.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;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


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

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

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

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

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


/*Custom css for explanation selection*/
.explain_content h4{
    display: block;
}

.img_grid_container {
    /* border-top: 3px dashed #818181; */
    display: flex; /* This activates Flexbox */
    align-items: center; /* This vertically centers the content within the container */
}

.img_grid_item {
    width: 75px; /* Width of each box */
    height: 75px; /* Height of each box */
    margin: 0.5px; /* Spacing between boxes */
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

.img_select img{
    opacity: 0.3;
    width: 50px;
    vertical-align: middle;
    cursor: pointer;
    transition: transform 0.2s; /* Smooth transform */
}

.img_select img:hover{
    opacity: 1.0;
    transform: scale(1.1); /* Slight zoom on hover */
}

.main_image{
    position: relative;
    margin-left: calc(50% - 112px);
    z-index: 1;
    transition: opacity 0.3s ease-in-out;
    border-radius: 4px;
}

div.selected{
    opacity: 100%;
    border-bottom: 3px solid #5AB2FF;
}

div.selected img{
    opacity: 1.0;
}

img.selected_p {
    opacity: 1.0;
}

.masked_container{
    position: relative;
}

.interpret_container{
    position: relative;
    height:fit-content;
}

.prototype_grid_container {
    display: flex; /* This activates Flexbox */
    justify-content: space-around;
    align-items: center; /* This vertically centers the content within the container */
    margin-top: 50px;
}

.prototype_grid_item {
    width: 150px; /* Width of each box */
    /* height: 150px; Height of each box */
    margin: 1px; /* Spacing between boxes */
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    flex-direction: column;
}

.prototype_grid_item img{
    border-radius: 4px;
}


.hidden{
    opacity: 0;
}

.overlay {
    position: absolute;
    left: calc(50% - 112px);
    opacity: 0.0; /* Hide overlay initially */
    transition: opacity 0.3s ease-in-out;
    z-index: 0;
    border-radius: 4px;
}

/* Relation between Caption and Visualization / Counterfactual Result shared layout */
#rcv-container,
#counterfactual-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.cf-image-block {
    text-align: center;
    flex: 0 0 auto;
}

.cf-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cf-img {
    width: 160px;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.2s, opacity 0.2s;
}

.cf-img-wrong  { border: 3px solid #e74c3c; }
.cf-img-correct { border: 3px solid #27ae60; }

.cf-img:hover {
    box-shadow: 0 0 0 4px rgba(50,115,220,0.4);
}

.cf-pred {
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}
.cf-pred-wrong  { color: #e74c3c; }
.cf-pred-correct { color: #27ae60; }

.cf-chart-block {
    flex: 1;
    min-width: 260px;
    max-width: 420px;
}

.cf-chart-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.6rem;
}

.cf-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.cf-bar-label {
    width: 160px;
    min-width: 160px;
    font-size: 0.76rem;
    text-align: right;
    color: #444;
    line-height: 1.5;
}

.cf-bar-label div:first-child { font-weight: 600; color: #222; }

/* Overlapping bar container */
.cf-bar-wrap {
    flex: 1;
    position: relative;
    height: 20px;
}

.cf-bar-orig,
.cf-bar-edit {
    position: absolute;
    border-radius: 4px;
    transition: opacity 0.25s, filter 0.25s;
}

/* Yellow (original) on bottom, slightly taller */
.cf-bar-orig {
    background: rgba(230, 184, 74, 0.85);
    height: 20px;
    top: 0;
    z-index: 1;
}

/* Grey (edited) on top, slightly inset so both are visible */
.cf-bar-edit {
    background: rgba(150, 150, 150, 0.75);
    height: 12px;
    top: 4px;
    z-index: 2;
}

/* Zero reference line */
.cf-zero-line {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: #333;
    z-index: 3;
    transform: translateX(-50%);
}

.cf-bar-orig.cf-dimmed { opacity: 0.15; }
.cf-bar-edit.cf-dimmed  { opacity: 0.15; }

.cf-bar-orig.cf-highlighted {
    background: rgba(230, 184, 74, 1);
    filter: brightness(1.15);
}
.cf-bar-edit.cf-highlighted {
    background: rgba(120, 120, 120, 1);
    filter: brightness(1.15);
}

.cf-legend {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 0.6rem;
    font-size: 0.82rem;
}

.cf-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 10px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 4px;
}

.cf-arrow-block {
    text-align: center;
    flex: 0 0 auto;
    color: #555;
}

.cf-arrow {
    font-size: 2rem;
    line-height: 1;
}

.cf-arrow-label {
    font-size: 0.78rem;
    margin-top: 0.2rem;
    white-space: nowrap;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: center;
}

.comparison-table thead tr {
    border-top: 2px solid #222;
    border-bottom: 1px solid #222;
}

.comparison-table tbody tr:last-child {
    border-bottom: 2px solid #222;
}

.comparison-table th {
    padding: 0.5rem 0.6rem;
    font-weight: 700;
    background: #fff;
}

.comparison-table td {
    padding: 0.4rem 0.6rem;
    vertical-align: middle;
}

.comparison-table .row-label {
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border-right: 1px solid #bbb;
    padding-right: 0.8rem;
    vertical-align: middle;
}

.comparison-table tr td:not(.row-label) {
    vertical-align: middle;
}

.comparison-table .ct-yes { color: #1a7a1a; font-weight: bold; }
.comparison-table .ct-no  { color: #c0392b; font-weight: bold; }

.comparison-table tbody tr:hover { background-color: #f0f5ff; }

/* Shared toggle button style */
.toggle-btn {
    padding: 0.4rem 1.2rem;
    border: 2px solid #3273dc;
    border-radius: 4px;
    background-color: #fff;
    color: #3273dc;
    font-weight: bold;
    cursor: pointer;
    margin-right: 0.4rem;
    transition: background-color 0.15s, color 0.15s;
}

.toggle-btn-active {
    background-color: #3273dc;
    color: #fff;
}