body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.game-info {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.game-info p {
    margin: 12px 0;
    font-size: 1.1em;
    color: #2c3e50;
}

#stats {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.2em;
}

.doors {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px 0;
    perspective: 1000px;
}

.door {
    width: 130px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    margin: 0 auto;
}

.door.flipped {
    transform: rotateY(180deg);
}

.door-front, .door-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.door-front {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: 4px solid #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.door-front::before {
    content: "🚪";
    font-size: 2em;
    margin-bottom: 10px;
}

.door-back {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    color: #2c3e50;
    transform: rotateY(180deg);
    border: 4px solid #fff;
    font-size: 18px;
    flex-direction: column;
}

.door.selected .door-front {
    background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.6);
    transform: scale(1.05);
}

.door.revealed .door-back {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    animation: pulse 1s infinite;
}

.door.winner .door-back {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    animation: winnerPulse 1s infinite;
}

.door-back::before {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.door.goat .door-back::before {
    content: "🐐";
}

.door.car .door-back::before {
    content: "🚗";
}

.door.disabled {
    pointer-events: none;
    opacity: 0.7;
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px #e74c3c; }
    50% { box-shadow: 0 0 20px #e74c3c; }
    100% { box-shadow: 0 0 5px #e74c3c; }
}

@keyframes winnerPulse {
    0% { box-shadow: 0 0 5px #2ecc71; }
    50% { box-shadow: 0 0 25px #2ecc71; }
    100% { box-shadow: 0 0 5px #2ecc71; }
}

.game-controls {
    margin: 30px 0;
}

button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    margin: 0 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#switch-btn {
    background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
}

#stay-btn {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.message {
    font-size: 22px;
    font-weight: bold;
    margin: 25px 0;
    padding: 20px;
    border-radius: 10px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.message.info {
    background: linear-gradient(135deg, #d5f5e3 0%, #82e0aa 100%);
    color: #27ae60;
}

.message.warning {
    background: linear-gradient(135deg, #fef9e7 0%, #f9e79f 100%);
    color: #f39c12;
}

.message.error {
    background: linear-gradient(135deg, #fadbd8 0%, #f1948a 100%);
    color: #e74c3c;
}

.message button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .doors {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .door {
        width: 100px;
        height: 160px;
    }
    
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .message {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .doors {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .door {
        width: 120px;
        height: 180px;
    }
    
    button {
        padding: 12px 20px;
        font-size: 16px;
        margin: 5px;
    }
    
    .message {
        font-size: 16px;
        padding: 15px;
    }
}