/* ==============================
   Base Styles
============================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==============================
   Navbar
============================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 10px 20px;
  color: #333;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar a.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 20px;
}

.navbar a.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #333;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
  color: #ff9800;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* ==============================
   Responsive Mobile Menu
============================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #f9f9f9;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .nav-links a {
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ==============================
   Container
============================== */
.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

h1, h2, p {
  text-align: center;
}

.game-info {
  margin: 20px 0;
}

/* ==============================
   Buttons
============================== */
.center-button {
  text-align: center;
  margin: 30px 0;
}

.center-button button {
  padding: 15px 30px;
  font-size: 18px;
  background-color: #ff9800;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.center-button button:hover {
  background-color: #e68900;
}

/* ==============================
   Footer
============================== */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
  font-size: 14px;
}

footer a {
  color: #ff9800;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ==============================
   Merchandise Section
============================== */
.merchandise {
  text-align: center;
  padding: 20px;
  background: #fff;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.merch-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.merch-item {
  width: 150px;
  text-align: center;
  margin: 10px;
}

.merch-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.buy-btn {
  display: inline-block;
  padding: 8px 12px;
  margin-top: 5px;
  background: #ff9800;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.buy-btn:hover {
  background: #e68900;
}

/* ==============================
   Gameplay Section
============================== */
.gameplay-section {
  padding: 20px;
  background: #fff;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.gameplay-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gameplay-item {
  text-align: center;
}

.gameplay-item img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.gameplay-item figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

/* ==============================
   Popup
============================== */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  position: relative;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.popup-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.close-button {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* ==============================
   Download Page Specific Styles
============================== */
.download-img {
  margin-top: 20px;
}

.download-img img {
  width: 300px;
  max-width: 90%;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease-in-out;
}

.download-img img:hover {
  transform: scale(1.05);
}
