/**
 * E09_U07_1 – Sortiraj besede v pravilni vrstni red (sort_order)
 * Brez drop polj; 6 vrstic, v vsaki vrstici besede za en stavek.
 */

.exercise-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70rem;
  margin: 0 auto;
  padding-top: 2rem;
}

.content-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
}

.left-column {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  width: 32rem;
  max-width: 32rem;
  min-width: 0;
  margin-left: 1rem;
}

.sentences-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 32rem;
}

.image-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.image-container img {
  max-width: 36rem;
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.sentence-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sentence-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sentence-period {
  font-size: 1rem;
  line-height: 2rem;
  color: #333;
  flex-shrink: 0;
}

.answers-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
}

.drag_element {
  width: auto;
  min-width: 4rem;
  max-width: 12rem;
  height: 2rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: grab;
  font-size: 1rem;
  user-select: none;
  border-radius: 0.9rem;
  border: 0.15rem solid #00699F;
  background-color: #fff;
  padding: 0 0.5rem;
  box-sizing: border-box;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.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: #e00;
  background-color: rgba(255, 0, 0, 0.08);
}

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