/* Exercise Container */
.exercise-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 68rem;
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.content-container {
    width: 68rem;
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 2rem;
    align-items: start;
    padding-top: 1rem;
}

/* Audio Container (kept for layout consistency, no audio in this task) */
.audio-container {
    width: 5rem;
    grid-column: 1;
}

/* Exercise Content */
.exercise-content {
    width: 60rem;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

/* Scene with background image and dropzones */
.scene-container {
    position: relative;
    width: 52rem;
    height: 32rem;
    background-image: url("rd8-2_E07_U05_L00_001.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.scene-drop {
    position: absolute;
    z-index: 2;
}

/* Positions of the five dropzones on the scene (all sizes in rem),
   aligned to the solution layout image */
.scene-drop.drop1 {
    top: -1.5rem;
    left: 4rem;
}

.scene-drop.drop2 {
    top: 11rem;
    left: 24rem;
}

.scene-drop.drop3 {
    top: 15rem;
    left: 9rem;
}

.scene-drop.drop4 {
    top: 17rem;
    left: 22rem;
}

.scene-drop.drop5 {
    top: 15rem;
    left: 40rem;
}

.scene-drop.drop-snap {
    z-index: 1;
    border: 0;
    background-color: transparent;
}

.scene-drop.drop6 {
    top: 0rem;
    left: 2.4rem;
    width: 14.7rem;
    height: 12.9rem;
    border: 0;
    background-color: transparent;
}

.scene-drop.drop7 {
    top: 0rem;
    left: 18.5rem;
    width: 14.7rem;
    height: 12.9rem;
}

.scene-drop.drop9 {
    top: 18.8rem;
    left: 2.4rem;
    width: 14.7rem;
    height: 12.9rem;
}

.scene-drop.drop10 {
    top: 18.8rem;
    left: 18.5rem;
    width: 14.7rem;
    height: 12.9rem;
}

.scene-drop.drop11 {
    top: 18.8rem;
    left: 34.8rem;
    width: 14.7rem;
    height: 12.9rem;
}

/* Common styles for drag and drop elements */
.drag_element {
    width: 9rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    border-radius: 1.25rem;
    margin: 0.25rem;
    padding: 0.25rem;
    cursor: grab;
    user-select: none;
    background-color: transparent;
    border: none;
    overflow: hidden;
}

.drag_element img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drag_element.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.drag_element.correct {
    border-color: #258174;
    background-color: rgba(37, 129, 116, 0.1);
}

.drag_element.incorrect {
    border-color: #FF0000;
    background-color: rgba(255, 0, 0, 0.1);
}

/* Drop Element Specific */
.drop_element {
    width: 9rem;
    height: 5.5rem;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    border: 2px solid #F9B002;
    background-color: rgba(255, 255, 255, 0.8);

}

.scene-container .drop_element.scene-drop:not(.drop-snap) {
    border: 0;
    background-color: transparent;
}



.scene-container .drop_element.scene-drop:not(.drop-snap).correct {
    border: 0.35rem solid #258174;
    background-color: transparent;
}

.scene-container .drop_element.scene-drop:not(.drop-snap).incorrect {
    border: 0.35rem solid #FF0000;
    background-color: transparent;
}

/* Answers Container */
.answers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    width: 52rem;
}

/* Mobile Touch Drag Styles */
@media (hover: none) {
    .drag_element {
        touch-action: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

