* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: bisque;
    background-image: url("BG.avif");
    background-size: cover;

}

@media(min-width:650px) and (max-height:650px) {
    body {
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: bisque;
        background-image: url("BG.avif");
        background-size: cover;

    }

    h1 {
        display: inline;
        color: #00bfff;
        margin: 10px;
        font-size: 40px;
    }

    #container { 
        display: flex;
        width: 39vw;
        height: 75vh;
        flex-wrap: wrap;
        border: 3px solid white;
        border-radius: 25px;
        justify-content: space-evenly;
        align-items: center;
        margin-top: 5px;
        box-shadow: 0px 0px 15px #00ffcc;

    }

    .cell {
        height: 18.75vh;
        width: 10vw;
        border: 1px solid gray;
        border-radius: 10px;
        box-shadow: 0px 0px 10px #00ffcc;
        cursor: pointer;
        font-size: 50px;
        background-color: #1f1f1f;
        color: goldenrod;
    }

    #reset {
        width: 10vw;
        height: 5vh;
        border-radius: 10px;
        border: 1px solid gray;
        box-shadow: 0px 0px 8px #00ffcc;
        background-color: #1f1f1f;
        color: #00bfff;
        font-size: 20px;
        cursor: pointer;
        margin-top: 10px;
    }
}

@media(min-height:650px) and (max-width:650px) {
    body {
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: bisque;
        background-image: url("BG.avif");
        background-size: cover;

    }

    h1 {
        display: inline;
        color: #00bfff;
        margin: 12vh;
        font-size: 5vh;
    }

    #container {
        display: flex;
        width: 70vw;
        height: 50vh;
        flex-wrap: wrap;
        border: 3px solid white;
        border-radius: 25px;
        justify-content: space-evenly;
        align-items: center;
        margin-top: 3vh;
        box-shadow: 0px 0px 15px #00ffcc;

    }

    .cell {
        height: 12vh;
        width: 18vw;
        border: 1px solid gray;
        border-radius: 10px;
        box-shadow: 0px 0px 10px #00ffcc;
        cursor: pointer;
        font-size: 50px;
        background-color: #1f1f1f;
        color: goldenrod;
    }

    #reset {
        width: 18vw;
        height: 5vh;
        border-radius: 10px;
        border: 1px solid gray;
        box-shadow: 0px 0px 8px #00ffcc;
        background-color: #1f1f1f;
        color: #00bfff;
        font-size: 20px;
        cursor: pointer;
        margin-top: 4vh;
    }

}

@media (min-width:650px) and (min-height:650px) {
    body {
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: bisque;
        background-image: url("BG.avif");
        background-size: cover;
    }

    h1 {
        display: inline;
        color: #00bfff;
        margin: 3vh;
        font-size: 8vh;
    }

    #container {
        display: flex;
        width: 46vw;
        height: 73vh;
        flex-wrap: wrap;
        border: 3px solid white;
        border-radius: 25px;
        justify-content: space-evenly;
        align-items: center;
        box-shadow: 0px 0px 15px #00ffcc;
    }

    .cell {
        height: 18.75vh;
        width: 12vw;
        border: 1px solid gray;
        border-radius: 10px;
        box-shadow: 0px 0px 10px #00ffcc;
        cursor: pointer;
        font-size: 15vh;
        background-color: #1f1f1f;
        color: goldenrod;
    }

    #reset {
        width: 18vw;
        height: 7vh;
        border-radius: 10px;
        border: 1px solid gray;
        box-shadow: 0px 0px 8px #00ffcc;
        background-color: #1f1f1f;
        color: #00bfff;
        font-size: 20px;
        cursor: pointer;
        margin-top: 3vh;
    }
}