.card {
    perspective: 1000px;
}

.card-inner {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    border-radius: 0.5rem;
}

.card-front {
    background-color: #f3f4f6;
    background-image: url(../images/carta.png);
    background-size: cover;
    background-position: center;
    
}

.card-back {
    background-color: #a8d0e6;
    transform: rotateY(180deg);
}

.tip {
    animation: bounce 0.5s ease-in-out infinite alternate;
}

.c-height{
    height: 150px;
}
@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-5px);
    }
}
