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

.content-container {
    width: 68rem;
    display: grid;
    grid-template-columns: 1fr 25rem;
    gap: 2rem;
    padding: 2rem;
    align-items: start;
    max-height: calc(100vh - 14rem); /* Account for header, footer, and padding */
}

/* Dialogue Content */
.dialogue-content {
    display: flex;
    flex-direction: column;
    width: 25rem;
    background-color: white;
    border-radius: 1rem;
}

.dialogue-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    min-height: 3rem;
}

.dialogue-line .drop_element {
    flex: 1;
    margin-left: 0;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

/* Image Container */
.image-container {
    width: 100%;
    height: 16rem; /* Reduced height */
    border-radius: 1rem;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Common styles for drag and drop elements */
.drag_element,
.drop_element {
    width: 18rem;
    height: 2.5rem; /* Fixed height for both */
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    border-radius: 1.25rem;
    margin: 0;
    padding: 0.5rem 1rem;
}

/* Drag Element Specific */
.drag_element {
    cursor: grab;
    font-size: 1rem;
    user-select: none;
    z-index: 2;
    background-color: white;
    border: 2px solid #00699F;
}

.drag_element span {
    width: 100%;
}

.drag_element.dragging {
    opacity: 0.5;
    cursor: grabbing;
    z-index: 1;
}

.drag_element.correct {
    border-color: #258174;
 
}

.drag_element.incorrect {
    border-color: #FF0000;
    
}

/* Drop Element Specific */
.drop_element {
    transition: all 0.3s ease;
    border: 2px solid #F9B002;
    background-color: white;
}

/* Answers Container */
.answers-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    width: 25rem;
    justify-content: center;
    align-items: start;
    background-color: white;
    border-radius: 1rem;
    max-height: calc(100vh - 32rem); /* Ensure it fits above check button */
}

/* Mobile Touch Drag Styles */
@media (hover: none) {
    .drag_element {
        touch-action: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
} 
.drop_element .drag_element{
    border: 0px;
    background-color: transparent;
  }
  .drop_element.correct {
    border-color: #258174;
    background-color: transparent;
  }
  
  .drop_element.incorrect {
    border-color: #FF0000;
    background-color: transparent;
  }
