@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap";*{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:#6563ff}.wrapper{padding:25px;border-radius:10px;background:#f8f8f8;box-shadow:0 10px 30px #0000001a}.cards,.card,.view{display:flex;align-items:center;justify-content:center}.cards{height:400px;width:400px;flex-wrap:wrap;justify-content:space-between}.cards .card{cursor:pointer;list-style:none;-webkit-user-select:none;user-select:none;position:relative;perspective:1000px;transform-style:preserve-3d;height:calc(25% - 10px);width:calc(25% - 10px)}.card.shake{animation:shake .35s ease-in-out}@keyframes shake{0%,to{transform:translate(0)}20%{transform:translate(-13px)}40%{transform:translate(13px)}60%{transform:translate(-8px)}80%{transform:translate(8px)}}.card .view{width:100%;height:100%;position:absolute;border-radius:7px;background:#fff;pointer-events:none;backface-visibility:hidden;box-shadow:0 3px 10px #0000001a;transition:transform .25s linear}.card .front-view img{width:19px}.card .back-view img{max-width:45px}.card .back-view{transform:rotateY(-180deg)}.card.flip .back-view{transform:rotateY(0)}.card.flip .front-view{transform:rotateY(180deg)}@media screen and (max-width:700px){.cards{height:350px;width:350px}.card .front-view img{width:17px}.card .back-view img{max-width:40px}}@media screen and (max-width:530px){.cards{height:300px;width:300px}.card .front-view img{width:15px}.card .back-view img{max-width:35px}}
