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

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }
}


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

/* Boar emoji styles */
.boar-emoji {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease;
    animation: periodShake 5s infinite;
}

.boar-emoji:hover {
    transform: scale(1.2);
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes periodShake {
    0%, 85% { transform: translateX(0); }
    87%, 89%, 91%, 93%, 95% { transform: translateX(-2px); }
    88%, 90%, 92%, 94%, 96% { transform: translateX(2px); }
    97%, 100% { transform: translateX(0); }
}

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

/* Overall grey backdrop */
.banner{
  position: relative;         /* lets children be absolutely-positioned */
  background: linear-gradient(to bottom right, #E5E9FF, #C8D0FC);
  height: 220px;              /* any height you need */
  overflow: hidden;           /* hides anything that sticks out */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* subtle bottom shadow */
}

/* Mobile banner adjustments */
@media (max-width: 768px) {
  .banner {
    height: 180px;
    padding: 10px;
  }
  
  /* Title responsiveness for initial banner */
  .banner .title.is-1,
  .publication-title {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    padding: 0 15px;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }
  
  .banner .column {
    padding: 10px !important;
  }
  
  /* Initial banner section responsiveness */
  .banner.is-flex {
    min-height: 140px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 160px;
  }
  
  .banner .title.is-1,
  .publication-title {
    font-size: 1.8rem !important;
    line-height: 1.1 !important;
    padding: 0 10px;
  }
  
  .banner.is-flex {
    min-height: 120px;
    padding: 5px;
  }
}

/* Scrolling images container */
.scrolling-container {
  position: absolute;
  left: 0;
  right: 0;                   /* 100% width */
  top: 70%;                   /* push further down */
  height: 50px;               /* thickness of the bar */
  transform: translateY(-50%);/* center vertically */
  overflow: hidden;           /* hide overflow */
}

.scrolling-images {
  display: flex;
  height: 100%;
  width: max-content;
  animation: scroll-adaptive var(--scroll-duration, 30s) linear infinite;
}

.scrolling-images img {
  height: 100%;
  width: auto;
  margin-right: 40px;         /* consistent spacing */
  opacity: 0.8;               /* slightly transparent */
  flex-shrink: 0;             /* prevent shrinking */
}

/* Scrolling animation */
@keyframes scroll-adaptive {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Paper preview link and image */
.highlight-link {
  position: absolute;
  width: min(20%, 300px);
  right: 12%;                 /* distance from the right edge */
  bottom: -5px;               /* extend slightly below banner */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  z-index: 10;
  padding: 0;                 /* remove any padding */
  margin: 0;                  /* remove any margin */
  border: none;               /* remove any border */
}

.highlight-link:hover {
  transform: translateY(-5px); /* move up on hover - stays connected to banner */
}

/* Mobile paper preview improvements */
@media (max-width: 768px) {
  .highlight-link {
    width: min(40%, 200px);    /* Larger on mobile */
    right: 5%;                 /* Closer to edge */
    bottom: -10px;             /* More overlap */
  }
}

@media (max-width: 480px) {
  .highlight-link {
    width: min(45%, 180px);    /* Even larger on small phones */
    right: 3%;
    bottom: -8px;
  }
}

.highlight{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;         /* rounded corners */
  transition: transform 0.3s ease;
  object-fit: fill;           /* stretches to fill container completely */
}

/* Video Examples Section */
.video-examples {
  padding: 60px 0;
  background: #f8f9fa;
}

.video-examples .container {
  max-width: 100%;
  padding: 0;
}

.video-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 40px;
  scroll-behavior: smooth;
}

.video-example {
  flex: 0 0 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.video-container {
  position: relative;
  width: 100%;
  height: 225px;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.labels-container {
  padding: 20px;
}

.label-category {
  margin-bottom: 15px;
}

.label-category:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.category-header .icon {
  font-size: 16px;
}

.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.label {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  height: 28px;
  line-height: 1;
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;
}

/* Audible labels - beige/tan color */
.label.audible {
  background-color: #f5e6d3;
  color: #8b4513;
}

/* Visible labels - light green */
.label.visible {
  background-color: #d4edda;
  color: #155724;
}

/* Both (Audible & Visible) labels - light blue */
.label.both {
  background-color: #d1ecf1;
  color: #0c5460;
}

.badge {
  background-color: #fd7e14;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  margin-left: 6px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Hide scrollbar */
.video-carousel {
  scrollbar-width: none; /* Firefox */
}

.video-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* Table Gallery Styles */
.table-gallery-nav {
  margin-bottom: 2rem;
}

.table-gallery-nav .tabs {
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.table-gallery-nav .tabs li:hover {
  background-color: #f8f9fa;
}

.table-gallery-nav .tabs li.is-active {
  background-color: #3273dc !important;
  border-color: #3273dc !important;
}

.table-gallery-nav .tabs li.is-active a,
.table-gallery-nav .tabs li.is-active a:hover,
.table-gallery-nav .tabs li.is-active a:focus {
  color: white !important;
  border-color: #3273dc !important;
  background-color: transparent !important;
}

.table-gallery-nav .tabs li.is-active .icon,
.table-gallery-nav .tabs li.is-active span {
  color: white !important;
}

.table-view {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.table-view.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-gallery-content .table {
  transition: all 0.3s ease;
}

.table-gallery-content .table:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hide scrollbar for tabs container */
.table-gallery-nav .tabs {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.table-gallery-nav .tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.table-gallery-nav .tabs ul {
  flex-wrap: nowrap;
  overflow-x: auto;
}

/* Disabled button styles */
.button.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #dbdbdb !important;
  color: #7a7a7a !important;
  border-color: #dbdbdb !important;
}

.button.is-disabled:hover {
  background-color: #dbdbdb !important;
  color: #7a7a7a !important;
}

/* Mobile-responsive video examples */
@media (max-width: 768px) {
  .video-examples {
    padding: 40px 0;
  }
  
  .video-carousel {
    gap: 20px;
    padding: 15px 20px;
  }
  
  .video-example {
    flex: 0 0 320px;           /* Smaller cards on mobile */
  }
  
  .video-container {
    height: 180px;             /* Adjust video height */
  }
  
  .labels-container {
    padding: 15px;
  }
  
  .category-header {
    font-size: 15px;          /* Slightly larger for mobile */
  }
  
  .label {
    font-size: 13px;          /* Larger text for mobile */
    height: 26px;             /* Let line-height control height */
    display: inline-block;
    padding-left: 8px;
    padding-right: 8px;
  }
  
  .badge {
    font-size: 8px;
    padding: 2px 6px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .video-example {
    flex: 0 0 280px;           /* Even smaller on phones */
  }
  
  .video-container {
    height: 160px;
  }
  
  .labels-container {
    padding: 12px;
  }
  
  .label {
    font-size: 14px;          /* Larger for small screens */
    height: 34px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Mobile-responsive publication section */
@media (max-width: 768px) {
  .hero-body {
    padding: 1.5rem !important;
  }
  
  .publication-authors {
    font-size: 0.9rem;
  }
  
  .author-block {
    display: inline-block;
    margin-bottom: 5px;
  }
  
  .publication-links .link-block {
    margin: 5px 3px;
  }
  
  .button {
    font-size: 0.9rem;
    padding: 12px 16px;        /* Larger touch targets */
    min-height: 44px;          /* iOS touch target guidelines */
  }
}

@media (max-width: 480px) {
  .hero-body {
    padding: 1rem !important;
  }
  
  .publication-authors {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  
  .publication-links {
    flex-direction: column;
    align-items: center;
  }
  
  .link-block {
    width: 100%;
    max-width: 200px;
    margin: 3px 0 !important;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile-responsive abstract section */
@media (max-width: 768px) {
  .section {
    padding: 2rem 1.5rem;
  }
  
  .container.is-max-desktop {
    max-width: 100% !important;
    padding: 0 15px;
  }
  
  .content p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .title.is-3 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 1.5rem 1rem;
  }
  
  .container.is-max-desktop {
    padding: 0 10px;
  }
  
  .content p {
    font-size: 0.95rem;
  }
  
  .title.is-3 {
    font-size: 1.3rem !important;
  }
}

/* Mobile-responsive video iframe */
@media (max-width: 768px) {
  .publication-video {
    margin: 0 15px;
  }
}

@media (max-width: 480px) {
  .publication-video {
    margin: 0 10px;
  }
}

/* Mobile scrolling images adjustments */
@media (max-width: 768px) {
  .scrolling-container {
    height: 40px;              /* Smaller height on mobile */
  }
  
  .scrolling-images img {
    margin-right: 30px;        /* Tighter spacing */
  }
}

@media (max-width: 480px) {
  .scrolling-container {
    height: 35px;
  }
  
  .scrolling-images img {
    margin-right: 25px;
  }
}

/* Mobile BibTeX section */
@media (max-width: 768px) {
  #BibTeX pre {
    font-size: 0.8rem;
    padding: 15px;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  #BibTeX pre {
    font-size: 0.75rem;
    padding: 12px;
  }
}

/* General mobile touch improvements */
@media (max-width: 768px) {
  /* Ensure all clickable elements meet minimum touch target size */
  a, button, .label, .button {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve text readability */
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  /* Better spacing for mobile */
  .columns {
    margin: 0 !important;
  }
  
  .column {
    padding: 0.5rem !important;
  }
  
  /* Smooth scrolling for mobile */
  .video-carousel {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  
  .video-example {
    scroll-snap-align: start;
  }
  
  /* Improve mobile navigation */
  .table-gallery-nav .tabs {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Better mobile typography */
  .publication-title {
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }
  
  /* Improve mobile interactions */
  .boar-emoji {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Better mobile video controls */
  video {
    max-width: 100%;
    height: auto;
  }
  
  /* Mobile-friendly scrollbars */
  .video-carousel::-webkit-scrollbar {
    height: 6px;
  }
  
  .video-carousel::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
  }
  
  .video-carousel::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
  }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
  .banner .title.is-1,
  .publication-title {
    font-size: 1.2rem !important;
    line-height: 1.1 !important;
  }
  
  .video-example {
    flex: 0 0 260px;
  }
  
  .video-container {
    height: 146px;
  }
  
  .highlight-link {
    width: min(50%, 160px);
    right: 2%;
  }
}