body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
}

#game-info {
    margin-bottom: 20px;
    text-align: center;
}

#board-container {
    width: 400px; /* Adjust size as needed */
    height: 400px;
    border: 5px solid #333;
}

#board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    height: 100%;
}

.square {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px; /* For potential king symbol */
    font-weight: bold;
}

.light {
    background-color: #f0d9b5; /* Light wood */
}

.dark {
    background-color: #b58863; /* Dark wood */
}

.piece {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.3), 0 2px 3px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex; /* For centering king symbol */
    justify-content: center;
    align-items: center;
    color: gold; /* King symbol color */
}

.player1 {
    background-color: #ff4136; /* Red */
}

.player2 {
    background-color: #333333; /* Black */
}

.king::after {
    content: '👑'; /* King symbol */
    font-size: 60%; /* Adjust size relative to piece */
}

.selected {
    border: 3px solid #0074d9; /* Blue border for selected piece */
    box-sizing: border-box; /* Include border in size */
}

.valid-move {
    background-color: rgba(0, 255, 0, 0.3); /* Light green highlight */
    border-radius: 10%;
    box-sizing: border-box;
}

#message {
    color: green;
    font-weight: bold;
    min-height: 1.2em; /* Prevent layout shift */
}

#restart-button {
    padding: 8px 15px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 10px;
}