* {
    box-sizing: border-box;
}

html {
    background: url(../img/bg2.png) no-repeat;
    background-size: cover;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.card {
    position: relative;
    width: 200px;
    height: 300px;
    margin: 10px;
    perspective: 1000px;
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.back {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(../img/back.jpg) no-repeat center;
    background-size: cover;
}

.front  {
    transform: rotateY(180deg);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    text-align: center;
    font-size: 22px;
    font-family: sans-serif;
    font-weight: 600;
    border: 5px solid rgb(112, 112, 112);
    padding: 5px;
}

@keyframes flip1 {
    0% {
        transform: rotateY(0deg) rotateZ(8deg);
    }
    
    100% {
        transform: rotateY(180deg);
    }
}

@keyframes flip2 {
    0% {
        transform: rotateY(180deg) rotateZ(8deg);
    }
    90% {
        transform:  scale(1.1) rotateX(20deg);
    }
    100% {
        transform: rotateY(0deg) rotateZ(8deg) ;
    }
}

.card.flipped .back  {
    animation: flip1 1.2s forwards;
}

.card.flipped .front {
    animation: flip2 1.2s forwards;
}

.card.flipped2 .back {
    animation: flip2 1.2s forwards;
}

.card.flipped2 .front {
    animation: flip1 1.2s forwards;
}

button {
    box-shadow: 0px 0px 30px #007bff65;
    max-width: 170px;
    padding: 10px;
    font-size: 25px;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    position: fixed;
    bottom: 50px;
    right: calc(50vw - 170px/2);
    transition: all 0.5s;
}

button:hover {
    background-color: #0051ff;
    cursor: pointer;
    transform: scale(1.1);
}



/* .card.flipped .path7 {
    animation: wusa 2s infinite;
}  */