*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}
body{
    height:100vh;
    background-color:hotpink;
}
h1{
    margin-top:1%;
    margin-left: 40%;
    color:darkgray;
}
.memory-container{
    
    width:150vh;
    height:90vh; 
   
     /* margin: auto;  */
     margin-top: 2%;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
}
.memory-card{
    width:23%;
    height:30%;
    margin:5px;
    position: relative;
    transform: scale(1);
    transform-style: preserve-3d ;
    transition: transform.5s;
}
.memory-card:active{
    transform: scale(.95);
    transition: transform.2s;

}
.memory-card.flip{
    transform:rotateY(180deg);
    
}

.front-face, .back-face{
    position:absolute;
    width:100%;
    height:100%;
    padding:10px;
    background-color: blanchedalmond;
    border:2px rgb(15, 7, 61) solid;
    backface-visibility: hidden;
}
.back-face{
    transform:rotateY(180deg);
}
textarea{
    padding: 0.5%;
    margin-top: 2%;
    background-color: hotpink;
    color: white;
    width: 39vh;
    height:30vh;
    font-size:xx-large;
    border:  10px rgb(210, 65, 137) dashed;
}
.game-container{
    display: flex;
    justify-content: center;
}