/* Main Container */
.exercise-container {
  width: 68rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  margin-bottom: 3rem;
  margin-top: 3rem;
}

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

/* Word Row */
.word-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  position: relative;
}

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

/* Drop Zone */
.drop-zone {
  height: 2.9375rem;
  width: 12.625rem;
  border: 3px dashed #00699F;
  border-radius: 0.5rem;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease, border-width 0.2s ease;
}

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

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

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

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

/* Drag Items Container - below all rows */
.drag-items-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  width: 100%;
  padding: 2rem 1rem 0;
  margin-top: 1rem;
  flex-wrap: nowrap;
}

/* Drag Item */
.drag-item {
  background-color: #F9B002;
  color: white;
  border-radius: 0.5rem;
  font-family: 'League Spartan', sans-serif;
  font-size: 1.4rem;
  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;
  width: 12.625rem;
  height: 2.9375rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

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

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

/* 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.4rem;
}

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

