body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  text-align: center;
  padding: 40px 20px;
  background: #333;
  color: white;
}

.site-header h1 {
  margin: 0;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.site-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1em;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  flex-grow: 1;
}

.game-category-section {
  margin: 40px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.category-header {
  background: linear-gradient(45deg, #2c3e50, #3498db);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-header h2 {
  margin: 0;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-header .toggle-icon {
  color: white;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.category-header .toggle-icon.collapsed {
  transform: rotate(-90deg);
}

.games-grid {
  max-height: none;
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
}

.games-grid.collapsed {
  max-height: 0 !important;
  padding: 0;
}

.game-category-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding: 10px 20px;
  background: linear-gradient(45deg, #2c3e50, #3498db);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-category-section h2 i {
  font-size: 24px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.game-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.game-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #4CAF50;
  transition: transform 0.3s ease;
}

.snake-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.game-card:hover .game-icon {
  transform: rotate(15deg);
}

.game-card h2 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 24px;
}

.game-card p {
  margin: 0;
  color: #666;
  line-height: 1.5;
  font-size: 16px;
}

.site-footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
  margin-top: auto;
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .game-card {
    padding: 20px;
  }
}