/**
 * E11_U10_1 – Eine Postkarte schreiben. (D&D)
 * Postava po E11_U10_3. Drag/drop oblika po E07_U01_1.
 * Vsebina med header in footer, brez prekrivanja footerja.
 */

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

.exercise-container {
  width: 100%;
  max-width: 85rem;
  margin: 0 auto;
  font-family: "League Spartan", sans-serif;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  min-height: 0;
  max-height: calc(100vh - 11rem);
}

/* main-content: scene-images (levo) + postkarta/answers (desno) */
.main-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

/* Desni del: postkarta in answers poravnana na desno */
.main-content-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

/* Minimalen razmak med naslovom (h3) in postkarto */
#main {
  padding-top: 0;
}

.postcard-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  flex-shrink: 0;
  margin-top: 0;
}

/* Ikone ob postkartici (levo) */
.scene-images {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "cross cross"
    "cold sun"
    "ski sled"
    "pizza smile";
  column-gap: 0.9rem;
  row-gap: 0.85rem;
  z-index: 3;
  width: 7.4rem;
  margin-right: 0;
  margin-top: 4.5rem;
  align-self: flex-start;
}

/* Ilustracije – zmanjšane, da je levi stolpec ozek */
.scene-img {
  width: 2.8rem;
  height: auto;
  max-height: 2.8rem;
  object-fit: contain;
  pointer-events: none;
}

.scene-images .scene-img.img-1 {
  grid-area: cross;
  justify-self: center;
  width: 3.2rem;
  max-height: 3.2rem;
}

.scene-images .scene-img.img-2 { grid-area: cold; justify-self: end; width: 2.8rem; max-height: 2.8rem; }
.scene-images .scene-img.img-3 { grid-area: sun; justify-self: start; width: 2.6rem; max-height: 2.6rem; }
.scene-images .scene-img.img-4 { grid-area: ski; justify-self: end; width: 2.7rem; max-height: 2.7rem; }
.scene-images .scene-img.img-5 { grid-area: sled; justify-self: start; width: 2.7rem; max-height: 2.7rem; }
.scene-images .scene-img.img-6 { grid-area: pizza; justify-self: end; width: 2.4rem; max-height: 2.4rem; }
.scene-images .scene-img.img-7 { grid-area: smile; justify-self: start; width: 2.8rem; max-height: 2.8rem; }

.postcard-wrapper {
  position: relative;
  z-index: 2;
  width: 66rem;
  max-width: 88%;
  height: 28rem;
  max-height: 30rem;
  flex-shrink: 0;
  background-image: url("postkarte.jpg");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: transparent;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Vsebina znotraj kartice – odmik od zgornjega roba kartice */
.postcard-content {
  width: 50%;
  max-width: 22rem;
  margin: 1.5rem 0 1rem 2.25rem;
  padding: 0.5rem 0;
}

.postcard-line {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
  margin: 0.7rem 0 0.35rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  font-family: "League Spartan", sans-serif;
}

/* Manjši vertikalni razmak med dropzonami */
.postcard-line:has(.drop_element) {
  margin-bottom: 0.15rem;
}

/* Drop element – fiksna oblika in velikost (prazna ali z vsebino enaka) */
.drop_element {
  width: 100%;
  min-width: 29rem;
  min-height: 2.5rem;
  height: 2.5rem;
  border-radius: 1.25rem;
  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;
  box-sizing: border-box;
  padding: 0.25rem 0.5rem;
}

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

/* Drag element – oblika po E07_U01_1; 2 vrstici po 2; ne prekriti footerja */
.answers-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.6rem;
  width: 100%;
  max-width: 58rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  justify-items: stretch;
  align-items: start;
}

.drag_element {
  width: 100%;
  min-width: 29rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: grab;
  font-size: 1.15rem;
  font-family: "League Spartan", sans-serif;
  user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 1;
  border-radius: 1.25rem;
  border: 0.2rem solid #00699F;
  background: #FFF;
  box-sizing: border-box;
  padding: 0.35rem 0.5rem;
}

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

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

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

.drop_element .drag_element {
  background: none;
  border: 0;
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 2.5rem;
  max-height: 3.5rem;
  height: auto;
  padding: 0.35rem 0.5rem;
  font-size: 1.15rem;
  font-family: "League Spartan", sans-serif;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

