/* main-content.css */

body {
    font-family: 'Lora', serif;
    background-color: #0b6d4c; /* Casino green felt */
}

.card {
    background-color: #f7f4e9; /* Off-white card color */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Card flip animation container */
.card-animation-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Shared animated card styles */
.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 */
}