/**
 * E11_U04_1 – Zwei Grüsse aus den Ferien.
 * 2 kartici (flex + div), brez slike ozadja, enaka velikost.
 */

.exercise-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}

.cards-wrapper {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.message-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 50%;
}

.message-body {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 0.1rem solid rgba(0, 105, 159, 0.3);
  font-size: 1.1rem;
  line-height: 1.5;
  box-sizing: border-box;
  width: 100%;
  min-height: 32rem;
  height: 32rem;
}

.message-body p {
  margin-bottom: 0.75rem;
}

.message-body .inline-img {
  max-width: 4rem;
  max-height: 4rem;
  vertical-align: middle;
  object-fit: contain;
}

.message-body .message-body-img {
  display: block;
  margin-top: 0.75rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  max-height: 10rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Drop – oblika po E08_U05_1, enake dimenzije kot .drag_element */
.drop_element {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18rem;
  min-width: 18rem;
  height: 2rem;
  min-height: 2rem;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 0.15rem solid #F9B002;
  border-radius: 0.9rem;
  background-color: #fff;
  padding: 0 0.4rem;
  margin: 0 0.25rem;
  vertical-align: middle;
  transition: all 0.2s ease;
}

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

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

.drop_element.incorrect {
  border-color: #e00;
  background-color: rgba(255, 0, 0, 0.08);
}

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

.answers-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  width: 100%;
}

/* Drag – oblika po E08_U05_1, vsi enako široki */
.drag_element {
  width: 18rem;
  min-width: 18rem;
  height: 2rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: grab;
  font-size: 1rem;
  user-select: none;
  box-sizing: border-box;
  border: 0.15rem solid #00699F;
  border-radius: 0.9rem;
  background-color: #fff;
  padding: 0 0.5rem;
}

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

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

.drag_element.incorrect {
  border-color: #e00;
}

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