/* E11_U03_1 – Drei Postkarten. 5 slik, pod vsako drop zone, 3 audio gumbi. */

.exercise-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  box-sizing: border-box;
}

.table-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.exercise-table {
  border-collapse: separate;
  border-spacing: 1.5rem;
  margin: 0 auto;
}

.images-row td {
  text-align: center;
  padding: 0.5rem;
  vertical-align: middle;
}

.spot-image {
  display: block;
  width: 100%;
  max-width: 16.8rem;
  height: auto;
  max-height: 12rem;
  object-fit: contain;
  border-radius: 0.5rem;
  margin: 0 auto;
}

.drop-row td {
  text-align: center;
  padding: 0.5rem;
  vertical-align: middle;
}

.drop_element {
  width: 9rem;
  min-height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.9);
  border: 0.2rem solid #F9B002;
  border-radius: 0.5rem;
  margin: 0 auto;
  transition: background-color 0.2s ease;
}

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

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

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

.drop_element .drag_element {
  border: 0;
  background: transparent;
  opacity: 1;
}

.drag-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
}

.drag_element {
  width: 9rem;
  min-height: 9rem;
  cursor: grab;
  user-select: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 0.2rem solid #00699F;
  border-radius: 0.5rem;
  position: relative;
}

.drag_element .audio-player {
  position: relative;
  left: auto !important;
  top: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
}

.drag_element.dragging {
  opacity: 0.6;
  cursor: grabbing;
  z-index: 1000;
}

@media (hover: none) {
  .drag_element {
    touch-action: none;
  }
}

@media (max-width: 768px) {
  .exercise-table {
    border-spacing: 1rem;
  }

  .drop_element,
  .drag_element {
    width: 8rem;
    min-height: 8rem;
  }

  .spot-image {
    max-width: 12rem;
    max-height: 9.6rem;
  }
}
