@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto+Mono:wght@400;700&display=swap');

/* ===== COLOR PALETTE ===== */
:root {
  --bg: #f5dca8; /* parchment background */
  --accent: #f28c38; /* orange highlight */
  --accent-dark: #b85c1f; /* deep brown/orange */
  --text: #2e1a09; /* warm dark brown text */
  --dim: #dcb276; /* subtle tan divider */
  --max-width: 1200px;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: 'Roboto Mono', monospace;
  background: linear-gradient(to bottom, #7ec9f3 0%, #f5dca8 100%);
  background-attachment: fixed;
  color: var(--text);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: linear-gradient(to bottom, #e3b268, #d19446);
  border-bottom: 4px solid var(--accent-dark);
  box-shadow: 0 4px 0 var(--accent-dark);
}

header h1 a {
  font-family: 'Press Start 2P', cursive;
  color: #5a3313;
  text-shadow: 1px 1px 0 #fff;
  text-decoration: none;
}

.logo {
  height: 50px;
}

/* ===== NAV ===== */
.navbar {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links:hover {
  color: var(--accent);
}

/* Hamburger / mobile nav styles */
.menu-toggle {
  display: none; /* shown on small screens */
  width: 36px;
  height: 28px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle .bar {
  display: block;
  height: 4px;
  background: var(--text);
  border-radius: 2px;
}

/* When active, show menu on mobile */
.nav-menu.active {
  display: flex;
}

/* ===== FRONT PAGE ===== */
.front-page {
  position: relative;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, #b8f0ff, #fff1d1);
}

.front-page .background-logo {
  opacity: 0.08;
  position: absolute;
  inset: 0;
  width: 80%;
  margin: auto;
  filter: blur(6px);
}

.slogan {
  font-family: 'Press Start 2P';
  color: var(--accent);
  font-size: 1rem;
  line-height: 2rem;
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

/* ===== FLOATING ELEMENTS ===== */
.central-tower,
.green-cube {
  width: 250px;
  max-width: 80%;
  animation: sway 5s ease-in-out infinite;
}

.top-cube {
  position: absolute;
  top: 10%;
  left: 5%;
  animation-delay: 1s;
}

.bottom-cube {
  position: absolute;
  bottom: 10%;
  right: 5%;
  animation-delay: 2s;
}

@keyframes sway {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-5px); }
}

/* ===== GAMES SECTION ===== */
.games {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 2rem;
  background: #fff5d6;
  border: 4px solid var(--accent-dark);
  border-radius: 12px;
  box-shadow: 0 6px 0 var(--accent-dark);
}

.specific-game {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.games-image {
  width: 100%;
  border: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 4px 0 var(--accent-dark);
}

.games-description {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6rem;
  background-color: #fff9e6;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  border: 2px solid var(--dim);
}

.features-list {
  list-style: square;
  margin: 1rem 0 1.5rem 1.5rem;
}

.games-links a {
  color: var(--accent);
  margin-right: 1rem;
  text-decoration: none;
  font-weight: bold;
}

.games-links a:hover {
  text-shadow: 0 0 10px var(--accent);
}

/* ===== TRAILERS ===== */
.trailers {
  background: linear-gradient(to bottom, #f5dca8, #dcb276);
  text-align: center;
  padding: 3rem 1rem;
  border-top: 4px solid var(--accent-dark);
  border-bottom: 4px solid var(--accent-dark);
}

.trailer-header h2 {
  font-family: 'Press Start 2P';
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.tribes-trailer {
  width: 80%;
  border: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 4px 0 var(--accent-dark);
}

.trailer-stars img {
  width: 50px;
  margin: 0.5rem;
  animation: blink 3s infinite alternate;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== ABOUT US ===== */
.about {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  background: #fff5d6;
  border: 4px solid var(--accent-dark);
  border-radius: 12px;
  box-shadow: 0 6px 0 var(--accent-dark);
}

.about-description {
  max-width: 720px;
}

.about h2 {
  font-family: 'Press Start 2P';
  color: var(--accent);
  margin-bottom: 1rem;
}

.profile-picture {
  width: 100px;
  border: 3px solid var(--accent-dark);
  border-radius: 6px;
  background: #fff1d1;
}

.profile-description {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.team {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 3.5rem;
}

.team-title {
  font-family: 'Press Start 2P';
  color: var(--accent);
  letter-spacing: 0.2rem;
  text-align: center;
}

.team-members {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 180px;
}

/* ===== NEWS ===== */
.news-area {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to bottom, #d19446, #b85c1f);
  border-top: 4px solid #8c4413;
  font-family: 'Press Start 2P';
  color: #fffbe3;
  line-height: 1.6rem;
  box-shadow: inset 0 4px 0 rgba(0,0,0,0.2);
}

/* ===== BUTTONS ===== */
a.button {
  display: inline-block;
  background: var(--accent);
  border: 3px solid var(--accent-dark);
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: 'Press Start 2P';
  text-decoration: none;
  box-shadow: 0 3px 0 var(--accent-dark);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--accent-dark);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(to top, #dcb276, #b97a40);
  border-top: 4px solid #a16028;
  color: var(--text);
  font-family: 'Press Start 2P';
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-shadow: 0 0 10px var(--accent);
}

/* ===== RESPONSIVE ===== */
/* Tablet / small desktop adjustments */
@media (max-width: 900px) {
  .about {
    padding: 2rem 1rem;
  }

  .front-page .background-logo {
    width: 100%;
  }

  .games, .about {
    margin: 2rem 1rem;
  }

  .team-members {
    gap: 1rem;
  }

  /* Reduce large floating illustrations slightly */
  .central-tower,
  .green-cube {
    width: 200px;
    max-width: 45%;
  }

  .tribes-trailer {
    width: 90%;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 600px) {
  /* Make page background perform better on mobile */
  body {
    background-attachment: scroll;
  }

  /* Stack header and center content */
  header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
  }

  header h1 a {
    font-size: 1.05rem;
    text-align: center;
  }

  .logo {
    height: 40px;
  }

  /* Nav becomes vertical and touch-friendly */
  .navbar {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: auto;
  }

  .nav-links {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
  }

  /* Reduce hero padding and hide very large decorative art */
  .front-page {
    padding: 2rem 0.8rem;
  }

  .front-page .background-logo,
  .central-tower,
  .green-cube {
    display: none; /* keep the page focused and fast on phones */
  }

  .slogan {
    font-size: 0.85rem;
    line-height: 1.4rem;
    margin-top: 1rem;
  }

  /* Games and content should be edge-to-edge with comfortable padding */
  .games,
  .about {
    margin: 1rem;
    padding: 1rem;
  }

  .games-description {
    font-size: 0.95rem;
    padding: 0.9rem;
  }

  .games-image,
  .tribes-trailer {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .trailer-stars img {
    width: 36px;
    margin: 0.4rem;
  }

  /* Team/profile sizing */
  .profile-picture {
    width: 80px;
  }

  .member {
    max-width: 140px;
  }

  .team-members {
    flex-direction: column;
    gap: 1rem;
  }

  /* Make buttons large enough for thumbs */
  a.button {
    display: block;
    width: calc(100% - 2rem);
    max-width: 420px;
    margin: 0.5rem auto;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    text-align: center;
  }

  /* Footer compact */
  footer {
    padding: 1.2rem;
    font-size: 0.75rem;
  }

  /* Improve readability for small screens */
  body,
  .games-description,
  .about-description,
  .profile-description {
    line-height: 1.5rem;
  }
  /* ===== MOBILE POLISH (max-width: 600px) ===== */
@media (max-width: 600px) {
  body {
    background: linear-gradient(to bottom, #7ec9f3 0%, #f5dca8 100%);
    background-attachment: scroll;
    font-size: 0.95rem;
    line-height: 1.5rem;
    overflow-x: hidden;
  }

  /* HEADER */
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    box-shadow: 0 3px 0 var(--accent-dark);
  }

  header h1 a {
    font-size: 0.9rem;
    text-shadow: 0.5px 0.5px 0 #fff;
  }

  .logo {
    height: 38px;
  }

  /* NAVIGATION */
  .navbar {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  .nav-links {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(2px);
    display: block;
    width: 80%;
    font-weight: 700;
  }

  .nav-links:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.6);
  }

  /* HERO / FRONT PAGE */
  .front-page {
    padding: 2rem 1rem;
  }

  .background-logo,
  .central-tower,
  .green-cube {
    display: none;
  }

  .slogan {
    font-size: 0.8rem;
    line-height: 1.4rem;
    margin-top: 1rem;
  }

  /* GAMES SECTION */
  .games {
    margin: 1.2rem 0.8rem;
    padding: 1rem;
    border-radius: 10px;
  }

  .games-image {
    width: 100%;
    border-width: 3px;
  }

  .games-description {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  /* TRAILERS */
  .trailers {
    padding: 2rem 0.8rem;
  }

  .tribes-trailer {
    width: 100%;
    border-width: 3px;
  }

  .trailer-stars img {
    width: 32px;
  }

  /* ABOUT */
  .about {
    margin: 1rem;
    padding: 1rem;
  }

  .profile-picture {
    width: 80px;
    border-width: 2px;
  }

  .profile-description {
    font-size: 0.85rem;
  }

  .team-members {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  /* BUTTONS */
  a.button {
    width: 90%;
    margin: 0.6rem auto;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  /* FOOTER */
  footer {
    padding: 1rem;
    font-size: 0.7rem;
    line-height: 1.2rem;
  }
}
}