:root {
  --black: rgb(29, 29, 31);
  --blue: rgb(68, 119, 170);
  --darkblue: rgb(0, 68, 136);
  --darkbluea: rgba(0, 68, 136, 0.66);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.section {
  padding: 1.5rem 1.5rem;
}

.section.is-medium {
  padding: 3rem 1.5rem;
}


.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", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}


.publication-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.publication-authors {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

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

.publication-authors a {
   color: var(--blue) !important;
}

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

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

.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%;
}

.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-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}


.overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.50);
  z-index: 1;
  transition: opacity 1.0s;
}

.hero-body,
.hero-head,
.hero-foot {
  z-index: 2;
  transition: opacity 1.0s;
}

/* Code block styling */
.code-block {
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.85rem;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  line-height: 1.5;
}

/* Responsive tables */
.table-container {
  overflow-x: auto;
}

/* Video grid */
.task-video {
  width: 32.5%;
  display: inline-block;
  vertical-align: top;
}

.task-video > div {
  font-weight: 500;
  font-size: 1.1rem;
  text-align: center;
}

.task-video video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Centered images */
.centered-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
}

/* ===== Button styles ===== */
.rio-button {
  background-color: white;
  border: 1px solid var(--darkbluea);
  border-radius: 0.5em;
  padding: 0.5em 1.5em;
  font-size: 1.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--darkbluea);
  cursor: pointer;
  text-decoration: none;
  gap: 0.5em;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.rio-button:hover {
  background-color: white;
  border-color: var(--darkblue);
  color: var(--darkblue);
}

/* Dark variant (BibTeX copy button) */
.rio-button--dark {
  background-color: #333;
  border-color: #555;
  color: #d4d4d4;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

.rio-button--dark:hover {
  background-color: #444;
  border-color: #777;
  color: #fff;
}

/* Hero buttons: opacity-only hover */
.hero .rio-button {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.66);
  color: rgba(255, 255, 255, 0.66);
  transition: opacity 0.3s ease;
}

.hero .rio-button:hover {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.66);
  color: rgba(255, 255, 255, 0.66);
  opacity: 0.7;
}

.footer-logos img {
  max-height: 80px;
  max-width: 150px;
  width: auto;
  height: auto;
  margin: 0 1.25rem;
  object-fit: contain;
}

@media (max-width: 640px) {
  .footer-logos img {
    max-height: 60px;
    max-width: 120px;
    margin: 0.5rem 0.75rem;
  }
}
