/* ============================================================
   WW1 KIOSK — MAIN CSS
   ============================================================ */

:root {
  --cream:      #F5EAD7;
  --sepia-dark: #2C1A0E;
  --sepia-mid:  #8B6343;
  --ink-black:  #1A1008;
  --red-stamp:  #8B0000;
}

body {
  background-color: #0a0704;
  font-family: 'Special Elite', serif;
  overflow: hidden;
}

main {
  position: absolute;
  width: 2250px;
  height: 1500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background-color: var(--ink-black);
}

section {
  position: absolute;
  width: 2250px;
  height: 1500px;
  top: 0; left: 0;
  display: none;
  overflow: hidden;
}

#splash { display: block; }

.section-divider {
  display: block;
  width: 280px;
  opacity: 0.5;
  margin: 20px 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}


/* ============================================================
   SPLASH SCREEN
   ============================================================ */

.video-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}

.splash-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(80%) brightness(0.45) sepia(30%);
  opacity: 0;
  transition: none;
}

#vid1 { opacity: 1; }

#splash-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(16, 8, 3, 0.5);
  z-index: 1;
}

#splash-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

#splash-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  letter-spacing: 10px;
  color: var(--sepia-mid);
  margin-bottom: 24px;
  text-transform: uppercase;
}

#splash-years {
  font-family: 'Playfair Display', serif;
  font-size: 200px;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -2px;
  line-height: 0.9;
  opacity: 0.92;
}

#start-btn {
  position: absolute;
  width: 2250px;
  height: 1500px;
  top: 0; left: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 100px;
  z-index: 100;
}

#start-btn-text {
  font-family: 'Oswald', sans-serif;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 10px;
  color: var(--cream);
  background: rgba(26, 16, 8, 0.6);
  padding: 22px 70px;
  border: 2px solid rgba(245, 234, 215, 0.35);
  animation: blink 1.4s ease-in-out infinite;
}


/* ============================================================
   HOME SCREEN
   ============================================================ */

#home-bg {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
}

#home-bg img:first-child {
  position: absolute;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(60%) brightness(0.6) contrast(1.1);
}

#home-overlay {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background: linear-gradient(
    110deg,
    rgba(26,16,8,0.9) 0%,
    rgba(26,16,8,0.5) 55%,
    rgba(26,16,8,0.78) 100%
  );
}

#parchment-overlay {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  object-fit: cover;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

#home-stamp {
  position: absolute;
  width: 320px;
  bottom: 70px;
  left: 80px;
  opacity: 0.8;
  transform: rotate(-8deg);
  pointer-events: none;
}

#home-title-block {
  position: absolute;
  top: 130px;
  left: 120px;
  width: 680px;
}

#home-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  letter-spacing: 8px;
  color: var(--sepia-mid);
  margin-bottom: 28px;
}

#home-main-title {
  font-family: 'Playfair Display', serif;
  font-size: 270px;
  font-weight: 900;
  line-height: 0.88;
  color: var(--cream);
  letter-spacing: -6px;
  margin-bottom: 38px;
  opacity: 0.93;
}

#home-divider {
  display: block;
  width: 400px;
  opacity: 0.4;
  margin-bottom: 32px;
}

#home-tagline {
  font-family: 'Special Elite', serif;
  font-size: 30px;
  color: var(--cream);
  opacity: 0.62;
  line-height: 1.85;
}

#home-nav {
  position: absolute;
  top: 150px;
  right: 80px;
  width: 760px;
}

.nav-btn {
  position: relative;
  display: block;
  width: 700px;
  height: 128px;
  margin-bottom: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

#btn1 { transform: rotate(-1.2deg); margin-left: 0; }
#btn2 { transform: rotate(0.7deg);  margin-left: 50px; }
#btn3 { transform: rotate(-0.4deg); margin-left: 20px; }

.btn-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: fill;
}

.btn-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 16px;
  box-sizing: border-box;
}

.btn-number {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  font-weight: 700;
  color: #8B6343;
  width: 130px;
  flex-shrink: 0;
  text-align: center;
}

.btn-label {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--sepia-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  flex: 1;
  text-align: center;
}

.btn-arrow {
  font-size: 80px;
  color: var(--sepia-mid);
  flex-shrink: 0;
  width: 50px;
  text-align: center;
}


/* ============================================================
   SCREEN 1 — THE WARRING NATIONS
   ============================================================ */

#s1-map {
  position: absolute;
  width: 100%; height: 100%;
  translate: none;
  rotate: none;
  scale: none;
  transform: translate(30px, 0px);
  opacity: 1;
  top: 0; left: 0;
  filter: sepia(15%) brightness(0.88);
}

#s1-panel {
  position: absolute;
  top: 0; left: 0;
  width: 500px;
  height: 100%;
  background-color: var(--cream);
  z-index: 2;
}

#torn-edge {
  display: none;
}

#s1-panel-content {
  position: absolute;
  top: 100px;
  left: 44px;
  width: 420px;
}

#s1-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  letter-spacing: 8px;
  color: var(--sepia-mid);
  margin-bottom: 16px;
}

#s1-title {
  font-family: 'Playfair Display', serif;
  font-size: 70px;
  font-weight: 900;
  line-height: 1;
  color: var(--sepia-dark);
  text-transform: uppercase;
  margin-bottom: 18px;
}

#s1-intro {
  font-family: 'Special Elite', serif;
  font-size: 24px;
  color: var(--sepia-mid);
  line-height: 1.7;
  margin-bottom: 30px;
}

#s1-legend { margin-top: 28px; }

.legend-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  color: var(--sepia-dark);
  letter-spacing: 1px;
}

.legend-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.allies  { background-color: #C4882A; }
.legend-dot.central { background-color: #5C3D1E; }
.legend-dot.neutral { background-color: #9AABB0; }

#s1-stamp {
  position: absolute;
  width: 320px;
  bottom: 160px;
  left: 55px;
  opacity: 0.5;
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 4;
}

.country-pin {
  position: absolute;
  width: 100px; height: 100px;
  cursor: pointer;
  z-index: 5;
  transform: translate(-50%, -100%);
  transition: transform 0.2s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
}
.country-pin:hover { transform: translate(-50%, -115%) scale(1.2); }
.country-pin img { width: 100%; height: 100%; object-fit: contain; }

#country-popup {
  position: absolute;
  width: 680px;
  height: 500px;
  z-index: 20;
  display: none;
}

.popup-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 110%;
  object-fit: fill;
}

#popup-content {
  position: absolute;
  top: 50px;
  left: 60px;
  right: 70px;
  bottom: 50px;
  overflow: hidden;
}

#popup-side {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 10px;
}

#popup-name {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--sepia-dark);
  margin-bottom: 8px;
  margin-top: 5px;
}

#popup-entry {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  color: var(--sepia-mid);
  margin-top: 8px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

#popup-fact {
  font-family: 'Special Elite', serif;
  font-size: 26px;
  color: var(--sepia-dark);
  line-height: 1.65;
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  color: var(--sepia-dark);
  background: rgba(245,234,215,0.9);
  border: 2px solid var(--sepia-mid);
  border-radius: 50%;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  line-height: 1;
}
.popup-close:hover {
  background: var(--sepia-mid);
  color: var(--cream);
}


/* ============================================================
   SCREEN 2 — THE WAR AT A GLANCE  (tank edition)
   ============================================================ */

#s2-bg-img {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  object-fit: cover;
  filter: sepia(80%) brightness(0.22) contrast(1.2);
}

#s2-bg-overlay {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background: rgba(12, 7, 2, 0.55);
  z-index: 1;
}

#s2-header {
  position: absolute;
  top: 60px;
  left: 0; right: 0;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

#s2-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  letter-spacing: 10px;
  color: var(--sepia-mid);
  margin-bottom: 12px;
}

#s2-title {
  font-family: 'Playfair Display', serif;
  font-size: 100px;
  font-weight: 900;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1;
}

#s2-card {
  position: absolute;
  top: 390px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 560px;
  z-index: 10;
  display: none;
}

#s2-card-content {
  position: absolute;
  top: 60px;
  left: 130px;
  right: 130px;
  bottom: 60px;
  overflow: hidden;
}

#s2-card-date {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  letter-spacing: 6px;
  color: #5C3D1E;
  text-transform: uppercase;
  margin-top: 8px;
}

#s2-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--sepia-dark);
  line-height: 1.05;
  margin-bottom: 10px;
}

#s2-card-desc {
  font-family: 'Special Elite', serif;
  font-size: 32px;
  color: var(--sepia-dark);
  line-height: 1.65;
  opacity: 0.9;
}

#s2-card .section-divider {
  width: 220px;
  margin: 8px 0 14px;
}

#s2-battlefield {
  position: absolute;
  bottom: 120px;
  left: 0;
  width: 2250px;
  height: 260px;
  z-index: 5;
}

#s2-ground-line {
  position: absolute;
  bottom: 120px;
  left: 60px;
  right: 60px;
  height: 6px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--sepia-mid) 3%,
    var(--sepia-mid) 97%,
    transparent 100%
  );
  border-radius: 3px;
  opacity: 0.6;
}

/* Event markers / flags */
.ev-marker {
  position: absolute;
  bottom: 126px;
  width: 60px;
  transform: translateX(-50%);
  opacity: 0.55;
  /* transition: opacity 0.3s; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ev-marker.active {
  opacity: 1;
}

/* Flag image */
.ev-flag-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.ev-marker.active .ev-flag-img {
  filter: drop-shadow(0 2px 8px rgba(200,60,40,0.5));
}

.ev-label {
  margin-top: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  color: var(--cream);
  white-space: nowrap;
  letter-spacing: 1px;
  text-align: center;
}

.ev-marker.active .ev-label {
  opacity: 1;
  font-weight: 600;
}

#s2-hint {
  margin-top: 18px;
}

#s2-hint-text {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  letter-spacing: 5px;
  color: var(--sepia-mid);
  animation: pulse-hint 2.2s ease-in-out infinite;
}

#s2-tank {
  position: absolute;
  bottom: 120px;
  width: 260px;
  height: 120px;
  z-index: 8;
  color: var(--sepia-mid);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.8));
}

#s2-tank img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
}

@keyframes tank-roll {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-3px); }
}

#s2-tank.moving {
  animation: tank-roll 0.18s linear infinite;
}

.s2-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  background: rgba(245,234,215,0.1);
  border: 3px solid rgba(245,234,215,0.35);
  border-radius: 50%;
  font-size: 50px;
  color: var(--cream);
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, opacity 0.3s;
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.s2-arrow:hover {
  background: rgba(245,234,215,0.22);
  border-color: rgba(245,234,215,0.7);
}

.s2-arrow:disabled, .s2-arrow.hidden {
  opacity: 0.18;
  pointer-events: none;
}

#s2-arrow-left  { left: 40px; }
#s2-arrow-right { right: 40px; }

#s2-progress {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--cream);
  opacity: 0.5;
  z-index: 10;
  pointer-events: none;
}

#s2-stamp {
  position: absolute;
  width: 320px;
  bottom: 370px;
  left: 60px;
  opacity: 0.45;
  transform: rotate(6deg);
  pointer-events: none;
  z-index: 6;
}


/* ============================================================
   SCREEN 3 — LIFE IN THE WAR
   ============================================================ */

#s3-bg-img {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  object-fit: cover;
  filter: sepia(90%) brightness(0.38) contrast(1.2);
}

#s3-bg-overlay {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background: rgba(16,9,3,0.72);
  z-index: 1;
}

#s3-panel {
  position: absolute;
  top: 100px;
  left: 70px;
  width: 480px;
  z-index: 2;
}

#s3-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  letter-spacing: 8px;
  color: var(--sepia-mid);
  margin-bottom: 16px;
}

#s3-title {
  font-family: 'Playfair Display', serif;
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 22px;
}

#s3-intro {
  font-family: 'Special Elite', serif;
  font-size: 26px;
  color: var(--sepia-mid);
  line-height: 1.7;
  margin-top: 14px;
}

#s3-tap-hint { margin-top: 50px; }

#s3-tap-text {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  letter-spacing: 6px;
  color: var(--cream);
  animation: pulse-hint 2.2s ease-in-out infinite;
}

#s3-stamp {
  position: absolute;
  width: 320px;
  bottom: 160px;
  left: 60px;
  opacity: 0.45;
  transform: rotate(-7deg);
  pointer-events: none;
  z-index: 4;
}

#s3-grid {
  position: absolute;
  top: 60px;
  left: 620px;
  width: 1560px;
  height: 1380px;
  display: flex;
  flex-wrap: wrap;
  gap: 45px;
  align-content: center;
  justify-content: center;
  z-index: 2;
}

.archive-card {
  width: 440px; height: 440px;
  perspective: 1200px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.card-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.archive-card.flipped .card-inner { transform: rotateY(180deg); }

.card-front, .card-back {
  position: absolute;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border-radius: 3px;
}

.card-front img:first-child {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(35%) brightness(0.88);
  transition: filter 0.3s ease, transform 0.3s ease;
  display: block;
}
/* .archive-card:hover .card-front img:first-child {
  filter: sepia(15%) brightness(1.0);
  transform: scale(1.03);
} */

.card-front-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,16,8,0.92));
  color: var(--cream);
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  text-align: center;
  padding: 32px 16px 16px;
}

.card-back { transform: rotateY(180deg); }

.card-back-bg {
  position: absolute;
  width: 100%; height: 100%;
  object-fit: fill;
  top: 0; left: 0;
}

.card-back-content {
  position: absolute;
  top: 25px; left: 38px; right: 38px; bottom: 35px;
  overflow: hidden;
}

.card-back-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--sepia-dark);
  margin-bottom: 10px;
}

.card-back-divider {
  height: 2px;
  background: var(--sepia-mid);
  opacity: 0.35;
  margin-bottom: 8px;
  border-radius: 2px;
}

.card-back-content p {
  font-family: 'Special Elite', serif;
  font-size: 22px;
  color: var(--sepia-dark);
  line-height: 1.65;
}


/* ============================================================
   BACK BUTTON
   ============================================================ */

#back-btn {
  position: absolute;
  bottom: 50px;
  left: 50px;
  width: 200px;
  height: 70px;
  z-index: 100;
  display: none;
  cursor: pointer;
}

#back-btn-inner {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.7);
  border: 3px solid var(--sepia-mid);
  transition: background 0.2s ease, transform 0.15s ease;
}

#back-btn:hover #back-btn-inner {
  background: var(--sepia-mid);
  transform: scale(1.05);
}

#back-arrow {
  font-size: 32px;
  color: var(--sepia-dark);
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

#back-label {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--sepia-dark);
}

#back-btn:hover #back-arrow,
#back-btn:hover #back-label { color: var(--cream); }


/* ============================================================
   SOLDIER IMAGE
   ============================================================ */

#home-soldier {
  position: absolute;
  height: 800px;
  width: auto;
  bottom: 0;
  right: 0px;
  z-index: 2;
  pointer-events: none;
  filter: sepia(30%) brightness(0.65) contrast(1.1);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 18%);
  mask-image: linear-gradient(to top, transparent 0%, black 18%);
}


/* ============================================================
   TAP HINTS — persistent pulse on screens 1, 2 & 3
   ============================================================ */

@keyframes pulse-hint {
  0%, 100% { opacity: 0.9; }
  50%       { opacity: 0.2; }
}

#s1-tap-hint {
  margin-top: 40px;
}

#s1-tap-text {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  letter-spacing: 5px;
  color: var(--sepia-dark);
  animation: pulse-hint 2.2s ease-in-out infinite;
}