/* Main Container */
.exercise-container {
  width: 68rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Main Content with Audio and Dialogue */
.main-content {
  display: flex;
  width: 68rem;
  max-width: 80rem;
  margin: 0 auto;
}

/* Content Container */
.content-container {
  display: flex;
  flex-direction: column;
  width: 68rem;
}

/* Dialogue Section */
.dialogue-section {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: 50rem;
  margin-bottom: 1rem;
}

/* Audio Container */
.audio-container {
  flex: 0 0 5rem;
  margin-right: 2rem;
  margin-top: 0.5rem;
}

/* Audio Button */
.audio-button {
  width: 5rem;
  height: 5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.audio-button .pause-icon {
  display: none;
}

.audio-button.playing .play-icon {
  display: none;
}

.audio-button.playing .pause-icon {
  display: block;
}

/* Image Container */
.image-container {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.scene-image {
  max-width: 24rem;
  height: auto;
  border-radius: 0.5rem;
}

.image-answers-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1rem;
}

/* Dialogue Container */
.dialogue-container {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Dialogue Line */
.dialogue-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Speaker */
.speaker {
  flex: 0 0 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.speaker .bullet {
  width: 1.4rem;
  height: 1.4rem;
}

/* Speech Bubble */
.speech-bubble {
  position: relative;
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 0rem 1rem;
  flex: 1;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

/*.speech-bubble::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #fff;
  transform: rotate(45deg);
}*/

/* Drop Element in Speech Bubble */
.speech-bubble .drop_element {
  width: 100%;
  min-height: 2.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  padding: 0.25rem;
  box-sizing: border-box;
}

/* Answers Container */
.answers-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
  background-color: #f5f7fa;
  border-radius: 0.75rem;
  margin: 0 auto 1rem;
  min-height: 5rem;
  max-width: 80rem;
  width: 100%;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  .audio-container {
    margin-right: 0;
    margin-bottom: 1rem;
    align-self: center;
  }
  
  .answers-container {
    padding: 1rem;
  }
  
  .dialogue-section {
    flex-direction: column;
  }
  
  .image-container {
    order: -1;
    margin-bottom: 1.5rem;
  }
}

/* Drag Element */
.drag_element {
  padding: 0.75rem 1rem;
  cursor: grab;
  user-select: none;
  box-sizing: border-box;
  min-width: 10rem;
  max-width: 100%;
  width: 24rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Using styles from main.css */
.drop_element.correct {
  border-color: #258174;
}

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

/* Touch Device Support */
@media (hover: none) {
  .drag_element {
    touch-action: none;
  }
} 
.drop_element .drag_element{
  border:none;
  background:transparent;
}