/* E02_U01_1 – Welche Fächer sind das? D&D 10 pictures-audios. Dva stolpca 5 zvok+drop, spodaj drag slike. */

.exercise-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  max-height: calc(100vh - 12rem);
  min-height: 0;
  padding-top: 0;
  padding-bottom: 1rem;
}

.content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
  min-height: 0;
}

.tables-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  flex-shrink: 0;
}

.exercise-table {
  width: auto;
  flex-shrink: 0;
  border-collapse: separate;
  border-spacing: 0 0.3rem;
}

.exercise-table td {
  vertical-align: middle;
  padding: 0.25rem 1rem;
}

.audio-cell {
  width: 3.5rem;
  max-width: 3.5rem;
  text-align: center;
}

.audio-cell .audio-player {
  position: relative;
  left: auto !important;
  top: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drop-cell {
  width: auto;
  min-width: 0;
}

.drop_element {
  width: 4.5rem;
  height: 4.5rem;
  min-width: 4.5rem;
  min-height: 4.5rem;
  box-sizing: border-box;
  border-radius: 0.6rem;
  border: 0.2rem solid #F9B002;
  background-color: rgba(249, 176, 2, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.drag_element {
  width: 4.5rem;
  height: 4.5rem;
  min-width: 4.5rem;
  min-height: 4.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  background-color: #FFF;
  border: 0.2rem solid #00699F;
  border-radius: 0.6rem;
  overflow: hidden;
  padding: 0;
  position: relative;
  z-index: 1;
}

.drag_element img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.answers-container .drag_element img {
  transform: scale(1.08);
}

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

.drop_element .drag_element {
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.drop_element .drag_element img {
  transform: none;
}

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

.answers-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  width: 100%;
  max-width: 28rem;
  justify-items: center;
  align-items: center;
  flex-shrink: 0;
}

.answers-container > .drag_element {
  justify-self: center;
}

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

@media (max-width: 48rem) {
  .tables-row {
    flex-direction: column;
    align-items: center;
  }

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

  .answers-container {
    max-width: 22rem;
    grid-template-columns: repeat(5, 1fr);
  }
}
