/* Define CSS variables for easy theming */
:root {
  --primary-color: #2B333F;
  --background-color: #ffffff;
  --accent-color: #0E132B;
  --link-color: #0077aa;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --max-width: 1080px;
}

/* Global Styles */
body {
  font-family: var(--font-stack);
  background-color: var(--background-color);
  color: var(--primary-color);
  margin: 0px auto;  /* Center the content */
  max-width: var(--max-width); /* Restrict maximum width */
  padding: 20px;
  line-height: 1.6;
}

/* Header Section */
.title {
  text-align: center;
  padding: 20px 0;
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0!important;
}

.abstract {
  max-width: 720px;
  margin: 40px auto;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
  font-weight: 500;
}

h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  padding-bottom: 5px;
}

/* Navigation and Links */
.authors, .affiliations, .links {
  text-align: center;
}

.links {
  margin: 15px 0;
}

a {
  color: var(--link-color);
  font-weight: 500;
}

.affiliations a {
  color: var(--accent-color);
}

a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

.authors a,
.affiliations a,
.links a {
  margin: 0 10px;
}


/* Teaser Section */
.teaser {
  text-align: center;
  width: 88%;
  margin: 0 auto;
}

.teaser img,
.teaser video {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Code blocks */
code, pre {
  background-color: #f4f4f4 !important;
  padding: 8px;
  border-radius: 5px;
  font-size: 0.9rem;
  overflow-x: auto;
}
.external-link.button  {
  background-color: #ffffff;
  color: var(--accent-color);
}

.external-link.button:hover {
  color: #ffffff;
  background-color: var(--accent-color);
  text-decoration: none;
}
.external-link.button span {
  transition: color 0.3s ease;
}
/* Style the buttons that are used to open the tab content */
.nav-item {
  overflow: hidden;
  text-align: center;
  width: 100%;
  background-color: inherit;
  float: left;
  border: 1px solid #ddd;
  outline: none;
  cursor: pointer;
  transition: 0.0s;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

/* Change background color of buttons on hover */
.nav-item:hover {
  background-color: #FFCC00;
}

/* Create an active/current tablink class */
.nav-tabs .nav-link.active {
  background-color: #990000;
  color:white;
  font-weight: 500;
}

.nav a {
  color: #000;
  text-decoration: none;
}
.nav a:hover {
  color: #000;
  font-weight: 500;
  text-decoration: none;
}

.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%;
}
@media (prefers-color-scheme: dark) {
  html, body, *, *::before, *::after {
    background-color: white !important;
  }
}


.compare-overlap {
  position: relative;
  width: 100%;
  height: clamp(280px, 50vw, 560px);
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
}

/* Stacked full-bleed videos */
.layer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* Control pods */
.controls {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  color: #fff;
  font-size: 12px;
}
.controls select {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(30,30,30,0.7);
  color: #fff;
}

/* Place the 3 pods */
.controls-left   { top: 10px; left: 10px; }
.controls-middle { top: 10px; left: 50%; transform: translateX(-50%); }
.controls-right  { top: 10px; right: 10px; }

/* Dividers */
.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.2));
  box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset;
  cursor: col-resize;
  z-index: 4;
}
.divider:hover { background: rgba(255,255,255,.85); }

.nav .nav-link { cursor: pointer; }
