/* Main Container */
.exercise-container {
  width: 80rem;
  max-width: 90rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  margin: 0 auto;
  padding: 1rem;
}

/* Exercise Content */
.exercise-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  position: relative;
  gap: 1rem;
}

/* Columns Wrapper */
.columns-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

/* Left Column - Image and French words */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 50%;
  align-items: center;
}

/* Right Column - Image and drag items */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 50%;
  align-items: center;
}

/* Image Container */
.image-container {
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Position the two subject images closer together above the columns */
.columns-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
  margin-top: 0;
  padding-top: 1rem;
}

.left-column .image-container,
.right-column .image-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* zgornja zastava */
.left-column .image-container {
  top: 3.5rem;
}

/* spodnja zastava – pod prvo */
.right-column .image-container {
  top: 10.5rem;
}

.subject-image {
  max-width: 100%;
  width: 100%;
  max-width: 8rem;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

/* Fixed Items Column */
.fixed-items-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 70%;
}

/* Fixed Item */
.fixed-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

/* Fixed Text */
.fixed-text {
  background-color: #00699F;
  color: white;
  padding: 0 0.6rem;
  border-radius: 0.5rem;
  font-family: 'League Spartan', sans-serif;
  font-size: 1rem;
  width: 15.5rem;
  text-align: center;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Drop Zone */
.drop-zone {
  height: 3rem;
  width: 12rem;
  min-width: 12rem;
  border: 0.125rem dashed #00699F;
  border-radius: 0.5rem;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease, border-width 0.2s ease;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Drop Zone - Highlight when dragging over */
.drop-zone.drag-over {
  background-color: rgba(0, 105, 159, 0.2);
  border-style: solid;
  border-width: 0.125rem;
}

/* Drop Zone - With item dropped */
.drop-zone.filled {
  border-style: solid;
  border-width: 0.125rem;
  background-color: #f8f8f8;
}

/* Drop Zone - Correct match */
.drop-zone.correct {
  border-color: #258174;
  border-width: 0.1875rem;
  background-color: rgba(37, 129, 116, 0.2);
}

/* Drop Zone - Incorrect match */
.drop-zone.incorrect {
  border-color: #FF0000;
  border-width: 0.1875rem;
  background-color: rgba(255, 0, 0, 0.2);
}

/* Drag Items Container */
.drag-items-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

/* Drag Item */
.drag-item {
  background-color: #F9B002;
  color: white;
  border-radius: 0.5rem;
  font-family: 'League Spartan', sans-serif;
  font-size: 1rem;
  cursor: grab;
  user-select: none;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  text-align: center;
  padding: 0 0.8rem;
  width: 12rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.drag-item:hover {
  transform: scale(1.05);
}

.drag-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.drag-item.being-dragged {
  opacity: 0.4;
}

/* Drag Item in Drop Zone */
.drop-zone .drag-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border-radius: 0.3rem;
  padding: 0;
  font-size: 1.1rem;
}

.drop-zone .drag-item:hover {
  transform: none;
}

/* Ghost Element */
.ghost-element {
  pointer-events: none;
}


