/**
 * Aktivitäten der Projektgruppen. (D&D) – oblika in postavitev po E06_U02_2
 * 2 stolpca, 8 elementov (slika | label | dropzone). Drag elementi spodaj.
 */

@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: 100%;
  max-width: 52rem;
  margin: 0 auto;
  font-family: "League Spartan", sans-serif;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
  padding: 0.5rem 1rem;
}

.activity-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.08);
  min-height: 0;
}

.activity-item .activity-image {
  margin-right: 0.25rem;
}

.activity-item .activity-label {
  margin-right: 0.15rem;
}

.activity-image {
  width: 9rem;
  object-fit: cover;
  border-radius: 0.4rem;
  flex-shrink: 0;
}

.activity-label {
  font-size: 1.05rem;
  color: #333;
  flex-shrink: 0;
  font-family: "League Spartan", sans-serif;
}

.drop_element {
  flex: 1;
  min-width: 5.5rem;
  max-width: 5.5rem;
  height: 2.25rem;
  min-height: 2.25rem;
  border-radius: 1.2rem;
  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;
}

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

/* enaka širina za vse – po najdaljši besedi (npr. schreiben, schneiden) */
.drag_element {
  width: 5.5rem;
  min-width: 5.5rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-family: "League Spartan", sans-serif;
  user-select: none;
  border-radius: 1.2rem;
  border: 0.2rem solid #00699F;
  background: #fff;
  cursor: grab;
  box-sizing: border-box;
  text-align: center;
  margin: 0.25rem;
}

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

.answers-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.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);
}

@media (max-width: 768px) {
  .activity-grid {
    gap: 0.5rem 1rem;
    padding: 0.5rem;
  }

  .activity-item {
    padding: 0.4rem 0.5rem;
    gap: 0.4rem;
  }

  .activity-image {
    width: 5.85rem;
    height: 4.4rem;
  }

  .activity-label {
    font-size: 0.95rem;
    min-width: 3.5rem;
  }

  .drop_element {
    max-width: 6rem;
    height: 2rem;
    min-height: 2rem;
  }
}
