/* main-content.css */

body {
    font-family: 'Lora', serif;
    /* Removed background-color to allow Tailwind's 'bg-gray-900' to take effect. */
}

/* The .card and .card:hover styles have been removed.
   Styling for the tool links is now handled by Tailwind CSS classes 
   directly in the index.html file (e.g., bg-gray-800, border, hover:border-amber-300).
*/

/* --- Card Flip Animation Styles (Unchanged) --- */
.card-animation-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.animated-card {
    width: 100px;
    height: 140px;
    position: relative;
    transform-style: preserve-3d;
    animation: flip 4s infinite ease-in-out;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    font-family: 'Lora', serif;
    font-size: 20px;
    font-weight: bold;
}

.card-front {
    background-color: white;
    color: black;
}

.card-back {
    background: linear-gradient(135deg, #6b0000 25%, transparent 25%), linear-gradient(225deg, #6b0000 25%, transparent 25%), linear-gradient(45deg, #6b0000 25%, transparent 25%), linear-gradient(315deg, #6b0000 25%, #a00000 25%);
    background-size: 20px 20px;
    background-color: #a00000;
    transform: rotateY(180deg);
}

.card-symbol {
    font-size: 40px;
    line-height: 1;
}

.top-left {
     position: absolute; top: 8px; left: 12px; text-align: center; line-height: 1;
}
 .bottom-right {
     position: absolute; bottom: 8px; right: 12px; text-align: center; line-height: 1; transform: rotate(180deg);
}

/* Animation delays */
.player-card-1 { animation-delay: 0s; }
.player-card-2 { animation-delay: 0.2s; }
.dealer-card { animation-delay: 0.4s; }

@keyframes flip {
    0%, 15% { transform: rotateY(180deg); } /* Start flipped (back showing) */
    30%, 80% { transform: rotateY(0deg); }  /* Flip to front */
    95%, 100% { transform: rotateY(180deg); } /* Flip back */
}