html {
  scroll-behavior: smooth;
}

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

section.section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

h2.title.is-3, h3.title.is-4 {
  color: #222;
}

.table td b, .table th {
  color: #222;
}

.table td {
  vertical-align: middle;
}


.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: 1rem;
  padding-bottom: 1rem;
}

.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-image {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.interpolation-video-column {}

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

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

#interpolation-image-wrapper {
  width: 100%;
}

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


/* Demo CSS */
.demo_img {
  align-items: center;
  text-align: center;
  vertical-align: middle;
  /*width: 800px;*/
  /*align-items: center;*/
  /*flex-basis: 40%*/
  /* margin-left: 25%;
  margin-right: 25%; */
  /*display: block;*/
  /* position: absolute; */
  max-height: 90vh;
}

.vir_demo_img {
  align-items: center;
  text-align: center;
  vertical-align: middle;
  max-height: 90vh;
}

.demo_slider_container {
  min-width: 75px;
  width: 10%;
  /* Adjust as needed */
  align-items: center;
  text-align: center;
  /*height: 60px; !* Adjust as needed *!*/
  display: none;
  position: absolute;
}

.vir_demo_slider_container {
  min-width: 75px;
  width: 10%;
  /* Adjust as needed */
  align-items: center;
  text-align: center;
  /*height: 60px; !* Adjust as needed *!*/
  position: absolute;
}


.slider_group {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  max-height: 90vh;
}

.vir_slider_group {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  max-height: 90vh;
}

.demo_slider {
  --SliderColor: hsl(50, 100%, 50%);
  -webkit-appearance: none;
  width: 20px;
  height: 5px;
  outline: none;
  opacity: 1;
  /* Initially hide the slider */
  transition: height, width .5s ease;
  /* Smooth transition */
  border-radius: 10px;
  background-image: linear-gradient(to right, #f06 0%, #f06 2%, #f4d 18%, #94f 34%, #09f 50%, #7c3 66%, #fe0 82%, #fb0 98%, #fb0 100%);
}

.demo_slider_container>input {
  width: 0px;
  border: 0px;
  transition: all .5s ease;
  /* Smooth transition */
  accent-color: var(--SliderColor);
}

.vir_demo_slider_container>input {
  width: 0px;
  border: 0px;
  transition: all .5s ease;
  /* Smooth transition */
  accent-color: yellow;
}

.demo_slider_container:hover>input {
  width: 100%;
  opacity: 1;
  /* Show the slider on hover */
  border: 2px solid white;
  transition: all .5s ease;
  /* Smooth transition */
  accent-color: var(--SliderColor);
}

.vir_demo_slider_container:hover>input {
  width: 100%;
  opacity: 1;
  /* Show the slider on hover */
  border: 2px solid white;
  transition: all .5s ease;
  /* Smooth transition */
  accent-color: yellow;
}

.demo_slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 17.5px;
  background: var(--SliderColor);
  cursor: pointer;
  /*border: 4px solid red; !* White border *!*/
  transition: all .5s ease;
  /* Smooth transition */
}

.vir_demo_slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 17.5px;
  background: var(--SliderColor);
  cursor: pointer;
  /*border: 4px solid red; !* White border *!*/
  transition: all .5s ease;
  /* Smooth transition */
}

.demo_slider_container:hover .demo_slider::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  border-radius: 12.5px;
  /*border: 4px solid white; !* White border *!*/
}

.vir_demo_slider_container:hover .vir_demo_slider::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  border-radius: 12.5px;
  /*border: 4px solid white; !* White border *!*/
}

.content {
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  /*padding: 5px 5px;*/
  /*margin: 5px auto;*/
}

.my_carousel-control {
  width: 60px;
  height: 30%;
  top: 50%;
  transform: translateY(-50%);
}

.white_carousel-control {
  filter: invert(0) brightness(100%);
}

.demo_carousel_item {
  overflow: hidden;
}

.inner-div {
  float: left;
  left: 50%;
  position: relative;
}

.centered-div {
  position: relative;
  float: left;
  left: -50%;
  width: auto;
}

/* Multiple items carousel */

.multi-carousel-inner {

  display: flex;
}

.multi-carousel-item {
  margin-right: 0;
  flex: 0 0 33.2%;
  display: block;
  margin: 0 .5em;
}

.img-wrapper {
  max-width: 100%;
  height: 50vh;
}

.img-wrapper>img {
  max-width: 100%;
  max-height: 100%;
}

/* Gemini carousel overlay */
.carousel-overlay {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Removed background, color, etc.  We're just positioning now. */
  display: none;
  /*  Initially hidden; now using display instead of opacity */
  pointer-events: none;
  /* Starts with no pointer events */
}

.carousel-overlay img {
  /* Overlay image styling */
  display: block;
  /*  Remove extra space. */
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.carousel-overlay.active {
  display: block;
  /*  Show on active */
  pointer-events: auto;
  /*Allow interaction once shown.*/
}

.inactive {
  display: none;
  /*  Hide on inactive */
  pointer-events: none;
  /* No interaction when hidden */
}

.note {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: fit-content;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  margin-top: 28px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  background-color: rgb(229, 246, 253);
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
  padding: 6px 16px;

}

.svg-icon {
  height: 3vh;
  margin-left: 8px;
  margin-right: 8px;
  vertical-align: bottom;
}

.centered-text {
  text-align: center;
}


/* Gemini Pointlight */

.mainImage {
  /* width: 100%;
  height: 100%; */
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  /* Important: similar to background-size: cover */
  object-position: center;
  /* Important: similar to background-position: center */
}


.overlay-button {
  position: absolute;
  z-index: 10;
  width: 4%;
  height: 4%;
  border-radius: 50%;
  background-color: rgba(229, 246, 253, 0.5);
  border: 2px solid rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  /* Prevent text selection on mobile */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* Remove tap highlight on iOS */
}

.overlay-button:hover {
  background-color: rgba(229, 246, 253, 0.7);
  border-color: rgba(0, 0, 0, 0.9);
}

.hidden {
  display: none;
  /* Hide the element */
}

.approach-img {
  padding-bottom: 5px;
  margin-bottom: 15px;
}

#replay-video {
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.header-container>h5 {
  width: 33.333%;
}

.demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Grey overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  /* Indicate it's clickable */
  z-index: 10;
  /* Ensure overlay is on top */
}

.demo-overlay.hidden {
  display: none;
}

.touch-icon {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
  height: 4%;
  width: 4%;
  position: absolute;
}

.virtual-container {
  display: inline-block;
}

.speaker-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.speaker-box {
  flex: 1 1 0;
  min-width: 120px;
  max-width: 280px;
  text-align: center;
}

.speaker-video {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  background: #000;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.speaker-video:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.speaker-label {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}

@media (max-width: 768px) {
  .speaker-box {
    min-width: 100px;
    max-width: 160px;
  }
  .speaker-row {
    gap: 8px;
  }
}

/* ── Gesture carousel ── */
.gesture-carousel {
  position: relative;
  margin-top: 20px;
  padding: 16px 0;
}

.gesture-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.gesture-nav button {
  background: #f8f9fa;
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #555;
}

.gesture-nav button:hover {
  border-color: #4a90d9;
  background: #eef6ff;
  color: #4a90d9;
  transform: scale(1.1);
}

.gesture-name {
  font-weight: 700;
  font-size: 1.15rem;
  min-width: 240px;
  text-align: center;
  color: #333;
}

.gesture-slide {
  display: none;
}

.gesture-slide.active {
  display: block;
}

.comp-slide video {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gesture-counter {
  font-size: 0.8rem;
  color: #999;
  margin-top: 4px;
}

.utt-video {
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  border-radius: 10px;
}

.utt-video:hover {
  box-shadow: 0 0 0 3px #4a90d9;
  transform: scale(1.02);
}

.gesture-video {
  width: 100%;
  border-radius: 10px;
  background: #fafafa;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
  clip-path: inset(0 10% 0 10%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}