body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #ff4d4d, #660000);
    margin: 0;
    padding: 0;
    color: #fff;
}

/* Cabeçalho estilizado */
header {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 26px 0;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Área dos jogos */
.games {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

/* Botões modernos */
.games button {
    background: #fff;
    color: #660000;
    border: none;
    border-radius: 12px;
    padding: 15px 35px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.games button:hover {
    background: #ff4d4d;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
#chessBoard .cell {
    font-weight: bold;
    font-size: 36px; /* deixar peças mais visíveis */
}
#gameContainer {
    display: flex;
    flex-direction: column; /* organiza verticalmente o título, tabuleiro e botão */
    align-items: center;    /* centraliza horizontalmente */
    justify-content: center; /* centraliza verticalmente se o container tiver altura suficiente */
    min-height: 80vh;        /* faz o container ocupar grande parte da tela para centralização vertical */
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px); /* 3 colunas de 100px */
    grid-template-rows: repeat(3, 100px);    /* 3 linhas de 100px */
    gap: 5px;                                 /* espaço entre células */
    margin-top: 20px;                         /* distância do título */
}

.board div {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    cursor: pointer;
    border: 2px solid #000;
}