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

/* PCA Sliders Grid */
.pca-sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.pca-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pca-image-wrapper {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}

.pca-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 5px;
  object-fit: contain;
}

.pca-slider-container .slider {
  margin: 0 !important;
  width: 100%;
}

.pca-slider-container h4 {
  margin-bottom: 10px;
  color: #363636;
}

/* Species selector */
.species-selector {
  margin: 10px 0 20px 0;
}
.species-box {
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border: 1px solid #e2e8f0;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  padding: 10px 16px;
}
.species-box.is-active {
  border-color: #3273dc;
  background: linear-gradient(135deg, #e9f0ff, #f3f7ff);
  box-shadow: 0 6px 16px rgba(50, 115, 220, 0.2);
}
.species-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.species-selector .column.is-narrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D PCA Components Styles */
.interpolation-panel-3d {
  background: #f5f5f5;
  border-radius: 10px;
  margin-top: 20px;
}

.pca-sliders-grid-3d {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.pca-slider-container-3d {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pca-viewer-3d {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.viewer-loading {
  color: #666;
  font-style: italic;
}

.pca-slider-container-3d .slider {
  margin: 0 !important;
  width: 100%;
}

.pca-slider-container-3d h4 {
  margin-bottom: 10px;
  color: #363636;
}

.species-box-3d {
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border: 1px solid #e2e8f0;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  padding: 10px 16px;
}

.species-box-3d.is-active {
  border-color: #3273dc;
  background: linear-gradient(135deg, #e9f0ff, #f3f7ff);
  box-shadow: 0 6px 16px rgba(50, 115, 220, 0.2);
}

.species-box-3d:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Soybean 3D Viewer Styles */
.soybean-viewer-container {
  background: #f5f5f5;
  border-radius: 15px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.soybean-static-image {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.soybean-static-image:hover {
  transform: scale(1.02);
}

.soybean-label {
  margin-top: 15px;
  font-weight: 600;
  color: #363636;
  font-size: 1.1em;
}

.soybean-3d-viewer {
  width: 100%;
  height: 400px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #f9f9f9;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.soybean-3d-viewer:active {
  cursor: grabbing;
}

.soybean-controls {
  margin-top: 10px;
  color: #666;
}

.soybean-controls small {
  font-size: 0.85em;
}

/* Soybean Fitting Results */
.soybean-fitting-panel {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  margin: 10px 0 30px 0;
}

.soybean-fit-btn {
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border: 1px solid #e2e8f0;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  padding: 10px 16px;
}
.soybean-fit-btn.is-active {
  border-color: #3273dc;
  background: linear-gradient(135deg, #e9f0ff, #f3f7ff);
  box-shadow: 0 6px 16px rgba(50, 115, 220, 0.2);
}
.soybean-fit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.fit-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

#soyfit-image {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
}

.fit-viewer {
  width: 100%;
  height: 450px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: grab;
}
.fit-viewer:active { cursor: grabbing; }

.fit-help { color: #666; margin-top: 8px; }

/* Overview Section Styles */
.overview-panel {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  margin: 10px 0 30px 0;
}

.overview-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.overview-image-container {
  position: relative;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overview-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #fff;
  padding: 10px;
}

.overview-image-info {
  margin-top: 10px;
  color: #666;
  font-size: 0.9em;
}

.overview-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

.overview-nav-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.05);
}

.overview-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.overview-nav-btn:disabled:hover {
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.overview-nav-left {
  left: 20px;
}

.overview-nav-right {
  right: 20px;
}

.overview-nav-btn .icon {
  font-size: 1.2em;
  color: #333;
}

/* 3D Leaf PCA Components Styles */
.interpolation-panel-3d-leaf {
  background: #f5f5f5;
  border-radius: 10px;
  margin-top: 20px;
}

.pca-sliders-grid-3d-leaf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.pca-slider-container-3d-leaf {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pca-image-wrapper-3d-leaf {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}

.pca-image-wrapper-3d-leaf img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 5px;
  object-fit: contain;
}

.pca-slider-container-3d-leaf .slider {
  margin: 0 !important;
  width: 100%;
}

.pca-slider-container-3d-leaf h4 {
  margin-bottom: 10px;
  color: #363636;
}

.species-box-3d-leaf {
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border: 1px solid #e2e8f0;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  padding: 10px 16px;
}

.species-box-3d-leaf.is-active {
  border-color: #3273dc;
  background: linear-gradient(135deg, #e9f0ff, #f3f7ff);
  box-shadow: 0 6px 16px rgba(50, 115, 220, 0.2);
}

.species-box-3d-leaf:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* 3D Stem PCA Components Styles */
.interpolation-panel-3d-stem {
  background: #f5f5f5;
  border-radius: 10px;
  margin-top: 20px;
}

.pca-sliders-grid-3d-stem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.pca-slider-container-3d-stem {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pca-image-wrapper-3d-stem {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}

.pca-image-wrapper-3d-stem img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 5px;
  object-fit: contain;
}

.pca-slider-container-3d-stem .slider {
  margin: 0 !important;
  width: 100%;
}

.pca-slider-container-3d-stem h4 {
  margin-bottom: 10px;
  color: #363636;
}

.species-box-3d-stem {
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border: 1px solid #e2e8f0;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  padding: 10px 16px;
}

.species-box-3d-stem.is-active {
  border-color: #3273dc;
  background: linear-gradient(135deg, #e9f0ff, #f3f7ff);
  box-shadow: 0 6px 16px rgba(50, 115, 220, 0.2);
}

.species-box-3d-stem:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Overview Image Viewer Styles */
.overview-viewer-container {
  background: #f5f5f5;
  border-radius: 15px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.overview-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.overview-nav-btn {
  background: linear-gradient(135deg, #3273dc, #2366d1);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(50, 115, 220, 0.3);
  z-index: 10;
}

.overview-nav-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2366d1, #1e5bb8);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(50, 115, 220, 0.4);
}

.overview-nav-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(50, 115, 220, 0.3);
}

.overview-nav-btn:disabled {
  background: #dbdbdb;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.overview-image-container {
  position: relative;
  max-width: 800px;
  width: 100%;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.overview-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.overview-image-info {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.overview-play-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.overview-play-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.overview-play-btn .icon {
  font-size: 0.8em;
}

/* Responsive design for overview viewer */
@media (max-width: 768px) {
  .overview-viewer-container {
    padding: 20px;
    margin: 15px 0;
  }
  
  .overview-navigation {
    gap: 15px;
  }
  
  .overview-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
  
  .overview-image-container {
    padding: 15px;
  }
  
  .overview-image {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .overview-viewer-container {
    padding: 15px;
  }
  
  .overview-navigation {
    gap: 10px;
  }
  
  .overview-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .overview-image-container {
    padding: 10px;
  }
  
  .overview-image {
    max-height: 300px;
  }
}

/* 3D Reconstruction Viewer Styles */
.reconstruction-viewer-container {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  margin: 10px 0 30px 0;
}

.reconstruction-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.reconstruction-viewer {
  width: 100%;
  height: 400px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.reconstruction-viewer:active {
  cursor: grabbing;
}

.reconstruction-help {
  color: #666;
  margin-top: 8px;
}

.reconstruction-folder-btn {
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border: 1px solid #e2e8f0;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  padding: 8px 14px;
}

.reconstruction-folder-btn.is-active {
  border-color: #3273dc;
  background: linear-gradient(135deg, #e9f0ff, #f3f7ff);
  box-shadow: 0 6px 16px rgba(50, 115, 220, 0.2);
}

.reconstruction-folder-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Responsive design for reconstruction viewer */
@media (max-width: 768px) {
  .reconstruction-viewer {
    height: 300px;
  }
  
  .fit-viewer {
    height: 350px;
  }
  
  .pca-image-wrapper,
  .pca-image-wrapper-3d-leaf,
  .pca-image-wrapper-3d-stem {
    height: 220px;
  }
}
