/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0f0f0f;
  color: #fff;
  line-height: 1.6;
}

/* =========================
   HEADER
========================= */

header {
  width: 100%;
  padding: 20px 40px;
  background: #000;
  border-bottom: 1px solid #222;
}

/* =========================
   PARALLAX
========================= */

.parallax {
  height: 70vh;
  background-image: url("img/theater-stage.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.hero p {
  color: #ddd;
}

/* =========================
   SIDE BY SIDE CONTAINERS (FIXED)
========================= */

.wrap {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 50vh;
}

.box {
  flex: 1;
  padding: 50px;
  min-width: 0; /* prevents overflow breaking layout */
}

#containerA {
  background: #1a1a1a;
  border-right: 1px solid #2a2a2a;
}

#containerB {
  background: #222;
}

/* images in container B */
#containerB img {
  width: 100%;
  max-width: 500px;
  display: block;

  margin: 15px 0;
  padding: 10px;

  background: #111;
  border-radius: 10px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* =========================
   TIMELINE
========================= */
.timeline {
  position: relative;

  display: flex;
  align-items: center;
  gap: 30px;

  width: 100%;              /* full container width */
  padding: 70px 40px;

  background: #000;

  overflow-x: auto;
  overflow-y: hidden;

  justify-content: center;
}


/*
.timeline {
  position: relative;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 30px;

  width: 100vw;   
  max-width: 100%;
  
  padding: 70px 40px;
  margin: 0 auto; 

  background: #000;

  overflow-x: auto;
  overflow-y: hidden;
}
*/

/* center line */
.timeline::before {
  content: "";
  position: absolute;

  top: 50%;
  left: 0;
  right: 0;

  height: 4px;
  background: linear-gradient(90deg, #00d8ff, #0080ff);

  transform: translateY(-50%);
  z-index: 1;
}

/*
.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 4px;
  background: linear-gradient(90deg, #00d8ff, #0080ff);
  transform: translateY(-50%);
  z-index: 1;
} */

/* =========================
   NODE BASE
========================= */

.node {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;

  width: 18px;
  height: 18px;

  border-radius: 50%;
  border: 3px solid #00d8ff;
  background: #0f0f0f;

  cursor: pointer;
  transition: 0.25s ease;
}

/* label under node */
.node span {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
  letter-spacing: 0.5px;
}

/* =========================
   DECADES / SEASONS (PILLS)
========================= */

.node.decade,
.node.season {
  width: auto;
  height: auto;

  padding: 10px 16px;
  border-radius: 20px;

  background: #111;
  border: 2px solid #00d8ff;
}

/* keep text centered inside pill nodes */
.node.decade span,
.node.season span {
  position: static;
  transform: none;
}

/* =========================
   HOVER / ACTIVE
========================= */

.node:hover {
  transform: scale(1.15);
  background: #00d8ff;
}

.node.active {
  background: #00d8ff;
  box-shadow: 0 0 12px rgba(0,216,255,0.7);
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 25px;
  text-align: center;

  background: #000;
  border-top: 1px solid #222;

  color: #888;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .wrap {
    flex-direction: column;
  }

  .box {
    padding: 20px;
  }

  .parallax {
    background-attachment: scroll;
    height: 55vh;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .timeline {
    padding: 40px 20px;
    gap: 35px;
  }

  .node:hover {
    transform: none;
  }

  .node span {
    font-size: 0.75rem;
  }

}