/* =========================================================
   H5P Advanced Blanks / Dropdown Gap Task
   Modern school UI with Duolingo-inspired interaction
   ========================================================= */

/* ---------- Root container ---------- */
.h5p-content .h5p-question.h5p-undefined {
  --ab-bg: #f7f9fb;
  --ab-surface: #ffffff;
  --ab-surface-soft: #fdfefe;
  --ab-border: #dcdfe4;
  --ab-border-strong: #cfd5dc;
  --ab-text: #3c3c3c;
  --ab-text-soft: #67707a;
  --ab-orange: #f1a52d;
  --ab-orange-dark: #d98d17;
  --ab-green: #58cc6c;
  --ab-green-dark: #43b85a;
  --ab-purple: #7c6df2;
  --ab-purple-dark: #6857e6;
  --ab-blue-soft: #eef4ff;
  --ab-shadow: 0 10px 30px rgba(60, 60, 60, 0.08);
  --ab-shadow-soft: 0 4px 12px rgba(60, 60, 60, 0.06);
  --ab-radius-xl: 24px;
  --ab-radius-lg: 18px;
  --ab-radius-md: 14px;
  --ab-radius-pill: 999px;

  background: transparent!important;
  border: none!important;
  border-radius: var(--ab-radius-xl);
  padding: clamp(0.1rem, 0.1rem + 0.1vw, 0.75rem)!important;
  box-shadow: none!important;
  color: var(--ab-text);
  margin: 0 auto;
}

/* ---------- Introduction ---------- */
.h5p-content .h5p-question.h5p-undefined .h5p-question-introduction {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0!important;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, #fff6e5 0%, #fffaf0 100%);
  border: 1px solid rgba(241, 165, 45, 0.28);
  border-radius: var(--ab-radius-lg);
  color: var(--ab-text);
  font-size: clamp(1rem, 0.98rem + 0.2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(241, 165, 45, 0.12);
}

.h5p-content .h5p-question.h5p-undefined .h5p-question-introduction::before {
  content: "✏️";
  font-size: 1.15em;
}

/* ---------- Content area ---------- */
.h5p-content .h5p-question.h5p-undefined .h5p-question-content {
  background: transparent!important;
  border: none!important;
  border-radius: var(--ab-radius-xl);
  padding: 0rem!important;
  box-shadow: none!important;
}

/* ---------- Main text wrapper ---------- */
.h5p-content .h5p-question.h5p-undefined .h5p-advanced-blanks,
.h5p-content .h5p-question.h5p-undefined #h5p-cloze-container {
  color: var(--ab-text);
  font-size: clamp(1rem, 0.98rem + 0.2vw, 1.08rem);
  line-height: 1.9;
}

/* ---------- Paragraph blocks ---------- */
.h5p-content .h5p-question.h5p-undefined #h5p-cloze-container p {
  margin: 0 0 1rem 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #ebeff3;
  border-radius: 18px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.h5p-content .h5p-question.h5p-undefined #h5p-cloze-container p:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(60, 60, 60, 0.06);
  border-color: rgba(124, 109, 242, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

/* ---------- Emphasis and inline text ---------- */
.h5p-content .h5p-question.h5p-undefined strong {
  color: var(--ab-purple-dark);
  font-weight: 800;
}

.h5p-content .h5p-question.h5p-undefined em {
  display: inline;
  color: var(--ab-text-soft);
  font-style: italic;
}

/* ---------- Gap / blank wrapper ---------- */
.h5p-content .h5p-question.h5p-undefined .blank {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  vertical-align: middle;
  margin: 0 0.18rem;
  padding: 0.2rem 0.3rem 0.2rem 0.45rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 2px solid var(--ab-border);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(60, 60, 60, 0.05);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.h5p-content .h5p-question.h5p-undefined .blank:hover {
  border-color: rgba(241, 165, 45, 0.7);
  background: linear-gradient(180deg, #fffdf8 0%, #fff7e8 100%);
  box-shadow: 0 8px 18px rgba(241, 165, 45, 0.12);
  transform: translateY(-1px);
}

.h5p-content .h5p-question.h5p-undefined .h5p-notification {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4f0ff 0%, #ebe4ff 100%);
  color: var(--ab-purple);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(104, 87, 230, 0.18);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.h5p-content .h5p-question.h5p-undefined .h5p-notification:hover {
  transform: scale(1.06);
  background: linear-gradient(180deg, #efe9ff 0%, #e4daff 100%);
  box-shadow:
    inset 0 -2px 0 rgba(104, 87, 230, 0.22),
    0 6px 14px rgba(124, 109, 242, 0.18);
}

.h5p-content .h5p-question.h5p-undefined .h5p-notification:focus-visible {
  outline: 3px solid rgba(124, 109, 242, 0.25);
  outline-offset: 2px;
}

/* ---------- Select wrapper ---------- */
.h5p-content .h5p-question.h5p-undefined .h5p-input-wrapper {
  display: inline-flex;
  align-items: center;
  min-width: 7rem;
  border:none!important;
  padding-right: 5px;
}
/* ---------- Placeholder-like empty state ---------- */
.h5p-content .h5p-question.h5p-undefined select.h5p-text-input:invalid {
  color: #8a919a;
}
.h5p-content .h5p-question.h5p-undefined select.h5p-text-input{border:none!important;}

/* ---------- Make learning examples visually softer ---------- */
.h5p-content .h5p-question.h5p-undefined em {
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.6) 0%, rgba(238, 244, 255, 0.35) 100%);
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
}
/* ---------- Accessibility ---------- */
.h5p-content .h5p-question.h5p-undefined * {
  box-sizing: border-box;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .h5p-content .h5p-question.h5p-undefined {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .h5p-content .h5p-question.h5p-undefined .h5p-question-content {
    padding: 0rem;
    border-radius: 16px;
  }

  .h5p-content .h5p-question.h5p-undefined #h5p-cloze-container p {
    padding: 0.85rem 0.9rem;
    line-height: 1.75;
  }

  .h5p-content .h5p-question.h5p-undefined .blank {
    display: inline-flex;
    flex-wrap: nowrap;
    max-width: 100%;
  }

  .h5p-content .h5p-question.h5p-undefined .h5p-input-wrapper {
    min-width: 0;
  }
  .h5p-content .h5p-question.h5p-undefined select.h5p-text-input {
    min-width: 6.4rem;
    padding-right: 2.2rem;
    font-size: 0.95rem;
  }
}

/* =========================================================
   H5P Question UI
   Feedback + Scorebar + Buttons
   Duolingo-inspired / clean LMS style
   Scoped to Advanced Blanks + Mark the Words
   ========================================================= */

/* =========================================================
   Theme variables
   ========================================================= */

.h5p-question.h5p-undefined,
.h5p-question.h5p-mark-the-words {
  --duo-orange: #f1a52d;
  --duo-orange-dark: #d98d17;
  --duo-green: #58cc6c;
  --duo-green-dark: #43b85a;
  --duo-purple: #7c6df2;
  --duo-purple-dark: #6857e6;
  --duo-text: #3c3c3c;
  --duo-text-soft: #6b7280;
  --duo-border: #dcdfe4;
  --duo-surface: #ffffff;
  --duo-surface-soft: #f7f9fb;
  --duo-yellow-soft: #fff8e8;
  --duo-yellow-border: #f5dfae;
  --duo-track: #e8edf3;
  --duo-shadow:
    0 10px 28px rgb(60 60 60 / 0.08),
    0 2px 8px rgb(60 60 60 / 0.04);
  --duo-shadow-soft:
    0 6px 18px rgb(60 60 60 / 0.06),
    inset 0 1px 0 rgb(255 255 255 / 0.75);
  --duo-radius-lg: 18px;
  --duo-radius-md: 14px;
  --duo-radius-pill: 999px;
}

/* =========================================================
   Shared full-width layout for feedback, scorebar, buttons
   ========================================================= */

.h5p-question.h5p-undefined .h5p-question-feedback,
.h5p-question.h5p-undefined .h5p-question-scorebar,
.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar,
.h5p-question.h5p-mark-the-words .h5p-question-feedback,
.h5p-question.h5p-mark-the-words .h5p-question-scorebar,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar {
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.h5p-question.h5p-undefined .h5p-question-feedback,
.h5p-question.h5p-undefined .h5p-question-scorebar,
.h5p-question.h5p-mark-the-words .h5p-question-feedback,
.h5p-question.h5p-mark-the-words .h5p-question-scorebar {
  margin: 0 0 0.9rem 0 !important;
}

.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar {
  margin: 0 !important;
}

/* =========================================================
   Hide empty feedback box
   ========================================================= */

.h5p-question.h5p-undefined .h5p-question-feedback:has(
  .h5p-question-feedback-container
  .h5p-question-feedback-content
  .h5p-question-feedback-content-text:empty
),
.h5p-question.h5p-mark-the-words .h5p-question-feedback:has(
  .h5p-question-feedback-container
  .h5p-question-feedback-content
  .h5p-question-feedback-content-text:empty
) {
  display: none !important;
}

/* =========================================================
   Feedback box
   ========================================================= */

.h5p-question.h5p-undefined .h5p-question-feedback-container,
.h5p-question.h5p-mark-the-words .h5p-question-feedback-container {
  width: 100% !important;
  background: linear-gradient(180deg, var(--duo-yellow-soft) 0%, #fffdf6 100%) !important;
  border: 1px solid var(--duo-yellow-border) !important;
  border-left: 6px solid var(--duo-orange) !important;
  border-radius: var(--duo-radius-lg) !important;
  padding: 1rem 1.1rem !important;
  box-shadow:
    0 6px 18px rgb(241 165 45 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.75) !important;
  box-sizing: border-box !important;
}

.h5p-question.h5p-undefined .h5p-question-feedback-content,
.h5p-question.h5p-mark-the-words .h5p-question-feedback-content {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.h5p-question.h5p-undefined .h5p-question-feedback-content-text,
.h5p-question.h5p-mark-the-words .h5p-question-feedback-content-text {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.55rem !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--duo-text) !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  word-break: break-word !important;
}

.h5p-question.h5p-undefined .h5p-question-feedback-content-text::before,
.h5p-question.h5p-mark-the-words .h5p-question-feedback-content-text::before {
  content: "💬" !important;
  flex: 0 0 auto !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  margin-top: 0.05rem !important;
}

/* =========================================================
   Scorebar container
   ========================================================= */

.h5p-question.h5p-undefined .h5p-question-scorebar-container,
.h5p-question.h5p-mark-the-words .h5p-question-scorebar-container {
  width: 100% !important;
  background: var(--duo-surface) !important;
  border: 1px solid var(--duo-border) !important;
  border-radius: var(--duo-radius-lg) !important;
  padding: 0.8rem 1rem !important;
  box-shadow: var(--duo-shadow) !important;
  box-sizing: border-box !important;
}

.h5p-question.h5p-undefined .h5p-joubelui-score-bar,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: none !important;
}

.h5p-question.h5p-undefined .h5p-joubelui-score-bar-visuals,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar-visuals {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* progress track */
.h5p-question.h5p-undefined .h5p-joubelui-score-bar-progress-wrapper,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar-progress-wrapper {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin-right: -1.7em !important;
  height: 18px !important;
  background: var(--duo-track) !important;
  border-radius: var(--duo-radius-pill) !important;
  overflow: hidden !important;
  box-shadow:
    inset 0 2px 4px rgb(60 60 60 / 0.06),
    inset 0 1px 0 rgb(255 255 255 / 0.85) !important;
}

.h5p-question.h5p-undefined .h5p-joubelui-score-bar-progress-wrapper::after,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar-progress-wrapper::after {
  content: "" !important;
  position: absolute !important;
  top: 2px !important;
  left: 8px !important;
  right: 8px !important;
  height: 42% !important;
  border-radius: var(--duo-radius-pill) !important;
  background: rgb(255 255 255 / 0.25) !important;
  pointer-events: none !important;
}

/* progress fill */
.h5p-question.h5p-undefined .h5p-joubelui-score-bar-progress,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar-progress {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  height: 100% !important;
  padding-right: 0.5rem !important;
  border-radius: inherit !important;
  background: linear-gradient(180deg, #68d97b 0%, var(--duo-green) 100%) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow:
    inset 0 -2px 0 rgb(0 0 0 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.3) !important;
  transition: width 0.35s ease !important;
}

/* =========================================================
   Numeric score
   ========================================================= */

.h5p-question.h5p-undefined .h5p-joubelui-score-numeric,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-numeric {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 0.2rem !important;
  min-width: max-content !important;
  color: var(--duo-text) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.h5p-question.h5p-undefined .h5p-joubelui-score-number,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-number {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--duo-text) !important;
}

.h5p-question.h5p-undefined .h5p-joubelui-score-number-separator,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-number-separator {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--duo-text-soft) !important;
}

/* =========================================================
   Star styling
   ========================================================= */

.h5p-question.h5p-undefined .h5p-joubelui-score-bar-star,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar-star {
  position: relative !important;
  top: 0 !important;
  flex: 0 0 auto !important;
  width: 2.75rem !important;
  height: 1.8rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(-1px) scale(0.92) !important;
}

.h5p-question.h5p-undefined .h5p-joubelui-score-bar-star svg,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar-star svg {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  filter: drop-shadow(0 4px 8px rgb(241 165 45 / 0.18)) !important;
}

.h5p-question.h5p-undefined .h5p-joubelui-score-bar-star-border,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar-star-border {
  fill: #ffd85a !important;
}

.h5p-question.h5p-undefined .h5p-joubelui-score-bar-star-fill,
.h5p-question.h5p-undefined .h5p-joubelui-score-bar-star-fill-full-score,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar-star-fill,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar-star-fill-full-score {
  fill: #ffd84d !important;
}

.h5p-question.h5p-undefined .h5p-joubelui-score-bar-star-shadow,
.h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar-star-shadow {
  fill: rgb(249 249 249 / 0.75) !important;
}

/* =========================================================
   Button row
   ========================================================= */

.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding-top: 0.15rem !important;
}

.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar .h5p-joubelui-button,
.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar button,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar .h5p-joubelui-button,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar button {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 1 1 220px !important;
  min-width: 180px !important;
  min-height: 48px !important;
  padding: 0.85rem 1.15rem !important;
  border-radius: 15px !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: normal !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition:
    transform 0.14s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease !important;
}

/* show solution */
.h5p-question.h5p-undefined .h5p-question-show-solution,
.h5p-question.h5p-mark-the-words .h5p-question-show-solution {
  background: linear-gradient(180deg, #f5f0ff 0%, #ece6ff 100%) !important;
  color: var(--duo-purple) !important;
  border: 1px solid #d9d0ff !important;
  border-bottom: 4px solid #c8bcff !important;
  box-shadow:
    0 8px 18px rgb(124 109 242 / 0.12),
    inset 0 1px 0 rgb(255 255 255 / 0.7) !important;
}

/* try again */
.h5p-question.h5p-undefined .h5p-question-try-again,
.h5p-question.h5p-mark-the-words .h5p-question-try-again {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%) !important;
  color: var(--duo-green) !important;
  border: 1px solid #cfe9d5 !important;
  border-bottom: 4px solid #b7dcbc !important;
  box-shadow:
    0 8px 18px rgb(88 204 108 / 0.10),
    inset 0 1px 0 rgb(255 255 255 / 0.78) !important;
}

/* button text */
.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar .h5p-theme-label,
.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar .h5p-joubelui-button,
.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar button,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar .h5p-theme-label,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar .h5p-joubelui-button,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar button {
  color: inherit !important;
  letter-spacing: 0.02em !important;
}

/* hover / active / focus */
.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar .h5p-joubelui-button:hover,
.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar button:hover,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar .h5p-joubelui-button:hover,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar button:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.02) !important;
}

.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar .h5p-joubelui-button:active,
.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar button:active,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar .h5p-joubelui-button:active,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar button:active {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
  box-shadow: 0 4px 10px rgb(60 60 60 / 0.08) !important;
}

.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar .h5p-joubelui-button:focus,
.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar button:focus,
.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar .h5p-joubelui-button:focus-visible,
.h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar button:focus-visible,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar .h5p-joubelui-button:focus,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar button:focus,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar .h5p-joubelui-button:focus-visible,
.h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar button:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 4px rgb(124 109 242 / 0.14),
    0 8px 18px rgb(60 60 60 / 0.08) !important;
}

/* =========================================================
   Responsive polish
   ========================================================= */

@media (max-width: 640px) {
  .h5p-question.h5p-undefined .h5p-question-scorebar-container,
  .h5p-question.h5p-mark-the-words .h5p-question-scorebar-container {
    padding: 0.8rem 0.85rem !important;
  }

  .h5p-question.h5p-undefined .h5p-joubelui-score-bar,
  .h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar {
    gap: 0.65rem !important;
  }

  .h5p-question.h5p-undefined .h5p-joubelui-score-bar-progress-wrapper,
  .h5p-question.h5p-mark-the-words .h5p-joubelui-score-bar-progress-wrapper {
    margin-right: -1.1em !important;
    height: 16px !important;
  }

  .h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar .h5p-joubelui-button,
  .h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar button,
  .h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar .h5p-joubelui-button,
  .h5p-question.h5p-mark-the-words .h5p-question-buttons.has-scorebar button {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }
}
/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 640px) {
  .h5p-question.h5p-undefined .h5p-question-feedback-container,
  .h5p-question.h5p-undefined .h5p-question-scorebar-container {
    padding: 0.85rem 0.9rem !important;
    border-radius: 16px !important;
  }

  .h5p-question.h5p-undefined .h5p-joubelui-score-bar {
    gap: 0.65rem !important;
  }

  .h5p-question.h5p-undefined .h5p-joubelui-score-bar-star {
    width: 2.35rem !important;
    height: 1.55rem !important;
  }

  .h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar .h5p-joubelui-button,
  .h5p-question.h5p-undefined .h5p-question-buttons.has-scorebar button {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }
}

