.flip-card {
    background-color: transparent;
    width: 100%;
    height: 220px;
    perspective: 1000px; 
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.5rem;
    overflow: hidden;
}

.flip-card-front {
    background-color: #f8f9fa;
}

.flip-card-back {
    color: white;
    transform: rotateY(180deg);
    padding: 0.75rem; 
}

.flip-card-scroll-body {
    width: 100%;
    height: 100%;
    overflow-y: auto;          
    padding-right: 0.25rem;    
    text-align: center;
}

.flip-card-scroll-body::-webkit-scrollbar {
    width: 5px;
}
.flip-card-scroll-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.flip-card-scroll-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}
.flip-card-scroll-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.flip-card-back h5 {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.flip-card-back p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
}

html:not(.no-hint-animation) .hint-pulse {
    animation: clickMePulse 3.5s ease-in-out infinite;
}

html:not(.no-hint-animation) .hint-1 {
    animation-delay: 0s;
}

html:not(.no-hint-animation) .hint-2 {
    animation-delay: 0.25s;
}

html:not(.no-hint-animation) .hint-3 {
    animation-delay: 0.5s;
}

html:not(.no-hint-animation) .hint-4 {
    animation-delay: 0.75s;
}

html:not(.no-hint-animation) .hint-5 {
    animation-delay: 1s;
}

html:not(.no-hint-animation) .hint-6 {
    animation-delay: 1.25s;
}

html:not(.no-hint-animation) .hint-7 {
    animation-delay: 1.5s;
}

@keyframes clickMePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    40% {
        transform: scale(1.055) rotate(-0.5deg); 
    }
    60% {
        transform: scale(1.055) rotate(0.5deg);  
    }
}
