@charset "utf-8";

@import url('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' 'snas-serif';
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #4562aa;
}
ul,li{list-style: none;}
.wrapper{
    padding: 25px;
    border-radius: 10px;
    background: #f8f8f8;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.cards, .card .view {
    display: flex;
    justify-content: center;
    align-items: center;
}
.cards {
  height: 600px;
  width: 600px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cards .card {
    cursor: pointer;
    position: relative;
    perspective: 800px;
    transform-style: preserve-3d;
    width: calc(100% / 4 - 10px);
    height: calc(100% / 4 - 10px);
}
.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);
  }
}
.cards .card .view{
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
    position: absolute;
    border-radius: 7px;
    background: #fff;
    pointer-events: none;
    backface-visibility: hidden;
    box-shadow: 0 3px 10px #00000050;
    transition: transform 0.25s linear;
}
.card .front-view span{
    display: block;
    width: 100px;
    height: 100px;
    background: url(../img/img-9.png) no-repeat center center;
    background-size: cover;
    color: #6563ff;
}
.card .back-view {
    transform: rotateY(-180deg);
}
.card .back-view img {
    max-width: 65px;
}

.card.flip .front-view{
  transform: rotateY(180deg);
}
.card.flip .back-view{
  transform: rotateY(0);
}