:root {
  --primary: #E4572E;
  --secondary: #1789be;
  --accent: #66585e;
  --text: #222;
}

body {
    background-color: #2c2a30;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  color: var(--text);
}
@media (min-width: 85rem) {
  .games-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 4px solid var(--secondary);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: relative;
  /* Remove duplicate background and box-shadow from previous .game-card if present */
}

.game-release-date {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: bold;
  background: #fff;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  z-index: 2;
  pointer-events: none;
}

.game-card h3,
.game-card p {
    color: var(--text);
    margin-bottom: 0.1rem;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
  text-align: center;
}

h2, h1 {
    color: var(--primary);
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.limited-width {
    max-width: 500pt;
}

.outline-nav {
  position: fixed;
  top: 4rem;
  left: 2rem;
  z-index: 100;
  background: #222c;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-size: 1rem;
  min-width: 140px;
}

.outline-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.outline-nav li {
  margin-bottom: 1rem;
}

.outline-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.outline-nav a:hover {
  color: var(--secondary);
}

/* Responsive: hide outline on small screens */
@media (max-width: 900px) {
  .outline-nav {
    display: none;
  }
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 200;
  background: #222c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.header-top-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-title {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--primary);
}

.header-nav {
  margin-left: auto;
}

.header-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
  font-size: 1.1rem;
}

.header-nav a:hover {
  color: var(--primary);
}

/* Responsive: stack nav on small screens */
@media (max-width: 900px) {
  .main-header {
    height: 4rem;
  }

  .nav-mobile {
    display: none;
    width: 100%;
    background: #222c;
    position: absolute;
    top: 4rem;
    left: 0;
    padding: 1rem;
  }

  .nav-mobile.show {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-mobile ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
    margin: 0;
    padding: 0;
  }

  .header-nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .header-nav {
    margin-left: 0;
  }
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 2rem;
  top: 1rem;
}

.hamburger-menu span {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 10px;
  transition: all 0.3s linear;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 900px) {
  .hamburger-menu {
    display: flex;
  }

  .nav-mobile {
    display: none;
    width: 100%;
  }

  .nav-mobile.show {
    display: flex;
  }

  .header-nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .main-header {
    padding: 1rem 2rem;
  }
}

/* Add margin to main content to avoid header overlap */
main.container {
  margin-top: 4.0rem;
}

:target {
  scroll-margin-top: 4.5rem;
}

.icon-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Mobile social icons */
.mobile-social {
  display: none;
  justify-content: center;
  margin: 2rem 0 1rem;
}

.mobile-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-social li {
  list-style: none;
  display: inline-block;
}

.mobile-social a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-social a:hover {
  color: var(--primary);
}

@media (max-width: 600px) {
  .header-top-row .icon-nav {
    display: none;
  }

  .mobile-social {
    display: flex;
  }

  .nav-mobile .icon-nav {
    justify-content: center;
    margin: 1rem 0;
  }

  .header-top-row {
    width: 100%;
    justify-content: center;
  }
}
