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


.footer {
  background-color: #1a1a1a !important;
  color: #ffffff;
}

.footer .icon-link {
  font-size: 25px;
  color: #ffffff;
}

.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 {}

.project-hero .hero-body {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  color: #ffffff;
}

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

.publication-venue {
  color: #cccccc;
  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; */
  display: inline-block;
  margin-right: 15px;
}

.publication-banner img {}

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

/* 確保所有標題在黑色背景下都是白色的 */
.title {
  color: #ffffff !important;
}

.subtitle {
  color: #ffffff !important;
}

/* 確保段落文字在黑色背景下可讀 */
p {
  color: #ffffff;
}

/* 確保連結在黑色背景下可讀 */
a {
  color: #4a9eff;
}

a:hover {
  color: #66b3ff;
}

.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 #666;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #1a1a1a;
  border-radius: 10px;
  color: #ffffff;
}

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





/*------ ADDED CSS ---------*/
.slider:after {
  content: '';
  color: white;
  display: block;
  position: absolute;
  transform: translate(-20%, -50%);
  top: 50%;
  left: 50%;
  font-size: 16px;
  font-family: Verdana, sans-serif;
}

input:checked+.slider:after {
  content: '';
  transform: translate(80%, -50%);
}

/*--------- END --------*/

.switch-container-wrapper {
  display: flex;
  justify-content: center;
  /* Center horizontally */
}

.switch-container {
  display: flex;
  align-items: center;
  /* Align items vertically */

}

.switch-label {
  color: white;
  font-size: 16px;
  margin-right: 5px;
  /* Adjust the margin as needed */
  margin-left: 5px;
  /* Adjust the margin as needed */
}

.video-container {
  position: relative;
  max-width: 100%;
  margin: 0.5em;
}

.overlay {
  position: absolute;
  top: 50%;
  /* Adjust the top position as needed */
  left: 50%;
  /* Adjust the left position as needed */
  background-color: rgba(0, 0, 0, 0.8);
  /* Semi-transparent background */
  color: white;
  font-size: 16px;
}

.thumbnail-img {
  max-width: 100%;
  height: auto;
  width: auto\9;
  /* IE8 */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.pill {
  cursor: pointer;
  padding: 5px;
  margin: 5px;
  border: 1px solid #666;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s;
  color: #ffffff;
}

.active-pill {
  /* background-color: #b4b4b4; */
  /* Adjust the color as needed */
  font-weight: bold;
}

.nav-pills {
  cursor: pointer;
}

.center-pills {
  display: flex;
  justify-content: center;
}

.scene-pills>.active {
  background: #1772d0;
}

.method-pills>.active {
  background: #1772d0;
}


/* .mode-pills > .active {
  background: #1772d0;
} */

.button {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
  font-family: 'Noto Sans', sans-serif;
  font-style: inherit;
  font-weight: inherit;
  box-sizing: inherit;
  text-decoration: none;
  user-select: none;
  -webkit-appearance: none;
  align-items: center;
  border: 1px solid transparent;
  box-shadow: none;
  display: inline-flex;
  height: 2.5em;
  line-height: 1.5;
  position: relative;
  vertical-align: top;
  border-width: 1px;
  cursor: pointer;
  justify-content: center;
  padding-bottom: calc(.5em - 1px);
  padding-top: calc(.5em - 1px);
  text-align: center;
  white-space: nowrap;
  margin-top: 5px;
  margin-bottom: 5px;
  background-color: #363636;
  border-color: transparent;
  color: #fff;
  font-size: 1.4rem;
  border-radius: 290486px;
  padding-left: calc(1em + .25em);
  padding-right: calc(1em + .25em);
}

.button .icon {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
  font-family: 'Noto Sans', sans-serif;
  user-select: none;
  line-height: 1.5;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  font-size: 1rem;
  box-sizing: inherit;
  font-style: inherit;
  font-weight: inherit;
  align-items: center;
  display: inline-flex;
  justify-content: center;
  height: 1.5em;
  width: 1.5em;
  margin-left: calc(-.5em - 1px);
  margin-right: .25em;
}

.neon-text {
  font-size: 3rem;
  font-weight: bold;
  color: #ffffff;
  /* 在黑色背景下使用白色作為後備 */
  background-image: linear-gradient(45deg, #4a9eff, #66b3ff, #87ceeb);
  /* 亮藍色漸變，在黑色背景下更明顯 */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* 只在支援的瀏覽器中使用透明效果 */
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.4),
    0 0 15px rgba(74, 158, 255, 0.8),
    0 0 25px rgba(74, 158, 255, 0.6);
  /* 調整陰影效果以適應黑色背景 */
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

/* Image Hover Swap Styles */
.hover-swap-container {
  position: relative;
  display: inline-block;
  margin: 0;
}

.hover-swap-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  cursor: pointer;
}

.hover-instruction {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #cccccc;
  font-style: italic;
}

.hover-instruction:hover {
  color: #ffffff;
}

/* Comparison Grid Styles */
.comparison-grid {
  max-width: 100%;
}

.comparison-grid .columns {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.comparison-grid .columns:not(:last-child) {
  margin-bottom: 0 !important;
}

.comparison-grid .column {
  padding: 0.5rem;
}

.comparison-grid .hover-swap-container {
  margin: 0 !important;
}

.comparison-grid .hover-swap-image {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.2s ease !important;
}

/* 移除 hover 縮放效果，避免與 JavaScript hover 事件衝突 */
/* .comparison-grid .hover-swap-image:hover {
  transform: scale(1.02) !important;
} */

.highlight {
  font-weight: 700;
  /* 粗體 */
  color: #ffffff;
  /* 亮色（白色） */
  /* text-shadow: 0 0 6px rgba(106, 209, 255, 0.8),
    0 0 12px rgba(180, 140, 255, 0.6); */
  /* 可選：發光效果 */
}


/* slider */
.slider-compare {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1/1;
  min-height: 180px;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 0 auto 18px auto;
}

.slider-compare img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.slider-compare .slider-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #6ad1ff;
  border-radius: 1px;
  z-index: 2;
  cursor: ew-resize;
  transition: background 0.2s;
}

.slider-compare .slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  background: #fff;
  border: 2px solid #6ad1ff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-compare .slider-handle:after {
  content: '';
  display: block;
  width: 12px;
  height: 2px;
  background: #6ad1ff;
  border-radius: 1px;
}

/* .slider-compare .slider-label {
              position: absolute;
              top: 12px;
              left: 18px;
              background: rgba(0, 0, 0, 0.55);
              color: #fff;
              padding: 4px 12px;
              border-radius: 12px;
              font-size: 1em;
              z-index: 4;
              pointer-events: none;
              font-weight: 500;
            }

            .slider-compare .slider-label.right {
              left: auto;
              right: 18px;
              background: rgba(106, 209, 255, 0.55);
            } */

/* Navbar Styles */
.navbar {
  background: rgba(var(--bg-1), 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 16px 0 rgba(106, 209, 255, 0.10), 0 0 0 2px rgba(106, 209, 255, 0.12) inset;
  border-bottom: 2px solid rgba(106, 209, 255, 0.25);
  z-index: 10;
  font-family: 'Google Sans', 'Noto Sans', 'Castoro', sans-serif;
}

.navbar .navbar-item,
.navbar .navbar-link {
  color: #eaf6ff;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s, box-shadow 0.2s;
  border-radius: 6px;
  margin: 0 2px;
  position: relative;
}

.navbar .navbar-item:hover,
.navbar .navbar-link:hover,
.navbar .navbar-item:focus,
.navbar .navbar-link:focus {
  color: #6ad1ff;
  background: rgba(106, 209, 255, 0.08);
  box-shadow: 0 0 8px 2px #6ad1ff44;
  text-shadow: 0 0 6px #6ad1ff99;
}

.navbar .navbar-link:after {
  border-color: #6ad1ff;
}

.navbar .navbar-dropdown {
  background: rgba(var(--bg-1), 0.98);
  border-radius: 8px;
  box-shadow: 0 4px 24px 0 #6ad1ff22;
  border: 1px solid rgba(106, 209, 255, 0.10);
}

.navbar .navbar-dropdown .navbar-item {
  color: #eaf6ff;
  border-radius: 6px;
}

.navbar .navbar-dropdown .navbar-item:hover {
  color: #6ad1ff;
  background: rgba(106, 209, 255, 0.10);
  box-shadow: 0 0 8px 2px #6ad1ff44;
}

.navbar .icon,
.navbar .fas,
.navbar .fab {
  color: #6ad1ff;
  filter: drop-shadow(0 0 4px #6ad1ff88);
}

.navbar-burger span {
  background: #6ad1ff !important;
  box-shadow: 0 0 4px #6ad1ff88;
}