/* CSS pour la scène */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
}

.scene {
    width: 1280px;
    height: 853px; 
    position: relative;
    margin: auto;
    border: 2px solid #000;
}

.background {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    position: absolute;
    top: 0;
    left: 0;
}

#brosse, #cle, #question, #toilette, #cadenas, #horloge {
    height: 100px;
    width: 100px;
    position: absolute;
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.7)); 
    transition: transform 0.3s ease, filter 0.3s ease; 
}

#brosse {
    top: 70%;
    left: 25%;
    cursor: pointer;
    width: auto;
    opacity: 0.9;
    z-index: 1;
}

#horloge {
    top: 21%;
    left: 36%;
    cursor: pointer;
    width: auto;
    opacity: 0.9;
    z-index: 1;
}

#cle {
    top: 78%;
    left: 25%;
    width: auto;
    height: 30px;
    z-index: 3;
    cursor: move;
}

#question {
    top: 20%;
    left: 10%;
    opacity: 0.7;
    cursor: move;
    width: auto;
    height: 45px;
    z-index: 3;
}

#toilette {
    top: 72%;
    left: 13%;
    opacity: 0.8;
    height: auto;
    z-index: 2;
}

#cadenas {
    top: 54%;
    left: 59%;
    width: auto;
    height: 20px;
    opacity: 0.8;
    z-index: 2;
}

#brosse:hover, #cle:hover, #question:hover, #toilette:hover, #cadenas:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 255, 0, 1));
    z-index: 10; 
}


.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    padding: 25px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 4;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #333;
}

#retryButton {
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

#retryButton:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    box-shadow: 0 7px 20px rgba(37, 117, 252, 0.5);
    transform: translateY(-3px);
}

.hidden {
    display: none;
}
