/* Content Container */
.exercise-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 12rem); /* Account for header and footer */
}

.content-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
 /*   gap: 2rem;*/
    padding: 2rem;
    margin-bottom: 4rem; /* Space for check button */
}

/* Decorative Images */
.decorative-images {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.decorative-image {
    position: absolute;
    width: 10rem;
    height: 10rem;
    object-fit: contain;
    pointer-events: none;
}

/* Image Positions - Adjusted to avoid text overlap */
.top-left {
    top: 2rem;
    left: -10rem;
}

.top-right {
    top: 1rem;
    right: -8rem;
}

.middle-left {
    top: 40%;
    left: -6rem;
    transform: translateY(-50%);
}

.middle-right {
    top: 40%;
    right: -5rem;
    transform: translateY(-50%);
}

.bottom-left {
    bottom: 14rem;
    left: -10rem;
}

.bottom-right {
    bottom: 12rem;
    right: -7rem;
}

/* Text Content */
.text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
 /*   padding: 2rem;*/
    min-width: 30rem;
    z-index: 1;
}

.text-line {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    min-width: 20rem;
    justify-content: center;
    gap: 0;
}

.text-line .prefix,
.text-line .suffix {
    padding: 0.5rem 0;
}

/* Common styles for drag and drop elements */
.drag_element,
.drop_element {
    width: 8rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    border-radius: 1.25rem;
    margin: 0;
}

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

.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 {
    transition: all 0.3s ease;
    z-index: 1;
    border: 2px solid #F9B002;
    background-color: white;
}

.drop_element.dragover {
    background-color: rgba(249, 176, 2, 0.1);
    border-style: solid;
}

/* Answers Container */
.answers-container {
    display: grid;
    grid-template-columns: repeat(3, 8rem);
    gap: 1rem;
    width: 100%;
    max-width: 28rem;
    padding: 1rem;
    justify-content: center;
    align-items: start;
    min-height: 8rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    z-index: 1;
}

/* Feedback Overlay */


.feedback.show {
    display: block;
}

/* 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;
    justify-content:start
  }
  .drop_element.correct {
    border-color: #258174;
  }
  
  .drop_element.incorrect {
    border-color: #FF0000;
  }
  .drop_element.suffix .drag_element{
    justify-content: end;
  }