/**
 * Was brauchen die Projekt-Gruppen? (D&D) – izgled po E06_U01_2
 * Tabela 2x2, dropzone in drag elementi
 */

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

.exercise-container {
  width: 68rem;
  margin: 0 auto;
  padding-top: 1rem;
  padding-bottom: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: "League Spartan", sans-serif;
}

/* ena vrstica, 4 stolpci, brez obrob */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.group-cell {
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background-color: #fff;
  min-width: 0;
}

.group-name {
  margin: 0 0 0.4rem 0;
  font-size: 1.3rem;
  font-weight: bold;
  color: #00699F;
  font-family: "League Spartan", sans-serif;
}

/* group-item le širina vsebine = ena širina z drop_element (ni odvečnega prostora) */
.group-item {
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  flex-wrap: nowrap;
  width: fit-content;
}

/* oblika po E05_U02_2; obroba ostane vidna tudi z odloženim elementom (po E05_U02_1) */
.drop_element {
  width: 11rem;
  min-width: 11rem;
  height: 2.7rem;
  min-height: 2.7rem;
  border-radius: 1.6rem;
  border: 0.2rem solid #F9B002;
  background-color: rgba(249, 176, 2, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
  padding: 0.15rem;
}

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

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

/* ko je drag v dropzone: brez obrobe, prosojno ozadje – obroba dropzone ostane vidna (po E05_U02_1) */
.drop_element .drag_element {
  background-color: transparent;
  border: 0;
  margin: 0;
}

/* 4 stolpci (po skupinah), 3 vrstice; polnjenje po stolpcih za vertikalne sezname */
.answers-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  justify-items: start;
  align-items: center;
  row-gap: 0.35rem;
  column-gap: 0.5rem;
  padding: 0.35rem 1.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.answers-container .drag_element {
  margin: 0.25rem 0;
}

.drop_element.correct,
.drag_element.correct {
  border-color: #258174;
  background-color: rgba(37, 129, 116, 0.1);
}

.drop_element.incorrect,
.drag_element.incorrect {
  border-color: #ff0000;
  background-color: rgba(255, 0, 0, 0.1);
}

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

/* Ilustracija projektnih skupin pod seznamom odgovorov */
.answers-container-image {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.5rem 0;
  display: flex;
  justify-content: center;
}

.answers-container-image img {
  max-width: 100%;
  max-height: 10rem;
  width: auto;
  height: auto;
  object-fit: contain;
}
