@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Quattrocento+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --primary: #fccc30;  /* yellow */
  --accent: #3498db;   /* playful blue */
  --dark: #2c3e50;
  --light: #f5f5f5;
}

/* Base */
body {
  margin: 0;
  min-height: 100vh;
  padding-top: 5rem;
  display: flex;
  flex-direction: column;
  background: var(--light);
  font-family: "Quattrocento Sans", Arial, sans-serif;
  color: var(--dark);
  text-align: center;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 2rem;
  letter-spacing: 0.5px;
}

/* Navbar */
nav {
  background: var(--primary);
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  gap: 4rem;
}

.nav-logo {
  display: flex;
  justify-content: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-logo img:hover {
  transform: scale(1.1);
}

nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.6px;
  padding: 0.6rem 1.2rem;
  position: relative;
  border-radius: 8px;
  transition: color 0.25s ease, transform 0.25s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 70%;
  height: 2px;
  background: var(--dark);
  transition: transform 0.3s ease;
}

nav a:hover {
  transform: translateY(-2px);
}

nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Main container */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Game Items */
.game-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Checkerboard alternation */
.game-item:nth-child(even) {
  flex-direction: row-reverse;
}

.game-image, .game-description {
  flex: 1;
}

.game-image {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px;
}

.game-image img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.game-image img:hover {
  transform: scale(1.05);
}

.game-description {
  text-align: center;
  max-width: 400px;
}

.game-description h2 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

.game-description p {
  color: #666;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
}

.play-button {
  background: var(--primary);
  color: var(--dark);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(252, 204, 48, 0.3);
}

.play-button:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(252, 204, 48, 0.4);
}

/* Footer */
footer {
  margin-top: auto;
  width: 100%;
  background: var(--dark);
  color: var(--light);
  padding: 2.5rem 1.5rem 1.25rem;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

.footer-top {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.brand .brand-name {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.brand .brand-name span { color: var(--primary); }
.brand .brand-tagline { color: #c9d2da; margin: 0 0 0.75rem; font-size: 0.95rem; }

.social-links { display: flex; gap: 0.75rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  transition: background 0.25s ease, transform 0.25s ease;
}
.social-link:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

.subscribe-form { display: flex; gap: 0.5rem; }
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--light);
  outline: none;
}
.subscribe-form input::placeholder { color: #c9d2da; }
.subscribe-form button {
  background: var(--primary);
  color: var(--dark);
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 12px rgba(252, 204, 48, 0.3);
}
.subscribe-form button:hover { transform: translateY(-2px); background: #e6b800; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.footer-bottom p { margin: 0; }
.back-to-top { opacity: 0.85; }
.back-to-top:hover { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }
  
  .nav-logo img {
    height: 32px;
  }
  .game-item {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem;
  }
  .game-image {
    max-width: 250px;
  }
  .game-description h2 {
    font-size: 1.5rem;
  }
  .game-description p {
    font-size: 1rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .subscribe-form { flex-direction: column; }
  .subscribe-form button { width: 100%; }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .game-item {
    padding: 1rem;
  }
  .game-image {
    max-width: 200px;
  }
  .game-description h2 {
    font-size: 1.3rem;
  }
  .play-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}
