/* ===== MAIN LAYOUT AND TYPOGRAPHY ===== */
body {
  font-family: 'Noto Sans', sans-serif;
}

strong {
  font-family: 'Lato Bold', sans-serif;
}

a {
  color: #ca1111;
}

a:hover {
  color: #a00e0e;
}


/* ===== SQUINT TEXT EFFECT ===== */
.squint-text {
  text-shadow:
    2.5px 0 3px rgba(0,0,0,0.35),
   -2.5px 0 3px rgba(0,0,0,0.35);
}

/* ===== PUBLICATION STYLING ===== */
.publication-title, 
.publication-authors,
.teaser {
  font-family: 'Google Sans', sans-serif;
}

.publication-venue {
  font-weight: bold;
}

.publication-venue a {
  color: hsl(0, 0%, 4%) !important;
}

.publication-authors a {
  color: #ca1111 !important;
}

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

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

.author-separator {
  margin: 0 0.5em;
  font-weight: bold;
}

/* ===== TEASER SECTION ===== */
.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

/* ===== TABS AND NAVIGATION ===== */
.tab-header {
  display: flex;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.task-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  background-color: #f0f0f0;
}

.task-tabs-grid .tab {
  font-size: 18px;
  border-radius: 2em;
  border-bottom: none;
  padding: 8px 12px;
}

.task-tabs-grid .tab.active {
  background-color: #ca1111;
  color: #fff;
  box-shadow: 0 2px 6px rgba(202, 17, 17, 0.35);
}

.task-tabs-grid .tab:not(.active):hover {
  background-color: #333;
  color: white;
}

.task-tabs-grid .tab.active:hover {
  background-color: #a00e0e;
  color: #fff;
  box-shadow: 0 2px 8px rgba(202, 17, 17, 0.5);
}

.tab {
  padding: 10px 15px;
  background-color: #f5d5d5;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 600;
  flex: 1;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
  font-size: 14px;
  border-top-left-radius: 1em;
  border-top-right-radius: 1em;
  color: #666;
}

.tab:hover {
  background-color: #333;
  color: white;
}

.tab.active {
  background-color: #fff;
  font-weight: 600;
  color: #333;
  border-bottom: 3px solid #ca1111;
}

.tab.active:hover {
  background-color: #fff;
  color: #333;
  border-bottom: 3px solid #ca1111;
  box-shadow: 0 0 5px rgba(202, 17, 17, 0.3);  
}

/* Environment tabs styling */
#env-tabs .tab {
  background-color: #f5d5d5;
  font-weight: 600;
  font-size: 20px;
}

#env-tabs .tab.active {
  background-color: #ffffff;
  border-bottom: 3px solid #ca1111;
}

#env-tabs .tab:not(.active):hover {
  background-color: #333;
  color: white;
}

#env-tabs .tab.active:hover {
  background-color: #ffffff;
  color: #333;
  border-bottom: 3px solid #ca1111;
}

/* ===== TAB CONTENT ===== */
.tab-content {
  padding: 15px;
  background-color: #fff;
}

/* ===== VIDEO DISPLAY ===== */
.comparison-container {
  width: 100%;
  margin: 0 auto;
  background-color: #f5f5f5;
  border-radius: 1em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Side-by-side video pair layout */
.video-pair {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.video-pair-item {
  flex: 1;
  max-width: 50%;
}

.video-card {
  overflow: hidden;
}

.video-label {
  width: 100%;
  font-size: 18px;
  cursor: default;
  pointer-events: none;
}

/* ===== VIDEO ELEMENTS ===== */
.video-container {
  width: 100%;
  background-color: #000;
  overflow: hidden;
  position: relative;
}

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

.video-overlay-label {
  position: absolute;
  top: 8px;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  pointer-events: none;
}

.video-overlay-label.left {
  left: 6px;
}

.video-overlay-label.right {
  right: 6px;
}


/* ===== TITLES AND HEADINGS ===== */
.title.is-3 {
  padding-top: 0.25rem; 
  padding-bottom: 0.5rem; 
}

/* ===== FOOTER AND NAVIGATION ===== */
.back-to-top-container {
  text-align: center;
  padding: 20px 0;
  width: 100%;
}

.back-to-top-btn {
  background-color: #ca1111;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn:hover {
  background-color: #a00e0e;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.link-block a.is-dark:hover {
  background-color: #ca1111;
  color: #fff;
}


