.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;
  align-items: center;
}

.media-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  justify-content: center;
}

.image-container {
  height: 15rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  height: 15rem;
  width: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.items-table {
  width: 42.5rem;
  border-collapse: collapse;
  margin: 1rem 0;
}

.items-table td {
  padding: 1rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #ccd7eb;
}

.items-table tr:first-child td {
  background-color: #f5f7fa;
  font-weight: normal;
  height: 2.5rem;
}

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

.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;
}

.dropzone {
  width: 11rem;
  min-height: 2.5rem;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.answer.dragging {
  opacity: 0.5;
}

.dropzone.dragover {
  background-color: rgba(0, 0, 0, 0.05);
}

.audio-container {
  display: flex;
  align-items: center;
}

.audio-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 5rem;
  height: 5rem;
  transform: scale(.95);
  transition: transform 0.2s ease;
}

.audio-button:hover {
  transform: scale(1.0);
}

.audio-button img {
  width: 100%;
  height: 100%;
}

.hidden {
  display: none;
}

.dropzones-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.right-container {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  max-height: calc(100vh - 2rem);
  width: 30rem;
}

.dialog-line {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
}

.matched {
  pointer-events: none;
}

/* Remove custom border styles and use main.css classes */
.answer.correct, .answer.incorrect {
  background-color: transparent;
}

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

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

/* Mobile Touch Drag Styles */
#dragging-clone {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform-origin: center center;
  transform: scale(1.05);
  transition: 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;
  }
}

/* Mobile and Landscape Adjustments */
@media screen and (max-width: 768px), (orientation: landscape) and (max-height: 600px) {
  .exercise-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .content-container {
    padding-right: 0.5rem;
  }

  .right-container {
    grid-column: 1;
    max-height: none;
  }

  .image-container {
    height: 12rem;
    min-height: 12rem;
  }

  .answer, .dropzone {
    width: 11rem;
    max-width: 35rem;
  }

  .answers-container {
    padding-bottom: 3rem;
  }

  .audio-button {
    width: 4rem;
    height: 4rem;
  }
} 
.dropzone .drag_element{
  border: 0px;
  justify-content:start;
  align-items: center;
}