body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#board-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

#board {
    display: grid;
    grid-template-columns: repeat(8, 50px);
    grid-template-rows: repeat(8, 50px);
}

.square {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
}

.white {
    background-color: #F0D9B5;
}

.black {
    background-color: #B58863;
}

.notation-label {
    position: absolute;
    font-size: 14px;
    text-align: center;
    width: 50px;
    height: 20px;
    color: #000;
}

.row-label {
    transform: translate(-20px, 15px);
}

.col-label {
    transform: translate(0px, 5px);
}

#info {
    margin-top: 40px;
    text-align: center;
}

#mode-buttons {
    margin-top: 15px;
}

button {
    font-size: 14px;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

#easy-mode {
    background-color: #D0E9F5;
}

#challenge-mode {
    background-color: #F5D0D0;
}

#result.correct {
    color: green;
}

#result.incorrect {
    color: red;
}

/* Mobile Styles */
@media (max-width: 600px) {
    #game-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: scale(0.75); /* Scale down */
        transform-origin: center; /* Keep scaling from the top left corner */
        /* Adjusting transform-origin to align the container properly */
    }
}