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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Voting Section */
.voting-section {
    margin-bottom: 50px;
}

.voting-section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.vote-progress {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.progress-text {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

.voting-sites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.vote-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.vote-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vote-card h3 {
    font-size: 1.3em;
}

.vote-status {
    font-size: 1.5em;
}

.vote-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.vote-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.vote-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.vote-btn.voted {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.timer {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9em;
    opacity: 0.8;
}

.thank-you-message {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.thank-you-message p {
    font-size: 1.3em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}



/* Blackjack Section */
.blackjack-section {
    margin-bottom: 50px;
    background: rgba(0, 100, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #4CAF50;
}

.blackjack-header {
    text-align: center;
    margin-bottom: 30px;
}

.blackjack-header h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #FFD700;
}

.blackjack-info {
    font-size: 1.1em;
    opacity: 0.9;
    color: #fff;
}

.blackjack-container {
    max-width: 800px;
    margin: 0 auto;
}

.dealer-area, .player-area {
    margin-bottom: 30px;
}

.dealer-area h3, .player-area h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.score {
    color: #FFD700;
    margin-left: 10px;
}

.cards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 120px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.card {
    width: 80px;
    height: 110px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: bold;
    color: #2c3e50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: cardDeal 0.5s ease;
    border: 3px solid #4CAF50;
}

@keyframes cardDeal {
    from {
        transform: translateY(-100px) rotateY(180deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateY(0);
        opacity: 1;
    }
}

.card-value {
    font-size: 1em;
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.game-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#drawCardBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#denisaDrawBtn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

#stopBtn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

#newGameBtn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.start-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-size: 1.3em;
    padding: 20px 40px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.start-btn:hover:not(:disabled) {
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

.prize-display {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    min-height: 100px;
}

.game-result {
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    padding: 20px;
    border-radius: 10px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-result.win {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.game-result.lose {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
    border: 2px solid #f44336;
}

.game-result.push {
    background: rgba(255, 193, 7, 0.3);
    color: #FFC107;
    border: 2px solid #FFC107;
}

/* Statistics Section */
.stats-section {
    margin-bottom: 50px;
}

.stats-section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-box h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFD700;
}

.stats-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stats-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.stats-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.stats-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.positive {
    color: #4CAF50;
}

.negative {
    color: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .voting-sites {
        grid-template-columns: 1fr;
    }

    .spin-wheel {
        width: 250px;
        height: 250px;
    }

    .game-controls {
        flex-direction: column;
    }

    .game-btn {
        width: 100%;
    }

    .stats-table {
        font-size: 0.9em;
    }

    .stats-table th,
    .stats-table td {
        padding: 8px;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}
