.h5p-question-evaluation-container.evaluation-mode {
  --duo-orange: #f1a52d;
  --duo-orange-dark: #d98d17;
  --duo-purple: #7c6df2;
  --duo-purple-dark: #6857e6;
  --duo-green: #58cc6c;
  --duo-red-soft: #fff4f1;
  --duo-yellow-soft: #fff8e8;
  --duo-surface: #ffffff;
  --duo-surface-soft: #f7f9fb;
  --duo-border: #e7ebf0;
  --duo-text: #3c3c3c;
  --duo-text-soft: #5f6b7a;
  --duo-shadow:
    0 10px 30px rgb(60 60 60 / 0.08),
    0 2px 8px rgb(60 60 60 / 0.04);

  display: flex !important;
  flex-direction:column;
  gap: 1rem !important;
  margin-top: 1.25rem !important;
  padding: 1rem !important;
  background-color: rgb(255 255 255 / 0.22) !important;
  border: 1px solid var(--duo-border) !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
.h5p-question-scorebar-container{display: flex;
justify-content: center;}
/* =========================
   Feedback box
   ========================= */
.h5p-question-evaluation-container.evaluation-mode .h5p-question-feedback {
  max-height: none !important;
  overflow: visible !important;
}
.h5p-theme .h5p-draggable p:not(.h5p-hidden-read), .h5p-theme .h5p-draggable span:not(.h5p-hidden-read){
  font-weight: 600 !important;}
.h5p-question-evaluation-container.evaluation-mode .h5p-question-feedback-container {
  background: linear-gradient(180deg, var(--duo-yellow-soft) 0%, #fffdf6 100%) !important;
  border: 1px solid #f5dfae !important;
  border-left: 6px solid var(--duo-orange) !important;
  border-radius: 18px !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;
}

.h5p-question-evaluation-container.evaluation-mode .h5p-question-feedback-content {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.h5p-question-evaluation-container.evaluation-mode .h5p-question-feedback-content-text {
  color: var(--duo-text) !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}

/* =========================
   Scorebar wrapper
   ========================= */
.h5p-question-evaluation-container.evaluation-mode .h5p-question-scorebar {
  max-height: none !important;
  overflow: visible !important;
}

/* =========================
   Score bar layout
   ========================= */

/* progress track */
.h5p-question-evaluation-container.evaluation-mode .h5p-joubelui-score-bar-progress-wrapper {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 140px !important;
  height: 18px !important;
  background: #e8edf3 !important;
  border-radius: 999px !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;
}

/* actual progress bar */
.h5p-question-evaluation-container.evaluation-mode .h5p-joubelui-score-bar-progress {
  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: #5cc66b !important;
  color: transparent !important; /* hide built-in long text visually */
  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;
}

/* subtle glossy highlight */
.h5p-question-evaluation-container.evaluation-mode .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: 999px !important;
  background: rgb(255 255 255 / 0.25) !important;
  pointer-events: none !important;
}

/* =========================
   Star styling
   ========================= */
.h5p-question-evaluation-container.evaluation-mode .h5p-joubelui-score-bar-star {
  flex: 0 0 auto !important;
  width: 3rem !important;
  height: 2.2rem !important;
  justify-content: center !important;
}
.h5p-theme .h5p-joubelui-score-bar-star {
    scale: 0.9;
    top: -0.8em!important;
}
.h5p-question-evaluation-container.evaluation-mode .h5p-joubelui-score-bar-star svg {
  width: 100% !important;
  height: 100% !important;
  filter: drop-shadow(0 4px 8px rgb(241 165 45 / 0.18)) !important;
}

.h5p-question-evaluation-container.evaluation-mode .h5p-joubelui-score-bar-star-border {
  fill: #ffd85a !important;
}

.h5p-question-evaluation-container.evaluation-mode .h5p-joubelui-score-bar-star-fill,
.h5p-question-evaluation-container.evaluation-mode .h5p-joubelui-score-bar-star-fill-full-score {
  fill: #ffd84d !important;
}

.h5p-question-evaluation-container.evaluation-mode .h5p-joubelui-score-bar-star-shadow {
fill: #f9f9f9bf !important;}
.h5p-theme .h5p-question-evaluation-container.evaluation-mode.container-column .h5p-question-buttons.h5p-question-visible {
    justify-content: center !important;
}
/* =========================
   Button row
   ========================= */
.h5p-question-evaluation-container.evaluation-mode .h5p-question-buttons.h5p-question-visible.has-scorebar {
  max-height: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-top: 0.25rem !important;
}

/* secondary buttons base */
.h5p-question-evaluation-container.evaluation-mode .h5p-theme-button.h5p-theme-secondary-cta {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-height: 48px !important;
  padding: 0 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-decoration: none !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 solutions */
.h5p-question-evaluation-container.evaluation-mode .h5p-theme-button.h5p-theme-secondary-cta.h5p-theme-show-solutions {
  background: linear-gradient(180deg, #f5f0ff 0%, #ece6ff 100%) !important;
  color: #5b3fd4 !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;
}

/* retry */
.h5p-question-evaluation-container.evaluation-mode .h5p-theme-button.h5p-theme-secondary-cta.h5p-theme-retry {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%) !important;
  color: #2e7d05 !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;
}

.h5p-question-evaluation-container.evaluation-mode .h5p-theme-button.h5p-theme-secondary-cta .h5p-theme-label {
    color: inherit !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase;
    margin-bottom: -2px;
}

/* hover */
.h5p-question-evaluation-container.evaluation-mode .h5p-theme-button.h5p-theme-secondary-cta:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.02) !important;
}

/* active */
.h5p-question-evaluation-container.evaluation-mode .h5p-theme-button.h5p-theme-secondary-cta:active {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
  box-shadow: 0 4px 10px rgb(60 60 60 / 0.08) !important;
}

/* focus */
.h5p-question-evaluation-container.evaluation-mode .h5p-theme-button.h5p-theme-secondary-cta:focus,
.h5p-question-evaluation-container.evaluation-mode .h5p-theme-button.h5p-theme-secondary-cta: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;
}

/* CHECK-BUTTON */
.h5p-question-buttons.h5p-question-visible .h5p-theme-button.h5p-theme-primary-cta.h5p-theme-check {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    border-bottom: 4px solid #6f4200 !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #9a5c00 0%, #8b5300 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    min-height: 42px !important;
    padding: 0 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    text-shadow: 0 1px 0 rgb(0 0 0 / 0.08) !important;
    cursor: pointer !important;
    transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease !important;
}
.h5p-theme-button:before {
    left: 13% !important;
}
/* label inside */
.h5p-question-buttons.h5p-question-visible .h5p-theme-button.h5p-theme-primary-cta.h5p-theme-check .h5p-theme-label {
    color: inherit !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    line-height: 1em !important;
    margin-bottom: -2px;
}

/* hover */
.h5p-question-buttons.h5p-question-visible .h5p-theme-button.h5p-theme-primary-cta.h5p-theme-check:hover {
  filter: brightness(1.04) !important;
  box-shadow:
    0 10px 22px rgb(241 165 45 / 0.28),
    0 2px 0 rgb(255 255 255 / 0.2) inset !important;
  transform: translateY(-2px) !important;
}

/* active / pressed */
.h5p-question-buttons.h5p-question-visible .h5p-theme-button.h5p-theme-primary-cta.h5p-theme-check:active {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
  box-shadow:
    0 4px 10px rgb(241 165 45 / 0.18),
    0 1px 0 rgb(255 255 255 / 0.16) inset !important;
}

/* keyboard focus */
.h5p-question-buttons.h5p-question-visible .h5p-theme-button.h5p-theme-primary-cta.h5p-theme-check:focus,
.h5p-question-buttons.h5p-question-visible .h5p-theme-button.h5p-theme-primary-cta.h5p-theme-check:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 4px rgb(241 165 45 / 0.22),
    0 8px 18px rgb(241 165 45 / 0.22),
    0 2px 0 rgb(255 255 255 / 0.2) inset !important;
}

/* disabled */
.h5p-question-buttons.h5p-question-visible .h5p-theme-button.h5p-theme-primary-cta.h5p-theme-check:disabled,
.h5p-question-buttons.h5p-question-visible .h5p-theme-button.h5p-theme-primary-cta.h5p-theme-check[disabled] {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.08) !important;
  transform: none !important;
  box-shadow: none !important;
}
/* =========================
   H5P Drag Text / Dropzones
   Modern LMS School Style
   Clean School Version
   Strong Override Version
   ========================= */
.h5p-content {
  background: #fefefe00!important;}
/* transparent outer wrappers */
.h5p-theme.h5p-question,
.h5p-drag-text.h5p-theme.h5p-question,
.h5p-drag-text .h5p-question-main-content {
  background: transparent !important;
}

.h5p-theme .h5p-draggable.h5p-draggable-wrong {
    background: #ffbaba !important;
    border: .1em solid var(--h5p-theme-feedback-incorrect-third) !important;
    color: #d15350 !important;
}
.h5p-theme .h5p-draggable.h5p-draggable-correct {
    background: #e9ffe2 !important;
    border: .1em solid var(--h5p-theme-feedback-correct-third);
  color: #2e9a5f !important;
  border-bottom-color: #2e9a5f45 !important;
}
.h5p-dropzone.h5p-dropzone--inline [aria-dropeffect].h5p-dropzone-correct {
    background: #e9ffe2 !important;
    border-color: var(--h5p-theme-feedback-correct-third)!important;
  color: #2e9a5f !important;
}
.h5p-theme .h5p-draggable.h5p-draggable--has-handle.h5p-draggable--dropped:not(.ui-draggable-disabled).hover:before, .h5p-theme .h5p-draggable.h5p-draggable--has-handle.h5p-draggable--dropped:not(.ui-draggable-disabled):hover:before, .h5p-theme .h5p-draggable.h5p-draggable--has-handle[aria-grabbed=true].ui-draggable-handle:before, .h5p-theme .h5p-draggable[aria-grabbed]:not(.ui-draggable-disabled):hover:before {
    background-color: #f8c99100!important;
    box-shadow: 0 0 0 2px #f8c99100!important;
    color: #e2941e!important;
}
.h5p-theme .h5p-draggable.h5p-draggable--has-handle.ui-draggable-handle:not(.ui-draggable-disabled):before {
  background-color: transparent!important;
  box-shadow: none!important;
  margin-left: 7%!important;
}
@media (max-width: 640px) {
.h5p-theme .h5p-question-evaluation-container.evaluation-mode.container-column{
  margin-top: 0px !important;
  gap: 10px !important;
}
}
/* mobile */
@media (max-width: 640px) {
  .h5p-question-evaluation-container.evaluation-mode {
    padding: 0.85rem !important;
    border-radius: 20px !important;
  }

  .h5p-question-evaluation-container.evaluation-mode .h5p-joubelui-score-bar {
    align-items: stretch !important;
  }

  .h5p-question-evaluation-container.evaluation-mode .h5p-joubelui-score-numeric {
    align-self: flex-start !important;
  }

  .h5p-question-evaluation-container.evaluation-mode .h5p-question-buttons.h5p-question-visible.has-scorebar {
    justify-content: stretch !important;
  }

  .h5p-question-evaluation-container.evaluation-mode .h5p-theme-button.h5p-theme-secondary-cta {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   2. BASE / CONTAINER — Full-Width, No Side Margins or Paddings
   -------------------------------------------------------------------------- */
html.h5p-iframe, html.h5p-iframe > body{
  overflow-y:scroll!important;}
/* Override the H5P parent wrapper so nothing constrains width */
.h5p-content.h5p-initialized {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.h5p-joubelui-score-bar-star-border { fill: #E5E5E5; }
.h5p-joubelui-score-bar-star-fill { fill: #FFD900; }
.h5p-joubelui-score-bar-star-fill-full-score {fill: #ffd84d !important;}
.h5p-joubelui-score-bar-star-shadow {fill: #f9f9f9bf !important;}

/* ==========================================================================
   H5P Find the Words — END */


/* ============================================================
  START SPEAK THE WORDS SET
   ============================================================ */

/* ---------- Custom Properties---------- */
:root {
  --duo-green: #58cc02;
  --duo-green-dark: #46a302;
  --duo-green-shadow: #3d8c00;
  --duo-blue: #1cb0f6;
  --duo-blue-dark: #0d8fd4;
  --duo-red: #ff4b4b;
  --duo-red-dark: #e03e3e;
  --duo-yellow: #ffc800;
  --duo-text: #3c3c3c;
  --duo-text-light: #777777;
  --duo-text-white: #ffffff;
  --duo-border-radius: 16px;
  --duo-btn-radius: 50px;
  --duo-font: 'Nunito', 'DIN Round', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, sans-serif;
  --duo-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --duo-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --duo-shadow-strong: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.joubel-speech-bubble-tail {
    box-shadow: none !important;
}
/* ==========================================================================
   1. CONTAINER & IFRAME RESET
   ========================================================================== */

html.h5p-iframe .h5p-content,
.h5p-content .h5p-dialogcards.h5p-text-scaling:not(.h5p-theme) {
  width: 100% !important;
  background: transparent !important;
  height: auto;
}

