body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}

.container {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
}

.message {
    margin: 20px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #0056b3;
}

.doors-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 20px;
}

.door {
    width: 120px;
    height: 180px;
    background-image: url('reddoor.jpg'); 
    background-size: cover;
    background-position: center;
    border: 5px solid #6b4423;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, border-color 0.3s;
    user-select: none;
    position: relative;
    border-radius: 5px;
    overflow: hidden; 
}

.door:hover:not(.removed):not(.final-reveal) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.door-frame {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px 0;
}

.door-label {
    font-size: 2em;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    z-index: 2; 
}

.door-prize {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.5); 
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.prize-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; 
    display: block; 
}

.selected {
    border-color: #ffc107;
    box-shadow: 0 0 15px #ffc107;
}

.removed {
    border-color: #6c757d; 
    opacity: 0.9;
    cursor: default;
}

.removed .door-prize {
    opacity: 1; 
    background-color: rgba(108, 117, 125, 0.7); 
}

.final-reveal {
    cursor: default;
}

.final-reveal .door-prize {
    opacity: 1; 
    background-color: transparent;
}

.winner {
    border-color: #28a745; 
}

.loser {
    border-color: #dc3545; 
}

.outcome {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.outcome.win {
    color: #28a745;
}

.outcome.loss {
    color: #dc3545;
}