/* Definindo variáveis de cor para fácil customização */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #ecf0f1;
    --font-color: #34495e;
    --card-background: #ffffff;
}

/* Reset básico e fontes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--font-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent; /* Remove o brilho ao tocar em links */
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

main {
    flex: 1; /* Ocupa o espaço restante */
    padding: 1rem;
    text-align: center;
}

h2 {
    margin-bottom: 1.5rem;
}

/* Grid para a lista de jogos */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.game-card {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--font-color);
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.game-card:active {
    transform: translateY(-2px); /* Efeito de clique */
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #95a5a6;
}