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

/* Exercise Wrapper – reserve right space so audio recorder never overlaps content */
.exercise-wrapper {
  width: 100%;
  max-width: 80rem;
  min-height: 100%;
  margin: 0 auto;
  position: relative;
  padding: 0.35rem 0.5rem 0.35rem 0.5rem;
  padding-right: 14rem;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Prompt list – tight spacing so all content fits on page */
.prompt-list {
  font-family: 'League Spartan', sans-serif;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 52rem;
}

.prompt-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  background-color: #f5f8fa;
  border-radius: 0.35rem;
  border: 0.1rem solid #e0e8ee;
}

.prompt-sentence {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #00699F;
  margin: 0;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.prompt-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.prompt-image {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: 0.35rem;
}

/* Hint container – lightbulb icon as-is, popup for ((light bulb text)) */
.hint-container {
  position: relative;
  display: inline-block;
}

.hint-button {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hint-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

/* Popup text – visible when active; "–" replaced by line breaks in HTML */
.hint-text {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 0.5rem;
  background-color: #fff;
  border: 0.0625rem solid #ddd;
  border-radius: 0.25rem;
  padding: 0.4rem 0.6rem;
  z-index: 10;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
  font-family: 'League Spartan', sans-serif;
  font-size: 0.85rem;
  color: #333;
  width: 22rem;
  min-width: 12rem;
  max-width: min(10rem, 95vw);
  text-align: left;
  white-space: normal;
  line-height: 1.35;
}

.hint-container.active .hint-text {
  display: block;
}

/* Hide */
.hidden {
  display: none;
}

footer {
  display: none;
}

@media (max-width: 48rem) {
  .exercise-wrapper {
    padding-right: 8rem;
  }

  .prompt-block {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .prompt-right {
    width: 100%;
    justify-content: flex-start;
  }

  .prompt-image {
    width: 4rem;
    height: 4rem;
  }

  .prompt-sentence {
    font-size: 1.05rem;
  }

  .hint-text {
    left: 0;
    margin-left: 0;
    margin-top: 0.25rem;
  }
}
