html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;

  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.top-nav {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem 1rem;
  border-radius: 10px;
}

.menu-item {
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.menu-item:hover {
  color: #ffdd57;
  transform: scale(1.2);
}

:root {
  --fade-duration: 1.6s;
}

.page {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  scroll-snap-align: start;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background: rgba(0,0,0,0.3);*/
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  padding: 1rem 2rem;
}

p2{
  /*font-family: "Helvetica", "Arial", fantasy;*/
  font-family: "Luminari", "Arial", fantasy;
  overflow-wrap: anywhere;
}

.page3 {
  position: relative;
  background: rgba(22,22,22,1);
}

.page3 .army-visual {
  pointer-events: auto;
  position: relative;
  height: 60vh;      /* reduced from 60vh */
  min-height: 250px; /* reduced from 400px */
  overflow: hidden;
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
}

.page3 .army-visual__background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;       /* shrunk width */
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none; /* background does not block clicks */
}

.page3 .army-visual__foreground {
  position: absolute;
  bottom: 1;
  left: 50%;
  transform: translateX(-50%);
  max-height: 90%;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* NAVIGATION */
.page3 .army-nav {
  pointer-events: auto;
  position: absolute; /* relative to page3 */
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 10;
}

.page3 .army-nav__list {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;

  -ms-overflow-style: none;
  scrollbar-width: none;
}

.page3 .army-nav__list::-webkit-scrollbar {
  display: none;
}

.page3 .army-nav__item {
  background: none;
  border: none;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: #666;
  position: relative;
  transition: color 0.3s;
}

.page3 .army-nav__item:hover {
  color: #FFFFFF;
}
.page3 .army-nav__item.active {
  color: #FFFFFF;
}
.page3 .army-nav__item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.75rem;
  height: 2px;
  background-color: #FFFFFF;
}

/* Arrows */
.page3 .army-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  z-index: 20;
  border-radius: 5px;
  user-select: none;
  transition: background 0.3s, color 0.3s;
}
.page3 .army-arrow:hover {
  background: rgba(0,0,0,0.8);
  color: #ffdd57;
}
.page3 .army-arrow-left { left: 500px; }
.page3 .army-arrow-right { right: 500px; }

/* Description */
.page3 .army-description {
  margin-top: 90px;
  text-align: center;
  color: #FFFFFF;
  font-size: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.page3 .army-description__text { transition: opacity 0.3s ease; }



#audio-control {
  display: none;
}

#audio-toggle {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  cursor: pointer;
  z-index: 1000;
}

.nav-dots {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: rgba(255,255,255,1);
  transform: scale(1.3);
}
