#game-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 70vw;
    font-family: Arial, sans-serif;
    align-items: center;
    height: 100%;
    margin: auto;
    background: linear-gradient(to right,rgb(172, 225, 255),rgb(150, 142, 255));
    color: #000;
}

#board-container {
    margin-right: 20px;
}

#difficulty {
    margin-bottom: 10px;
}

#sudoku-board {
    border-collapse: collapse;
    margin-bottom: 20px;
}

#sudoku-board td {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 20px;
    border: 1px solid #000;
    cursor: pointer;
}

#sudoku-board td.bold-border-right {
    border-right: 3px solid #000;
}

#sudoku-board td.bold-border-bottom {
    border-bottom: 3px solid #000;
}

#sudoku-board td.selected {
    background-color: #ffff99;
}

#sudoku-board td.error {
    background-color: #ff9999;
}

#sudoku-board td.fixed {
    font-weight: bold;
    color: #000;
}

#sudoku-board td.editable {
    color: #00f;
}

#sudoku-board td.solved {
    background-color: #b5f7b5; /* light green */
}

#controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#number-buttons {
    display: grid;
    grid-template-columns: repeat(3, 50px);
    gap: 20px;
    margin-bottom: 5px;
}

#number-buttons button {
    width: 60px;
    height: 60px;
    font-size: 40px;
    cursor: pointer;

}

#clear-button {
    width: 200px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 20px;
}

#actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#actions button {
    width: 100px;
    height: 40px;
    font-size: 18px;
}

#message {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

#timer {
    font-size: 18px;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    #game-container {
        flex-direction: column;
        align-items: center;
    }

    #board-container {
        margin-right: 0;
        margin-bottom: 20px;
    }

    #sudoku-board td {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    #number-buttons {
        grid-template-columns: repeat(3, 40px);
        gap: 5px;
    }

    #number-buttons button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #clear-button {
        width: 120px;
        height: 40px;
        font-size: 20px;
    }

    #actions button {
        width: 80px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    #sudoku-board td {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    #number-buttons {
        grid-template-columns: repeat(3, 30px);
        gap: 5px;
    }

    #number-buttons button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    #clear-button {
        width: 90px;
        height: 30px;
        font-size: 16px;
    }

    #actions button {
        width: 70px;
        height: 30px;
        font-size: 14px;
    }
}