:root {
    --primary-color: #2196f3;
    --hover-color: #1976d2;
    --text-color: white;
    --nav-height: 60px;
    --board-size: min(70vw, 500px);
    --square-size: calc(var(--board-size) / 8);
    --light-square: #f0d9b5;
    --dark-square: #b58863;
}

.game-container {
    margin-top: var(--nav-height);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.board-container {
    position: relative;
    padding: 20px 20px 35px 35px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.board-wrapper {
    display: flex;
    gap: 10px;
}

.coordinates {
    display: flex;
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
    position: absolute;
}

.rank-coords {
    flex-direction: column-reverse;
    justify-content: space-around;
    height: var(--board-size);
    left: 10px;
    top: 20px;
}

.file-coords {
    justify-content: space-around;
    width: var(--board-size);
    bottom: 10px;
    left: 35px;
}

.chessboard {
    width: var(--board-size);
    height: var(--board-size);
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border: 2px solid #333;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    position: relative;
}

.square {
    width: var(--square-size);
    height: var(--square-size);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.square.light {
    background-color: var(--light-square);
}

.square.dark {
    background-color: var(--dark-square);
}

.square.selected {
    background-color: #7fb2e5;
}

.square.valid-move {
    position: relative;
}

.square.valid-move::after {
    content: '';
    position: absolute;
    width: 25%;
    height: 25%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.piece {
    width: 90%;
    height: 90%;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.game-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: start;
    width: 100%;
    max-width: var(--board-size);
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 500;
}

.player.active {
    background-color: var(--primary-color);
    color: white;
}

/* Adicionar estilos para o botão de sortear cores */
.start-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.start-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.start-button i {
    font-size: 1.4rem;
}

.controls {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ... resto dos estilos para botões, modal etc ... */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 90%;
    width: 400px;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#colorResult {
    font-size: 1.2rem;
    line-height: 2;
    margin: 20px 0;
}

.modal-content button {
    padding: 12px 25px;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.modal-content button:hover {
    background-color: var(--hover-color);
}

.modal-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

/* Adicionar estilos para os botões de desistência */
.surrender-button {
    padding: 8px 15px;
    font-size: 0.9rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.surrender-button:hover {
    background-color: #c82333;
}

.surrender-button i {
    font-size: 0.9rem;
}

/* Ajustar responsividade */
@media (max-width: 768px) {
    :root {
        --board-size: 85vw;
    }

    .game-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .player-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .piece {
        font-size: 2rem;
    }

    .coordinates {
        font-size: 0.8rem;
    }

    .start-button {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    .start-button i {
        font-size: 1.2rem;
    }
} 