* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f0f0;
    padding: 20px;
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

h2 {
    color: #123;
    margin-bottom: 10px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.bet-controls {
    margin-top: 10px;
}

.bet-controls button {
    padding: 5px 10px;
    margin-right: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.bet-controls button:hover {
    background-color: #45a049;
}

#bet-clear {
    background-color: #f44336;
}

#bet-clear:hover {
    background-color: #d32f2f;
}

.game-table {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #006400;
    border-radius: 10px;
    color: white;
}

.dealer-area, .player-area {
    padding: 10px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    min-height: 120px;
}

.card {
    width: 80px;
    height: 120px;
    background-color: white;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    color: black;
}

.card.hidden {
    background-color: #b71c1c;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,.1) 10px, rgba(0,0,0,.1) 20px);
}

.card-value {
    font-size: 1.5em;
    font-weight: bold;
}

.card-suit {
    font-size: 2em;
    text-align: center;
}

.hearts, .diamonds {
    color: red;
}

.spades, .clubs {
    color: black;
}

.score {
    font-size: 1.2em;
    font-weight: bold;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.action-btn:hover {
    background-color: #0b7dda;
}

.action-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.message {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    height: 30px;
    color: #d32f2f;
}

@media (max-width: 600px) {
    .game-info {
        flex-direction: column;
    }
    
    .balance-container, .bet-container {
        margin-bottom: 10px;
    }
    
    .card {
        width: 60px;
        height: 90px;
    }
}
