/* Reset + Base */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #fdfdfd;
  color: #222;
  padding: 0;
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background: #1a1a1a;
  color: white;
  padding: 1em;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2em;
}

nav {
  margin-top: 0.5em;
}

nav a {
  margin: 0 1em;
  color: #ddd;
  font-weight: bold;
}

.nav-link {
  display: inline-block;
  margin: 0 0.5em;
  color: #ddd;
  font-weight: bold;
}

.nav-link:hover {
  color: white;
}

.button-link {
  border: 1px solid #fff;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.button-link:hover {
  border-color: #80c4ff;
  color: #fff;
}

/* Title Section */
.title-section {
  text-align: center;
  padding: 2em 1em;
}

.title-section h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}

.title-section .authors {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 1em;
}

.affiliations {
  font-size: 1em;
}

.footnotes {
  font-size: 0.8em;
}


.links {
  margin-top: 1em;
}

.button {
  display: inline-block;
  margin: 0.3em;
  padding: 0.6em 1.2em;
  background-color: #007acc;
  color: white;
  border-radius: 4px;
  font-weight: bold;
}

.button:hover {
  background-color: #005fa3;
}

/* Sections */
section {
  max-width: 900px;
  margin: auto;
  padding: 2em 1em;
}

.teaser img {
  max-width: 100%;
  border: 1px solid #ccc;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.bibtex pre {
  background: #f4f4f4;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9em;
}

.pipeline img {
  max-width: 100%;
  border: 1px solid #ccc;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.method-figure {
  margin: 2em auto 0;
  text-align: center;
}

.method-figure img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.method-figure figcaption {
  margin-top: 1em;
  font-size: 0.95em;
  line-height: 1.5;
  color: #2f2f2f;
  text-align: left;
}

.vis {
  background: #f9f9f9;
  padding-bottom: 2.5em;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.5em;
}

.video-card {
  text-align: center;
  margin: 0;
  padding: 0;
}

.video-card video {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.video-card figcaption {
  margin-top: 0.4em;
  font-size: 0.85em;
  color: #444;
}

@media (max-width: 1100px) {
  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5em;
  background-color: #f0f0f0;
  color: #666;
  font-size: 0.9em;
  margin-top: 2em;
}

.local-row {
  display: flex;
  gap: 1em;
  justify-content: center;
  margin-bottom: 1em;
}
.local-img {
  width: 120px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.local-example .options {
  display: flex;
  gap: 0.7em;
  justify-content: center;
}
.local-example .options button {
  padding: 0.4em;
  border-radius: 7px;
  background: #f8f8f8;
  border: 1.5px solid #ccc;
  cursor: pointer;
  transition: background 0.25s, border 0.25s;
}
.local-example .options button.correct {
  background: #d4edda;
  border-color: #28a745;
}
.local-example .options button.incorrect {
  background: #f8d7da;
  border-color: #dc3545;
}
.local-example .options button:hover {
  background: #eef;
}
