/* Blackjack Game Styles */

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Betting controls overlay */
.betting-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 12px;
    z-index: 100;
}

.bet-amount {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bet-amount label {
    color: #fff;
    font-weight: bold;
}

.bet-amount input {
    width: 80px;
    padding: 8px;
    border: 2px solid #6f42c1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

.chip-buttons {
    display: flex;
    gap: 8px;
}

.chip-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px dashed rgba(255, 255, 255, 0.5);
    font-weight: bold;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip-btn:hover {
    transform: scale(1.1);
}

.chip-btn.chip-5 { background: linear-gradient(135deg, #dc3545, #c82333); color: #fff; }
.chip-btn.chip-10 { background: linear-gradient(135deg, #007bff, #0056b3); color: #fff; }
.chip-btn.chip-25 { background: linear-gradient(135deg, #28a745, #1e7e34); color: #fff; }
.chip-btn.chip-50 { background: linear-gradient(135deg, #6f42c1, #5a32a3); color: #fff; }
.chip-btn.chip-100 { background: linear-gradient(135deg, #1a1a2e, #000); color: #fff; }

/* Action buttons */
.action-buttons {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.action-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.action-btn.hit {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
}

.action-btn.stand {
    background: linear-gradient(135deg, #ffc107, #d39e00);
    color: #1a1a2e;
}

.action-btn.double {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: #fff;
}

.action-btn.split {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    color: #fff;
}

.action-btn.deal {
    background: linear-gradient(135deg, #20c997, #17a881);
    color: #fff;
    padding: 15px 50px;
}

/* Result overlay */
.result-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 30px 50px;
    border-radius: 16px;
    text-align: center;
    z-index: 200;
    animation: pop-in 0.3s ease;
}

@keyframes pop-in {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.result-overlay h2 {
    font-size: 2rem;
    margin: 0 0 10px 0;
}

.result-overlay.win h2 {
    color: #28a745;
}

.result-overlay.lose h2 {
    color: #dc3545;
}

.result-overlay.push h2 {
    color: #ffc107;
}

.result-overlay.blackjack h2 {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.result-amount {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

/* Insurance prompt */
.insurance-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    z-index: 200;
}

.insurance-prompt h3 {
    color: #fff;
    margin-bottom: 15px;
}

.insurance-prompt .buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Balance display */
.balance-display {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
    z-index: 100;
}

.balance-display span {
    color: #20c997;
    font-weight: bold;
}

/* Hidden class */
.hidden {
    display: none !important;
}
