* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #006400; /* Green background like a casino table */
    color: white;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    background-color: #004d00;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.deck-info, .card-counting {
    text-align: center;
    font-size: 1.1em;
}

.game-area {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.player-area {
    background-color: #004d00;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.player-area h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.hand {
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.card {
    width: 80px;
    height: 120px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    color: black;
    font-weight: bold;
}

.dealt-card {
    opacity: 0.7;
    transform: scale(0.85);
}

.card.red {
    color: #d32f2f;
}

.card.black {
    color: #000;
}

.card-value {
    font-size: 1.5em;
    text-align: center;
    margin: 0 auto;
}

.card-suit {
    font-size: 1.8em;
    text-align: center;
    margin: 0 auto;
}

.hand-value {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    padding: 12px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #ff9800;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #f57c00;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.message-area {
    text-align: center;
    font-size: 1.2em;
    padding: 20px;
    background-color: #004d00;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dealt-cards-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #004d00;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dealt-cards-section h3 {
    margin-bottom: 10px;
    text-align: center;
}

#dealt-cards-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .game-area {
        flex-direction: column;
    }
    
    .card {
        width: 60px;
        height: 90px;
        font-size: 0.8em;
    }
    
    .card-value {
        font-size: 1em;
    }
    
    .card-suit {
        font-size: 1.2em;
    }
}