/**
 * Wo hörst du diese Sätze? - D&D: Ziehe den Namen des Raums zu den Sprechblasen.
 * Izgled po E05_U02_2 (sentence-rows, divider); dropzone in drag_element dodani.
 */

@font-face {
  font-family: "League Spartan";
  src: url('../assets/fonts/LeagueSpartan-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.exercise-container {
  width: 74rem;
  max-width: 100%;
  min-height: 40rem;
  margin: 0 auto;
  padding: 1rem;
  font-family: "League Spartan", sans-serif;
}

.sentence-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
  padding: 1rem 1.25rem;
}

.sentence-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-height: 3rem;
}

.sentence-text {
  flex: 0 0 56ch;
  width: 56ch;
  font-size: 1.2rem;
  color: #333;
  white-space: nowrap;
}

.sentence-divider {
  flex-shrink: 0;
  width: 0.25rem;
  align-self: stretch;
  min-height: 2.5rem;
  background-color: #00699f;
  border-radius: 0.125rem;
  margin: 0 0.5rem;
}

.sentence-answer {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Dropzone – enaka velikost kot drag_element (najdaljši: in der Bibliothek) */
.drop_element {
  width: 20ch;
  min-width: 20ch;
  height: 2.5rem;
  min-height: 2.5rem;
  border-radius: 1.25rem;
  border: 0.2rem solid #F9B002;
  background-color: rgba(249, 176, 2, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.drop_element.dragover {
  border-color: #00699f;
  background-color: rgba(0, 105, 159, 0.08);
}

.drop_element .drag_element {
  background-color: transparent;
  border: 0;
  margin: 0;
  width: 20ch;
  min-width: 20ch;
  cursor: default;
}

.answers-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 74rem;
  max-width: 100%;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
  justify-items: center;
}

.drag_element {
  width: 20ch;
  min-width: 20ch;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-family: "League Spartan", sans-serif;
  user-select: none;
  border-radius: 1.25rem;
  border: 0.2rem solid #00699F;
  background: #fff;
  cursor: grab;
  box-sizing: border-box;
  padding: 0 0.5rem;
  text-align: center;
}

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

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

.drop_element.incorrect,
.drag_element.incorrect {
  border-color: #ff0000;
}

.ghost {
  pointer-events: none;
}

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