body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f0f0f0;
    margin: 0;
    padding: 2px;
}

#gameContainer {
    max-width: 440px;
    margin: 0 auto;
    background: white;
    padding: 2px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#globalMessage {
    display: none;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #f00;
    color: white;
    padding: 5px;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 10px;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#gameOver {
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#deckArea, #discardArea {
    margin: 10px 20px;
    display: inline-block;
    vertical-align: top;
}

#deck, #discard {
    width: 120px;
    height: 180px;
    position: relative;
}

#deck {
    left: 0;
}

#discard {
    left: 0px; /* Adjust this value based on desired spacing between deck and discard */
}

.card {
    width: 120px;
    height: 180px;
    background: url('cards/blue_back.png') no-repeat center;
    background-size: cover;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* Ensure cards are below chips */
}
}

.card.revealed {
    background-size: cover;
    border: 2px solid #000;
}

@keyframes blueCardAnimation {
    0% {
        transform: translate(0, 0) rotateY(0deg); /* Start at deck position */
    }
    100% {
        transform: translate(70px, 0) rotateY(90deg); /* Move to discard position */
    }
}

@keyframes finalCardAnimation {
    0% {
        transform: translate(-70px, 0) rotateY(90deg); /* Start at discard position */
    }
    100% {
        transform: translate(0px, 0) rotateY(0deg); /* Final position in discard pile */
    }
}

.blue-card-animation {
    animation: blueCardAnimation 0.7s ease-in-out forwards;
}

.final-card-animation {
    animation: finalCardAnimation 0.7s ease-in-out forwards;
}


#goodbyeContainer {
    text-align: center;
}

#goodbyeContainer button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 10px;
}


.card-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px; /* 84-point font size */
    color: #2499d4; /* match the blue text */
    -webkit-text-stroke: 2px white; /* Black outline for WebKit browsers */
    text-stroke: 1px white; /* Standard text stroke (not widely supported, fallback to -webkit) */
    font-weight: bold;
    z-index: 10; /* Ensure the number is above the card */
    pointer-events: none; /* Prevent interaction with the number */
}
