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

.mainContainer{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: wheat;
    padding-top: 40px;
    column-gap: 10px;
    height: 100vh;

}

/* i think the ratio is 40 60 */
.values{
    display: flex;  
    justify-content: center;
}

h1{
    text-align: center;
}

.score-box , .best-score{
    margin : 10px 30px;
}


.score{
text-align: center;
}

.leftPart h1,button{
    color: rgb(88, 67, 67);
}

.leftPart{
    color: rgb(124, 113, 113);
    max-width: 330px;
    width: 100%;
    /* margin-right: 50px; */
    /* margin-top: 20px; */
}


button{
    padding: 8px 30px;
    border-radius: 5px;
    border: none;
    background-color: rgb(88, 67, 67);
    color: white;
    font-weight: 600;
    display: block;
    margin:15px 30px;
}


.container{
    /* margin-top: 20px; */
    background-color: rgb(231, 207, 162);
    border-radius: 10px;
    padding: 10px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
}


.container {
    touch-action: none;
}


.howToPlayContainer{
    text-align: justify;
}


.howToPlayContainer a {
    color: rgb(88, 67, 67);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.howToPlayContainer a:hover {
    color: rgb(124, 113, 113);
}

.howToPlayContainer a:visited {
    color: rgb(88, 67, 67);
}


.cell{
    height: 70px;
    width: 70px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: wheat;
    border-radius: 5px;

    font-size: 24px;
}



.cell[data-value="2"]    { background-color: #ed8114; color: #fff; }
.cell[data-value="4"]    { background-color: #f1742c; color: #fff; }
.cell[data-value="8"]    { background-color: #e94a2e; color: #fff; }
.cell[data-value="16"]   { background-color: #f85408; color: #fff; }
.cell[data-value="32"]   { background-color: #b22b09; color: #fff; }
.cell[data-value="64"]   { background-color: #f82e2a; color: #fff; }
.cell[data-value="128"]  { background-color: #ec0c0c; color: #fff; font-size: 20px; }
.cell[data-value="256"]  { background-color: #e9b60e; color: #fff; font-size: 20px; }
.cell[data-value="512"]  { background-color: #98f517; color: #fff; font-size: 20px; }
.cell[data-value="1024"] { background-color: #0cbef9; color: #fff; font-size: 18px; }
.cell[data-value="2048"] { background-color: #1491f8; color: #fff; font-size: 18px; }




.newBtnContainer{
    display: flex;
    justify-content: center ;
}


/* For Mobile */
@media(max-width: 700px){

    .mainContainer{
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
    }

    .leftPart{
        width: 90%;
        margin-right: 0;
        margin-top: 0;
        text-align: center;
    }

    .values{
        justify-content: center;
    }

    button{
        margin: 15px auto;
    }

    .container{
        margin-top: 20px;
    }

    .cell{
        height: 60px;
        width: 60px;
    }
}
