/* style/game-history.css */
.page-game-history {
  color: #333333; /* Default dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-game-history__hero-section {
  background-color: #f8f8f8;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-game-history__hero-content {
  max-width: 900px;
}

.page-game-history__hero-title {
  font-size: 3.2em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-game-history__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

.page-game-history__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-game-history__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-game-history__button--register {
  background-color: #FFFFFF; /* White for Register */
  color: #000000;
  border: 2px solid #000000;
}

.page-game-history__button--register:hover {
  background-color: #e0e0e0;
}

.page-game-history__button--download,
.page-game-history__button--play-now,
.page-game-history__button--join-community {
  background-color: #FCBC45; /* Yellow for Login/Download/Play */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-game-history__button--download:hover,
.page-game-history__button--play-now:hover,
.page-game-history__button--join-community:hover {
  background-color: #e6a73c;
  border-color: #e6a73c;
}

.page-game-history__hero-image-container {
  max-width: 100%;
}

.page-game-history__hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

.page-game-history__section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-game-history__section:nth-of-type(even) {
  background-color: #f0f0f0;
}

.page-game-history__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-game-history__heading {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-game-history__paragraph {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 20px;
  max-width: 900px;
  text-align: justify;
}

.page-game-history__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  min-width: 200px;
  min-height: 200px;
}

.page-game-history__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  max-width: 45%;
}

.page-game-history__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  max-width: 45%;
}

.page-game-history__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-history__origin .page-game-history__container,
.page-game-history__evolution .page-game-history__container,
.page-game-history__cultural-impact .page-game-history__container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.page-game-history__origin .page-game-history__paragraph,
.page-game-history__evolution .page-game-history__paragraph,
.page-game-history__cultural-impact .page-game-history__paragraph {
  flex: 1;
  min-width: 45%;
}

.page-game-history__timeline {
  max-width: 900px;
  margin: 40px auto;
  position: relative;
  padding: 20px 0;
}

.page-game-history__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #FCBC45;
  transform: translateX(-50%);
}

.page-game-history__timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding-left: 30px;
}

.page-game-history__timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 0;
  padding-right: 30px;
  text-align: right;
}

.page-game-history__timeline-item::before {
  content: '';
  position: absolute;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #000000;
  border: 4px solid #FCBC45;
  z-index: 1;
}

.page-game-history__timeline-item:nth-child(odd)::before {
  left: calc(100% - 10px);
  transform: translateX(-50%);
}

.page-game-history__timeline-item:nth-child(even)::before {
  right: calc(100% - 10px);
  transform: translateX(50%);
}

.page-game-history__timeline-year {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-game-history__cta-content {
  text-align: center;
}

.page-game-history__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-history__hero-title {
    font-size: 2.8em;
  }

  .page-game-history__heading {
    font-size: 2em;
  }

  .page-game-history__origin .page-game-history__container,
  .page-game-history__evolution .page-game-history__container,
  .page-game-history__cultural-impact .page-game-history__container {
    flex-direction: column;
    align-items: center;
  }

  .page-game-history__image--left,
  .page-game-history__image--right {
    float: none;
    margin: 20px auto;
    max-width: 80%;
  }

  .page-game-history__paragraph {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-game-history {
    padding-top: var(--header-offset, 120px);
  }

  .page-game-history__hero-section {
    padding: 60px 15px;
  }

  .page-game-history__hero-title {
    font-size: 2.2em;
  }

  .page-game-history__hero-description {
    font-size: 1em;
  }

  .page-game-history__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-history__button {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
  }

  .page-game-history__section {
    padding: 40px 15px;
  }

  .page-game-history__heading {
    font-size: 1.8em;
  }

  .page-game-history__paragraph {
    font-size: 0.95em;
  }

  .page-game-history__timeline::before {
    left: 20px;
  }

  .page-game-history__timeline-item {
    width: 100%;
    padding-left: 50px;
  }

  .page-game-history__timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }

  .page-game-history__timeline-item::before {
    left: 10px;
    transform: translateX(0);
  }

  .page-game-history__timeline-item:nth-child(odd)::before,
  .page-game-history__timeline-item:nth-child(even)::before {
    right: auto;
  }

  .page-game-history__image {
    max-width: 100%;
    height: auto;
  }

  /* Enforce max-width for all images in content area to prevent overflow */
  .page-game-history img {
    max-width: 100%;
    height: auto;
  }
}