@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins',sans-serif;
}
body{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: rgb(106, 106, 212);
}
.a1{
    margin-bottom: 40%;
     margin-left: 10%;
    
  
   
}
.wrapper{
    height:400px ;
    width: 400px;
    background-color: white;
    border-radius: 10px;
    padding: 5%;
    margin-left: -300px;

   
    
}
.cards, .card, .view{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cards{
    height: 100%;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;

}
.cards .card{
    cursor: pointer;
    position: relative;
    perspective: 800px;
    transform-style: preserve-3d;
    height: calc(100% / 4 -10px);
    width: calc(100% / 4 -10px);
}
.cards .card .view{
    height: 100%;
    width: 100%;
    user-select: none;
    pointer-events: none;
    background-color: rgb(246, 241, 241);  
    border-radius: 7px; 
    backface-visibility: hidden;
    transition: transform 0.25s linear;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 1);
    
}
.card.shake{
    animation: shake 0.35s ease-in-out;
}
    @keyframes shake {
        0%, 100%{
            transform: translateX(0);
        }
        20%{
            transform: translateX(-13px);  
        }
        40%{
            transform: translateX(13px);
        }
        60%{
            transform: translateX(-8px);
        }
        80%{
            transform: translateX(8px);
        }
    }

.card .front-view span{
    color: #6563ff;
    font-size: 45px;
    position: absolute;
    background-color: white;
    padding-left: 5%;
    width: 50px;
   
    
}
.card.back-view {
    transform: rotateY(-180deg);
   
}
.card.back-view img{
    max-width: 40px;
  
}
.card.flip .front-view{
    transform: rotateY(-180deg);
}

