:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #f1c40f;
    --button-color: #3498db;
    --button-hover: #2980b9;
    --text-light: #ecf0f1;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url(images/back.png);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: rgb(9, 80, 9);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.game-container {
    background: rgb(12, 123, 12);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 30px;
    width: 100%;
    max-width: 900px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.player-section, .dealer-section {
    background:  rgba(44, 62, 80, 0.85);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

h2 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.8rem;
}

.cards-area {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.card {
    width: 120px;
    height: 180px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card.visible {
    transform: scale(1);
    opacity: 1;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    border-radius: 8px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

button {
    padding: 15px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    background-color: var(--button-color);
    color: white;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 160px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--shadow);
}

button:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#message {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 25px 0 10px;
    min-height: 40px;
    color: var(--accent-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .game-container {
        padding: 20px;
    }
    
    .card {
        width: 80px;
        height: 120px;
    }
    
    button {
        padding: 12px 20px;
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .score {
        font-size: 1.5rem;
    }
}

.jackpot-effect {
  color: gold;
  font-weight: bold;
  text-shadow: 0 0 10px gold, 0 0 20px orange;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

