/* =========================
   Global Styles
   ========================= */

:root {
  --text-main: #111;
  --text-heading: #222;
  --bg-main: #ffffff;
  --card-bg: #ffffff;
  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body {
  margin: 20px;
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* =========================
   Headings & Typography
   ========================= */

h1,
h2,
h3 {
  font-family: 'Merriweather', serif;
  text-align: center;
  color: var(--text-heading);
  font-weight: 700;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 0.4em;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 1.2em;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8em;
}

/* =========================
   Abstract Section
   ========================= */

.abstract {
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 18px 22px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  text-align: justify;
  font-size: 16px;
}

.abstract h3 {
  margin-top: 0;
}

/* =========================
   Video Grid Layout
   ========================= */

.video-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* =========================
   Video Cards
   ========================= */

.video-container {
  background-color: var(--card-bg);
  padding: 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.video-container video {
  width: 100%;
  border-radius: 4px;
}

/* =========================
   Controls (Pan Slider)
   ========================= */

.video-container label {
  font-size: 14px;
  margin-right: 8px;
}

input[type="range"] {
  width: 150px;
  vertical-align: middle;
  accent-color: #444;
}

span[id^="panValue"] {
  display: inline-block;
  min-width: 36px;
  font-size: 14px;
  text-align: left;
}

/* =========================
   Footer
   ========================= */

.footer {
  margin-top: 60px;
  padding: 20px 10px;
  text-align: center;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #ddd;
}

.footer a {
  color: #555;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* =========================
   Responsive Design
   ========================= */

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  body {
    margin: 12px;
  }
}
