*{
    box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

body{
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-evenly;
    align-items: center;
    background: #161627;
    color: #F2E9E4;
    height: 90vh;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
}
h1{
    font-weight: 500;
    margin: 20px;
}
.head{
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}
.box{
    display: flex;
    align-items: center;
    flex-flow: column nowrap;
}
#board{
    display: flex;
    flex-flow: row wrap;
    width: 360px;
    height: 360px;
    position: relative;
}
#board .quad{
    width: 33.33%;
    display: flex;
    flex-flow: row wrap;
    border: 1px #161627 solid;
}
#board .cell{
    background: #4A4E69;
    width:  33.33%;
    height:  33.33%;
    max-height:  33.33%;
    border: 1px #161627 solid;
    border-radius: 3px;
    cursor: pointer;
    transition: all .2s ease;
    line-height: 0em;
    color: #F2E9E4; 
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cell.numSelected{
    background-color: #F2E9E4!important;
    color: #161627!important;
}
.cell.wrong{
    background-color: #F2E9E4!important;
}
.cell.ori{
    font-weight: 700;
}
.popup{
    position: absolute;
    font-weight: 500;
    padding: 40px;
    border-radius: 15px;
    box-shadow: #0a0a11 5px 5px 0px ;
    cursor: pointer;
    background-color: #4A4E69;
    color: #F2E9E4;
    text-align: center;
}
.popup i{
    font-size: 40px;
}
.restart{
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background-color: #0a0a11;
    color: #F2E9E4; 
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.restart i{
    transition: all 1s ease;
}
.restart:hover i{
    transform: rotate(-360deg);

}
#numbers ul{
    padding: unset;
    display: flex;
    flex-flow: row wrap;

}
#numbers ul li{
    display: flex;
    border-radius: 50%;
    background-color: #4A4E69;
    color: #F2E9E4;
    width: 30px;
    height: 30px;
    margin: 5px;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    transition: .3s ease;
}
#numbers ul li.selected{
    background-color: #F2E9E4;
    color: #161627;
    transform: scale(1.2);
}
#numbers ul li.disabled{
    opacity: 0.5;
}
@media screen and (max-width: 1200px){
    .head, .restart{
        font-size: 35px;
    }
    .restart{
        width: 100px;
        height: 100px;
    }
    #board{
        width: 80vw;
        height: 80vw;
    }
    #board .cell{
        font-size: 40px;
    }
    #numbers ul li{
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}