/**
 * E12_U01_1 – Wort-Schatz-Profi. D&D sortiranje besed v 3 kategorije.
 * Referenca: E09_U02. Slika skrinjice pod vsakim drop poljem. Višina drop za 7 drag elementov.
 */

.exercise-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68rem;
  max-width: 80rem;
  margin: 0 auto;
}

.content-container {
  width: 68rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 68rem;
}

.categories-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.category-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 14rem;
}

.category-label {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00699F;
  text-align: center;
}

/* Drop – višina za do 7 drag elementov; slika skrinjice kot ozadje na spodnjem robu */
.drop_element {
  width: 12rem;
  min-height: 18rem;
  border: 0.2rem solid #F9B002;
  border-radius: 1.25rem;
  background-color: rgba(255, 255, 255, 0.85);
  background-image: url("rd8-2_E12_U01_L00_001.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  margin: 0 auto;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 0.5rem;
  gap: 0.2rem;
}

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

/* Slika skrinjice ni več ločen img – v ozadju drop_element */

/* Drag elementi */
.drag_element {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11rem;
  min-height: 2.25rem;
  background-color: white;
  color: #00699F;
  border: 0.2rem solid #00699F;
  border-radius: 1.25rem;
  font-weight: 500;
  cursor: grab;
  user-select: none;
  box-sizing: border-box;
  position: relative;
  text-align: center;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
}

.drag_element.dragging {
  cursor: grabbing;
  opacity: 0.7;
  z-index: 100;
}

.drop_element .drag_element {
  width: 100%;
  min-width: 0;
  max-width: 11rem;
  margin: 0;
}

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

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

.answers-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 56rem;
  max-width: 56rem;
  margin-top: 0.5rem;
}

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