.blackjack-game {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.language-toggle {
    text-align: right;
    margin-bottom: 15px;
}

.language-btn {
    margin-left: 5px;
}

.game-title {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

#how-to-play-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.scoreboard {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.total-score-item {
    text-align: center;
    min-width: 150px;
}

.total-score-reset {
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.score-value {
    font-size: 24px;
    font-weight: bold;
    color: #094914;
}

.winner-name {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
}

.game-container {
    background-color: #094914;
    padding: 20px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dealer-area, .player-area {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.dealer-label, .player-label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.dealer-cards, .player-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 140px;
    margin-bottom: 10px;
}

.card {
    width: 100px;
    height: 140px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: black;
    position: relative;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card.hearts, .card.diamonds {
    color: #e60000;
}

.card.spades, .card.clubs {
    color: #000;
}

.card-value {
    font-size: 36px;
    font-weight: bold;
}

.card-suit {
    position: absolute;
    font-size: 24px;
    bottom: 10px;
    right: 10px;
}

.card.face-down {
    background-image: linear-gradient(45deg, #1e90ff, #0000cd);
    color: transparent;
}

.dealer-score, .player-score {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-result {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    min-height: 60px;
}

/* Language specific display */
.lang-en, .lang-vi {
    display: none;
}

/* Big Win Modal */
.big-win-message {
    padding: 20px;
}

.confetti-animation {
    margin: 20px 0;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Fade in animation for score updates */
@keyframes score-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #ffc107; }
    100% { transform: scale(1); }
}

.score-update {
    animation: score-update 0.5s ease;
}

/* Milestone achievement animation */
@keyframes milestone {
    0% { color: #28a745; }
    50% { color: #ffc107; }
    100% { color: #28a745; }
}

.milestone {
    animation: milestone 1s ease infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-controls {
        flex-wrap: wrap;
    }
    
    .card {
        width: 80px;
        height: 112px;
    }
    
    .card-value {
        font-size: 28px;
    }
    
    .card-suit {
        font-size: 18px;
    }
}

/* Modal styling for big win/lose */
.modal-header.winner {
    background-color: #28a745;
    color: white;
    border-bottom: 4px solid #1e7e34;
}

.modal-header.loser {
    background-color: #dc3545;
    color: white;
    border-bottom: 4px solid #bd2130;
}

.winner-text {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

.loser-text {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2em;
}

/* Animations */
.bounce {
    animation: bounce-animation 1s infinite;
}

@keyframes bounce-animation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.bounce-animation {
    animation: bounce-animation 1.5s ease;
}

.shake-head {
    animation: shake-animation 1s infinite;
}

@keyframes shake-animation {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.prize-icon {
    text-align: center;
    margin: 20px 0;
}

/* Modal body styling */
.modal-body p {
    text-align: center;
    margin-top: 15px;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .winner-text, .loser-text {
        font-size: 1em;
    }
    
    .modal-title {
        font-size: 1.2em;
    }
    
    .prize-icon i {
        font-size: 2em !important;
    }
} 