*
{
    margin: 0;
    padding: 0;
}
body
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    background-color: #f5f5f5;
}
#sudoku
{
    display: grid;
    grid-template-columns: repeat(9, 50px);
    grid-template-rows: repeat(9,50px);
    border: 2px solid black;
}

/* css code for sudoku cells that is generated from javascript */
.cell
{
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    border: 1px solid black;
    background-color: white;
    position: relative;
}
.cell input
{
    width: 100%;
    height: 100%;
    font-size: 18px;
    border: none;
    text-align: center;
    background-color: white;
}

/* Border for 3*3 cell grid and individual sell */
.cell:nth-child(3n + 1) 
{
    border-left: 2px solid #000;
}
.cell:nth-child(3n) 
{
    border-right: 2px solid #000;
}
.cell:nth-child(n+1):nth-child(-n+9),.cell:nth-child(n+28):nth-child(-n+36),.cell:nth-child(n+55):nth-child(-n+63) 
{
    border-top: 2px solid #000;
}
.cell:nth-child(n+19):nth-child(-n+27),.cell:nth-child(n+46):nth-child(-n+54),.cell:nth-child(n+73):nth-child(-n+81) 
{
    border-bottom: 2px solid #000;
}
.cell:nth-child(n+1):nth-child(-n+9)
{
    border-top: none;
}
.cell.cell:nth-child(9n+1)
{
    border-left:none;
}


#buttons
{
    margin-top: 20px;
}

/* animation code for submit button */
#submit
{
    padding: 15px 25px;
    border: unset;
    border-radius: 15px;
    color: #212121;
    z-index: 1;
    background: #e8e8e8;
    position: relative;
    font-weight: 1000;
    font-size: 17px;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: all 250ms;
    overflow: hidden;
}
#submit::before
{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: #212121;
    z-index: -1;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: all 250ms
} 
#submit:hover
{
    color: #e8e8e8;
}   
#submit:hover::before
{
    width: 100%;
}

/* Animation code for play agian button */
#play-again 
{
    margin-left: 40px;
    padding: 15px 25px;
    border: unset;
    border-radius: 15px;
    color: #212121;
    z-index: 1;
    background: #e8e8e8;
    position: relative;
    font-weight: 1000;
    font-size: 17px;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: all 250ms;
    overflow: hidden;
}
#play-again::before 
{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: #212121;
    z-index: -1;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: all 250ms;
}
#play-again:hover 
{
    color: #e8e8e8;
}
#play-again:hover::before 
{
    width: 100%;
    right: 0;
}