/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at top, #111 0%, #000 60%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
}

/* HEADER */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.title {
  font-family: 'Orbitron', sans-serif;
  font-size: 6rem;
  letter-spacing: 2px;
}

.buffalo {
  color: white;
  -webkit-text-stroke: 2px blue;
  margin-right: 10px;
}

.bills {
  color: white;
  -webkit-text-stroke: 2px red;
}

.subtitle {
  margin-top: -20px;
  font-size: 1.2rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
  color: transparent;
  -webkit-text-stroke: 1px #1e90ff;
  position: relative;
  display: inline-block;
}

.subtitle::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  margin: 8px auto 0;
  background: linear-gradient(to right, blue, red);
  border-radius: 2px;
}

/* ERA LAYOUT */
.era {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 80px 10%;
  gap: 80px;
}

.reverse {
  flex-direction: row-reverse;
}

.text {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* alternating colors */
.era:nth-of-type(odd) .text h2 {
  color: #1e90ff;
}

.era:nth-of-type(even) .text h2 {
  color: #ff3b3b;
}

.text p {
  margin-bottom: 20px;
  color: #ddd;
}

.text ul {
  padding-left: 20px;
}

.text ul li {
  margin-bottom: 10px;
  color: #ccc;
}

/* IMAGE BASE */
.image {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
}

.image img {
  width: auto;
  height: auto;
  transition: transform 0.3s ease;
}

/* ========================= */
/* 🔥 CUSTOM IMAGE CONTROLS */
/* ========================= */

/* OJ Simpson */
.img-simpson {
  max-height: 510px;
  transform: translateX(-180px) translateY(80px);
}

/* Josh Allen */
.img-allen {
  max-height: 610px;
}

/* ANIMATIONS */
.hidden {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.credits {
  text-align: center;
  font-size: 0.7rem;
  color: #aaa;
  padding: 30px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 50px;
}

.credits p {
  max-width: 900px;
  margin: auto;
  line-height: 1.5;
}

/* MOBILE */
@media (max-width: 768px) {
  .era {
    flex-direction: column;
    padding: 50px 20px;
  }

  .reverse {
    flex-direction: column;
  }

  .title {
    font-size: 2.2rem;
  }

  .image img {
    height: auto; /* prevents weird stretching on mobile */
  }
}