/* Google Font - League Spartan */
@font-face {
  font-family: 'League Spartan';
  src: url('../assets/fonts/LeagueSpartan-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}

/* Main Container */
.exercise-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  position: relative;
  margin-top: 2rem;
  height: 32rem;
}

/* Audio Container */
.audio-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

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

.audio-button:focus {
  outline: none;
}

.audio-button img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s ease;
} 

.audio-button .pause-icon {
  opacity: 0;
}

.audio-button.playing .play-icon {
  opacity: 0;
}

.audio-button.playing .pause-icon {
  opacity: 1;
}

/* Content Container */
.content-container {
  display: flex;
  flex-direction: column;
  margin-left: 5rem; /* Space for audio button */
  width: calc(100% - 5rem);
}

/* Character Names at Top */
.character-names {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.character-names div {
  padding: 0.5rem 1.5rem;
  border-radius: 1.5rem;
  background-color: #f5f5f5;
  font-weight: bold;
  font-size: 1rem;
}

.bernd-label {
  color: #FF8C00; /* Orange for Bernd */
}

.mario-label {
  color: #4682B4; /* Blue for Mario */
}

.katja-label {
  color: #9370DB; /* Purple for Katja */
}

/* Dialog wrapper */
.dialogs-wrapper {
  display: flex;
  gap: 2rem;
  height: 100%;
}

/* Statements Column */
.statements-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

/* Dialog Heading */
.dialog-heading {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00699F;
  margin-top: 1rem;
}

/* Statement Row */
.statement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  
  border-radius: 0.5rem;
}


/* Statement Text */
.statement-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.4;
}

/* Options Container */
.options-container {
  display: flex;
  gap: 0.5rem;
}

/* Option Buttons */
.option-button {

width: 4rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 0.15rem solid #00699F;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  padding: 0.5rem;
  text-align: center;
}

/* Button text */
.option-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: bold;
  color: #00699F;
  white-space: nowrap;
}

.option-button.bernd::before {
  content: 'Bernd';
}

.option-button.mario::before {
  content: 'Mario';
}

.option-button.katja::before {
  content: 'Katja';
}

/* Selected state */
.option-button.selected {
  background-color: #00699F;
}

.option-button.selected::before {
  color: white;
}

/* Correct state */
.option-button.correct {
  border-color: #258174;
  border-width: 0.25rem;
}

/* Incorrect state */
.option-button.incorrect {
  border-color: #FF0000;
  border-width: 0.25rem;
}

/* Characters Column */
.characters-column {
  flex: 0 0 12rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.character-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .dialogs-wrapper {
    flex-direction: column;
  }
  
  .content-container {
    margin-left: 0;
    margin-top: 5rem;
    width: 100%;
  }
  
  .audio-container {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .characters-column {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
  }
  
  .character-image {
    width: 30%;
  }
  
  .character-names {
    justify-content: center;
  }
  
  .statement-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .options-container {
    align-self: center;
    width: 100%;
    justify-content: center;
  }
} 