/* Custom Animations and Styles */

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin-slow {
    animation: spin 12s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 1s ease-out;
}

/* Card Flipping Styles for Games */
.perspective-1000 {
    perspective: 1000px;
}

.tarot-card-container {
    width: 200px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.tarot-card-container.flipped {
    transform: rotateY(180deg);
}

.tarot-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tarot-back {
    background: repeating-linear-gradient(
        45deg,
        #1a1638,
        #1a1638 10px,
        #24204b 10px,
        #24204b 20px
    );
    border: 4px solid #ffd700;
    color: #ffd700;
}

.tarot-front {
    background-color: #f3f4f6;
    transform: rotateY(180deg);
    border: 4px solid #302b63;
    padding: 10px;
    color: #1a1638;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0c29; 
}
::-webkit-scrollbar-thumb {
    background: #302b63; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffd700; 
}
