
.cardCustom, .flip-card-inner, .flip-card-front {
    animation: rotate 10s infinite linear;
}

.flip-card-back {
    animation: rotateBack 10s infinite linear;
}

.cardCustom {
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 10px;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 20px;
    width: 350px;
    height: 200px;
    rotate: 20deg;
    box-shadow: 0 0 10px rgb(0, 0, 0);
    perspective-origin: 50% 50%;
}

.flip-card-inner {
    position: relative;
    text-align: center;
    transform-style: preserve-3d;
    box-shadow: 0 0 5px rgba(0,0,0,.05), 2px 2px 5px rgba(0,0,0,.1);
    border-radius: 4px;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 90%;
    height: 80%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
  
.flip-card-front {
    color: black;
    margin: 0;
    padding: 0;
}
  
.flip-card-back {
    color: white;
    margin: 0;
    padding: 0;
}

@keyframes rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes rotateBack {
    0% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(540deg);
    }
}

@media screen and (max-width: 768px) {
    .cardCustom {
        width: 250px;
        height: 142px;
    }
    
}