.exercise-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  height: 100%;
  box-sizing: border-box;
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;

}

.image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.image-container img {
  height: auto;
  max-width: 70%;
  max-height: 15rem;
  object-fit: contain;
}

.categories-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccd7eb;
  table-layout: fixed;
}

.categories-table th {
  padding: 1rem;
  text-align: center;
  font-weight: normal;
  border: 1px solid #ccd7eb;
  background-color: #f5f7fa;
  height: 2.5rem;
  vertical-align: middle;
}

.categories-table td {
  padding: 0.5rem;
  border: 1px solid #ccd7eb;
  vertical-align: top;
}

.answers-container {
  display: grid;
  grid-template-columns: repeat(5, 11rem);
  grid-template-rows: repeat(2, auto);
  gap: 0.5rem;
  padding: 1rem;
  justify-content: center;
}

.answer {
  width: 11rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  box-sizing: border-box;
  cursor: move;
  text-align: center;
  position: relative;
  z-index: 1;
}

.dropzone {
  width: 11rem;
  height: 5.5rem;
  transition: all 0.3s ease;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
}

.dropzone .answer {
  width: 11rem;
  margin: 0;
  position: absolute;
}

.dropzone .answer:nth-child(1) {
  top: 0;
}

.dropzone .answer:nth-child(2) {
  top: 2.75rem;
}

.answer.dragging {
  opacity: 0.5;
}

.matched {
  pointer-events: none;
}

/* Validation styles */
.answer.correct {
  border-color: #258174;
}

.answer.incorrect {
  border-color: #FF0000;
}

/* Mobile Touch Drag Styles */
#dragging-clone {
  background-color: white;
  border-radius: 5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform-origin: center center;
  transform: scale(1.05);
  transition: none;
  position: fixed;
  z-index: 1000;
  pointer-events: none;
}

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

  .answer:active {
    cursor: grabbing;
  }

  .dropzone {
    touch-action: none;
  }
} 
