:root {
  --bg-start: #7a7a7a;
  --bg-end: #5f5f5f;
  --white: #ffffff;
  --accent: #d0d0d0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
  transition: all 0.3s ease;
}

body {
  background: linear-gradient(to bottom, var(--bg-start), var(--bg-end));
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

header { 
  text-align: center;
  margin-top: 30px;
  animation: fadeIn 0.8s ease forwards;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

header p {
  font-size: 1rem;
  color: var(--accent);
  margin-top: 5px;
}

.content-box {
  width: 100%;
  max-width: 800px;
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 50px;
  padding: 30px;
  margin-top: 40px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideUp 0.8s ease forwards;
}

.games {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.game {
  border: 2px solid var(--white);
  border-radius: 25px;
  width: 220px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.game-name {
  margin-top: 10px;
  font-weight: 600;
}

.game-desc {
  font-size: 0.8rem;
  color: var(--accent);
}

.page-content {
  max-width: 600px;
  text-align: center;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 30px;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  animation: fadeIn 1s ease forwards;
}

nav a {
  text-decoration: none;
  color: var(--white);
  padding: 12px 30px;
  border: 2px solid var(--white);
  border-radius: 20px;
  background-color: transparent;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

a.nav-button {
  margin-top: 10px;
  padding: 12px 30px;
  border: 2px solid var(--white);
  border-radius: 20px;
  background-color: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

a.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.link-group a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.link-group a:hover {
  text-decoration: underline;
  color: var(--white);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .games {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .game {
    width: 80%;
    max-width: 300px;
    height: 200px;
  }
}
