/*B"H
*/

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #2c2f33;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

#message {
overflow-y: scroll;
border:1px solid black;
padding: 6px;
max-height: 40px;
white-space:pre-wrap;

}
.hidden {
display: none;
}
#gameContainer {
    position: relative;
    margin-bottom: 60px; /* Space for the message div */
}
#chessContainer, .menu {
    display: none; /* Hidden by default */
}
.menu {
    flex-direction: column;
}
.menu-button {
    padding: 15px 30px;
    font-size: 20px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s;
    margin: 10px;
    width: 250px;
}
.menu-button:hover {
    background-color: #45a049;
}
#message {
    position: absolute;
    bottom: -50px; /* Positioned below the container */
    left: 0;
    width: 100%;
    min-height: 1.5em;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}
#gameOverOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
#gameOverText {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000;
}

.captured-pieces-container {
    height: 90px; /* Increased height for two rows */
    width: 100%; /* Use full width up to max-width */
    max-width: 500px;
    padding-left: 10px;
    box-sizing: border-box;
    font-size: 28px;
    color: #ccc;
    /* overflow-x: scroll; <-- REMOVED */
    margin: 5px 0;
    display: flex; /* Helps center the canvas */
    justify-content: center;
}





