/* Chess container styling */
.chess-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #000; /* Box around chess game */
    padding: 20px;
    width: 520px; /* Adjusted width */
    margin: 0 auto;
    background-color: #f4f4f4; /* Background color inside the box */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

/* Center the "Chess Game" title */
h1 {
    text-align: center;
    font-size: 36px; /* Adjust font size if needed */
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333; /* Optional color change */
}

/* Turn indicator styling */
.turn-indicator {
    font-size: 20px; /* Slightly smaller font */
    font-weight: bold;
    margin-bottom: 15px;
    color: #333; /* Dark text for readability */
    text-align: center;
}

/* Chess logo styling */
.chess-logo img {
    width: 60px; /* Increased size slightly for better visibility */
    margin-bottom: 15px; /* Space between logo and board */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Chessboard */
#chess-board {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    grid-template-rows: repeat(8, 60px);
    width: 484px;
    height: 484px;
    margin: 20px 0;
    border: 2px solid #000; /* Border around the chessboard */
}

/* Adjusted basic styling for chess squares */
.square {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.square.white {
    background-color: #f0d9b5;
}

.square.black {
    background-color: #b58863;
}

/* Chess piece styling */
.chess-piece {
    font-size: 36px;
    cursor: pointer;
}

/* Selection highlighting */
.piece-selected {
    outline: 3px solid red;
}

.square-selected {
    outline: 3px solid blue;
}

.capturable-selected {
    outline: 3px solid green;
}
