/* E12_U08_1 Korrektur-Profi – zmanjšani razmiki, vsebina nad footerjem; essen/machen fiksna */
.exercise-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    width: 68rem;
    max-width: 80rem;
    margin: 0 auto;
    max-height: calc(100vh - 12rem);
    min-height: 0;
    position: relative;
    z-index: 1;
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 68rem;
}

.table-column {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    max-width: 40rem;
}

.sentences-table {
    width: 100%;
}

.sentences-table tbody tr + tr td {
    padding-top: 1rem;
}

.sentences-table td {
    padding: 0.15rem 0.25rem;
    vertical-align: middle;
}

.drag_element {
    display: flex;
    align-items: center;
    cursor: grab;
    font-size: 1.2rem;
    user-select: none;
    position: relative;
    z-index: 2;
    padding: 0.35rem 0.6rem;
    background-color: white;
    border: 0.2rem solid #00699F;
    border-radius: 1.25rem;
    transition: transform 0.2s ease;
    margin: 0.1rem;
    touch-action: none;
    box-sizing: border-box;
}

.drag_element.dragging {
    opacity: 0.8;
    cursor: grabbing;
    transform: scale(1.02);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.drag_element.correct {
    border: 0.2rem solid #258174;
    border-radius: 1.25rem;
}

.drag_element.incorrect {
    border: 0.2rem solid #FF0000;
    border-radius: 1.25rem;
}

.fixed-word {
    font-size: 1.2rem;
    color: #00699F;
    margin: 0 0.1rem;
    padding: 0.2rem 0;
}

.drop_element {
    min-height: 2.5rem;
    border: 0.2rem solid #F9B002;
    border-radius: 1.25rem;
    padding: 0.25rem 0.35rem;
    transition: background-color 0.3s ease;
    background-color: white;
    box-sizing: border-box;
    margin: 0;
}

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

.drop_element.correct {
    border: 0.2rem solid #258174;
    border-radius: 1.25rem;
}

.drop_element.incorrect {
    border: 0.2rem solid #FF0000;
    border-radius: 1.25rem;
}

.words-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    min-height: 2rem;
    padding: 0.15rem;
}

@media (hover: none) {
    .drag_element {
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }

    .drag_element.dragging {
        opacity: 0.8;
        cursor: grabbing;
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
        transform: scale(1.02);
    }

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

.drag_element {
    padding: 0.35rem 0.6rem;
    margin: 0.1rem;
    -webkit-tap-highlight-color: transparent;
}

.drop_element {
    min-height: 2.5rem;
}
