.game-info {
    max-width: 450px;
    width: 100%;
    margin: auto;
    background: #f8f9fa;
    border-radius: 6px;
}

.night .game-info{
    background-color: #444;
}

.info-box {
    padding: 0.5rem 0.75rem;
    width: calc(100% / 3);
    display: inline-block;
    float: left;
    text-align: center;
}

.info-box h3 {
    color: #7f8c8d;
    font-size: 0.6rem;
    margin-bottom: 5px;
}

.night .info-box h3{
    color: #ddd;
}

.info-value {
    color: #2c3e50;
    font-size: 0.8rem;
}

.night .info-value {
    color: #ddd;
}





.sudoku-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-gap: 1px;
    background-color: #2c3e50;
    border: 2px solid #2c3e50;
    border-radius: 5px;
    margin-bottom: 0.75rem;
    max-width: 450px;
    width: 100%;
}

.night .sudoku-grid{
    background-color: #aaa;
    border: 2px solid #aaa;
}

.cell {
    background-color: #fff;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.night .cell{
    background-color: #444;
}

.cell.fixed {
    color: #2c3e50;
}

.night .cell.fixed {
    color: #fff;
}

.cell.user-input {
    color: #3498db;
}

.cell.error {
    color: #e74c3c;
}

.cell.selected {
    background-color: #d6eaf8;
}

.night .cell.selected {
    background-color: #333;
}

.cell.highlighted {
    background-color: #ebf5fb;
}

.night .cell.highlighted {
    background-color: #333;
}

.cell:nth-child(3n) {
    border-right: 1px solid #2c3e50;
}

.night .cell:nth-child(3n) {
    border-right: 1px solid #aaa;
}

.cell:nth-child(9n) {
    border-right: none;
}

.night .cell:nth-child(9n) {
    border-right: none;
}

.sudoku-row:nth-child(3n) .cell {
    border-bottom: 2px solid #2c3e50;
}

.night .sudoku-row:nth-child(3n) .cell {
    border-bottom: 2px solid #aaa;
}

.cell:nth-child(19),.cell:nth-child(20),.cell:nth-child(21),.cell:nth-child(22),.cell:nth-child(23),.cell:nth-child(24),.cell:nth-child(25),.cell:nth-child(26),.cell:nth-child(27),.cell:nth-child(46),.cell:nth-child(47)
,.cell:nth-child(48),.cell:nth-child(49)
,.cell:nth-child(50),.cell:nth-child(51)
,.cell:nth-child(52),.cell:nth-child(53)
,.cell:nth-child(54)
{
    border-bottom: 1px solid #2c3e50;
}

.night .cell:nth-child(19), .night .cell:nth-child(20),.night  .cell:nth-child(21),.night .cell:nth-child(22),.night .cell:nth-child(23),.night .cell:nth-child(24),.night .cell:nth-child(25),.night .cell:nth-child(26),.night .cell:nth-child(27),.night .cell:nth-child(46),.night .cell:nth-child(47)
,.night .cell:nth-child(48),.night .cell:nth-child(49)
,.night .cell:nth-child(50),.night .cell:nth-child(51)
,.night .cell:nth-child(52),.night .cell:nth-child(53)
,.night .cell:nth-child(54)
{
    border-bottom: 1px solid #aaa;
}

.number-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 300px;
    margin-top: 10px;
}

.number-btn {
    background: #ecf0f1;
    border: none;
    border-radius: 6px;
    height: 1.5rem;
    line-height: 1.5rem;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.night .number-btn{
    background: #444;
    color: #fff;
}

.shudulevel{
    height: 1.5rem;
    line-height: 1.5rem;
    background-color: #2196F3;
    color: #fff;
    border: 0;
    width: 3rem;
    border-radius: 4px;
    text-align: center;
    padding: 0 0.2rem;
}


.controls {
    text-align: center;
}

.control-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 4px;
    cursor: pointer;
    height: 1.5rem;
    line-height: 1.5rem;
}

.control-btn.secondary {
    background: #e74c3c;
}

.control-btn.secondary:hover {
    background: #c0392b;
}

@media screen and (max-width: 430px){
    .shudulevel{
        width: 100%;
        margin-bottom: 0.2rem;
    }
    .control-btn {
        margin-bottom: 0.2rem;
        width: calc(50% - 0.1rem);
        float: left;
    }
    .controls #check{
        float: right;
    }
    .controls #reset{
        float: right;
    }
}

@media screen and (max-width: 340px){
    .cell{
        font-size: 0.8rem;
    }
}