body{
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgb(253, 129, 129);
    background-image: linear-gradient(180deg, #af374b 0%, rgb(253, 129, 129) 74%);
    background-repeat: no-repeat;

}
.container{
    height: 600px; 
    width: 600px;
    border-radius: 5px;
    background-color: #af374b;
}
.line{
    display: flex;
    flex-direction: row;
    height: 20%;
    justify-content: space-evenly;
    align-items: center;
}
.box{
    height: 80%;
    width: 18%;
    background-color:#FBE7C6;
    border-radius: 5%;
    font-size: 50px;
    color: rgb(253, 129, 129);
    transform-style: preserve-3d;
    transition: all 0.4s ease-in-out;
}
.box div{
    display: flex;
    justify-content: center;
    align-items: center;
}
.front{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}
.back{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);
}
/* .box:hover{
    transform: rotateY(180deg);
} */
.rotate{
    transform: rotateY(180deg);
}
.score
{
    height: 25px;
    width:  fit-content;
    text-align: center;
    font-size: 19px;
    color: white;
}
.reset{
    color: white;
    border: 0;
    background-color: #fdb794;
    border-radius: 2px;
}
.nav{
    margin: 5px;
    width: 600px;
    display: flex;
    justify-content: space-between;
}
h1{
    color: white;
}

@media all and (max-width: 600px){
    .nav{
        width: 80%;
        margin-bottom: 30px;
    }
    .container{
      width: 300px;
      height: 400px;
    }
    .line{
        height: 20%;
    }
    .box{
        width: 15%;
        height: 65%;
        font-size: 10px;
        font-size: 25px;
    }
}