/* debugging */

.mod_minilesson_debug .mod_minilesson_grading_passageword::after,
.mod_minilesson_debug_transcriptword::after {
  content: attr(data-wordnumber);
  border: 1px solid blue;
  font-size: 10px;
  border-radius: 5px;
  padding: 1px;
}

/* debugging */

span.mod_minilesson_debugsequence {
  border: 1px solid black;
  margin: 1px;
  display: inline-block;
}

.mod_minilesson_center {
  text-align: center;
}

.mod_minilesson_center>div,
.mod_minilesson_center>table
/* insert any other block-level elements here */

  {
  margin-left: auto;
  margin-right: auto;
}

.mod_minilesson_listbuttons input[type='submit'] {
  width: 400px;
}

.mod_minilesson_actionbuttons {
  display: flex;
  float: right;
}

.mod_minilesson_quiz_finished {
  display: none;
  text-align: center;
}

.mod_minilesson_recording_cont {
  display: block;
  margin: auto;
  text-align: center;
  width: 100%;
  background-image: url([[pix:mod_minilesson|loader]]);
  background-repeat: no-repeat;
  background-position: center center;
}

.mod_minilesson_recorder_instr_right,
.mod_minilesson_recorder_instr_left {
  float: left;
  width: 240px;
  height: 100px;
}

.mod_minilesson_dummyrecorder {
  float: left;
}

.mod_minilesson_dummy_recorder_hidden {
  display: none;
}

.mod_minilesson_dummy_recorder_recording {
  display: block;
  float: left;
  width: 239px;
  height: 100px;
  background-size: 90px 90px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: red;
}

.mod_minilesson_dummy_recorder_stopped {
  display: block;
  width: 239px;
  height: 100px;
  float: left;
  background-size: 90px 90px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: grey;
}

.mod_minilesson_getpermissionmode {
  background-color: red;
  height: 170px;
}

.mod_minilesson_start_button_cont,
.mod_minilesson_record_button_cont,
.mod_minilesson_stop_button_cont {
  clear: both;
  padding: 5px;
  text-align: center;
  width: 100%;
}

.mod_minilesson_stop_button,
.mod_minilesson_start_button,
.mod_minilesson_record_button {
  margin: auto;
  width: 200px;
}

.mod_minilesson_voicecanvas {
  width: 239px;
  height: 100px;
  z-index: 8;
}

.mod_minilesson_passage_cont {
  display: none;
  line-height: 2em;
  font-size: 1.5em;
  border-style: double;
  padding: 3px;
  border-color: gold;
  margin-top: 15px;
}

.mod_minilesson_grading_passagecont {
  line-height: 2em;
  font-size: 1.5em;
  border-style: double;
  padding: 3px;
  border-color: gold;
  margin-top: 15px;
}

div.mod_minilesson_passage_cont.mod_minilesson_postattempt {
  display: block;
  /* background-color: #cccccc; */
  position: relative;
  font-size: 20px;
  line-height: 1.8em;
  border-style: none;
}

.mod_minilesson_postattempt .mod_minilesson-passage-pic {
  max-width: 200px;
  margin: 9px 1em 1em 0;
  float: left;
}

.mod_minilesson_postattempt .mod_minilesson-passage-pic img {
  width: 200px;
}

.mod_minilesson_mrseed-standing img {
  width: 100px;
  height: auto;
}

.mod_minilesson_mrseed-standing {
  max-width: 100px;
}

.mod_minilesson_printtwocol_cont {
  padding: 15px;
  border: 2px solid #CCCCCC;
  border-radius: 5px;
  width: 1024px;
}

.mod_minilesson_twocol_cont {
  padding: 15px;
  border: 2px solid #CCCCCC;
  border-radius: 5px;
  width: 1024px;
}

.mod_minilesson_twocol_wpm_cont {
  border: solid 1px;
  padding-top: 15px;
  padding-left: 10px;
  border-radius: 5px;
  background-color: aliceblue;
}

.mod_minilesson_twocol_quiz_cont {
  border: solid 1px;
  padding-top: 15px;
  padding-left: 10px;
  border-radius: 5px;
  background-color: aliceblue;
  margin-top: 10px;
}

.mod_minilesson_twocol_player_cont {
  color: blue;
}

.mod_minilesson_twocol_player {
  width: 100%;
}

.mod_minilesson_rightcol .btn {
  width: 100%;
  margin-top: 20px;
}

.mod_minilesson_grading_action_cont {
  border-style: double;
  padding: 3px;
  border-color: gold;
  margin-top: 15px;
  align-items: center;
}

.mod_minilesson_passage_cont.mod_minilesson_postattempt .mod_minilesson_grading_badword {
  color: black;
  background-color: lightgrey;
  border-color: blue;
}

.mod_minilesson_grading_badword {
  color: red;
  background-color: #ffcaca;
  padding: 5px;
  border-radius: 5px 5px 5px;
  border: 1px solid red;
  position: relative;
}

.mod_minilesson_grading_endspace {
  color: blue;
  background-color: #cacaff;
  padding: 5px;
  border-radius: 5px 5px 5px;
  border: 1px solid blue;
  position: relative;
}

.mod_minilesson_grading_passagespace {
  padding: 2px;
}

div.mod_minilesson_postattempt .mod_minilesson_grading_unreadword {
  text-decoration: none;
  background-color: lightgrey;
  padding-right: 2px;
}

div.mod_minilesson_postattempt .mod_minilesson_grading_unreadspace {
  background-color: lightgrey;
  padding: 0px 2px;
}

.mod_minilesson_grading_unreadword {
  font-style: italic;
  text-decoration: line-through;
}

.mod_minilesson_passage_finished {
  background-color: #cccccc;
  padding: 2px;
}

.mod_minilesson_feedback_cont {
  display: none;
}

.mod_minilesson_wheretonext_cont {
  display: none;
}

.mod_minilesson_quiz_cont {
  display: none;
  margin: auto;
}

.mod_minilesson_quiz_cont.mod_minilesson_compact {
  max-width: 750px;
}

.mod_minilesson_quiz_cont.mod_minilesson_wide {
  max-width: 1200px;
}

div.mod_minilesson_feedback_cont.mod_minilesson_postattempt {
  display: block;
}

.mod_minilesson_evaluated_message {
  text-align: center;
  display: block;
  margin-bottom: 15px;
}

.mod_minilesson_error_cont {
  display: none;
}

.mod_minilesson_error_cont h3 {
  color: red;
}

.mod_minilesson_grading_player_cont {
  color: blue;
}

.mod_minilesson_hidden_player {
  display: none;
}

.mod_minilesson_hidden_player_button {
  color: white;
  border-color: cadetblue;
  background-color: cadetblue;
  border-style: solid;
  border: 1px;
  padding: 3px;
  text-align: center;
}

.mod_minilesson_hidden_player_button_active {
  color: white;
  border-color: tomato;
  background-color: tomato;
}

.mod_minilesson_hidden_player_button_paused {
  color: white;
}

.mod_minilesson_hidden_player_button_playing {
  color: white;
}

.mod_minilesson_backtotop_cont {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  margin-top: 20px;
}

.mod_minilesson_grading_accuracy_cont,
.mod_minilesson_grading_wpm_cont,
.mod_minilesson_grading_quiz_cont,
.mod_minilesson_grading_error_cont,
.mod_minilesson_grading_sessionscore_cont,
.mod_minilesson_grading_errorrate_cont,
.mod_minilesson_grading_scrate_cont {
  color: blue;
  /* display: flex; */
  margin-left: 15px;
}

.mod_minilesson_grading_wpm_img {
  color: blue;
}

.mod_minilesson_grading_score {
  color: blue;
  line-height: 18px;
  margin-left: 5px;
  text-align: center;
  font-size: 2em;
  height: 35px;
  width: 80px;
}

.mod_minilesson_grading_error_img {
  color: blue;
}

.mod_minilesson_grading_action_cont {
  color: blue;
  display: flex;
}

.mod_minilesson_afterattempt_cont,
.mod_minilesson_wheretonext_cont,
.mod_minilesson_ungraded_cont {
  margin-left: auto;
  margin-right: auto;
  width: 40%;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 15px;
}

#mod_minilesson_hider {
  display: none;
  position: absolute;
  top: 0%;
  left: 0%;
  width: 1600px;
  height: 2000px;
  margin-top: -1000px;
  /*set to a negative number 1/2 of your height*/
  margin-left: 0px;
  /*set to a negative number 1/2 of your width*/
  /*
        z- index must be lower than pop up box
       */
  z-index: 99;
  background-color: Black;
  opacity: 0.6;
}

#mod_minilesson_progress_cont {
  display: none;
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 120px;
  margin-top: -60px;
  /*set to a negative number 1/2 of your height*/
  margin-left: -150px;
  /*set to a negative number 1/2 of your width*/
  border: 1px solid #ccc;
  border: 2px solid black;
  z-index: 100;
  background-color: white;
}

/* spotcheckmode */

.mod_minilesson_spotcheckmode .mod_minilesson_grading_passageword.mod_minilesson_grading_badword {
  border-color: green;
  background-color: #d7f9ca;
}

.mod_minilesson_spotcheckmode .mod_minilesson_grading_passagespace.mod_minilesson_aiunmatched {
  background-color: lightgrey;
}

/* msvmode */

.mod_minilesson_msvmode .mod_minilesson_grading_passageword.mod_minilesson_grading_badword {
  border-color: red;
  background-color: #ffcaca;
  -webkit-print-color-adjust: exact;
  /* Print background colour */
}

.mod_minilesson_msvmode .mod_minilesson_grading_passageword.mod_minilesson_grading_selfcorrectedword {
  color: green;
  background-color: #d7f9ca;
  padding: 5px;
  border-radius: 5px 5px 5px;
  border: 1px solid green;
  position: relative;
}

.mod_minilesson_msvmode .mod_minilesson_grading_passageword.mod_minilesson_grading_maybeselfcorrectedword {
  text-decoration: underline;
}

.mod_minilesson_spotcheckmode .mod_minilesson_grading_passagespace.mod_minilesson_aiunmatched {
  background-color: lightgrey;
  -webkit-print-color-adjust: exact;
  /* Print background colour */
}

.mod_minilesson_grading_passageword.mod_minilesson_aiunmatched {
  background-color: lightgrey;
  -webkit-print-color-adjust: exact;
  /* Print background colour */
}

.mod_minilesson_grading_passagespace.mod_minilesson_aiunmatched {
  background-color: lightgrey;
}

.mod_minilesson_grading_passageactions {
  margin-top: 10px;
}

.mod_minilesson_grading_passageactions>button {
  margin: 5px;
}

.btn.mod_minilesson_quickgrade_ok {
  background-color: DodgerBlue;
  /* Blue background */
  border: none;
  /* Remove borders */
  color: white;
  /* White text */
  padding: 10px 14px;
  /* Some padding */
  font-size: 14px;
  /* Set a font size */
  cursor: pointer;
  /* Mouse pointer on hover */
  margin: 2px;
  background-image: none;
}

/* Darker background on mouse-over */

.btn.mod_minilesson_quickgrade_ok:hover {
  background-color: RoyalBlue;
}

.btn.mod_minilesson_quickgrade_ng {
  background-color: darkgrey;
  /* Blue background */
  border: none;
  /* Remove borders */
  color: white;
  /* White text */
  padding: 10px 14px;
  /* Some padding */
  font-size: 14px;
  /* Set a font size */
  cursor: pointer;
  /* Mouse pointer on hover */
  margin: 2px;
  background-image: none;
}

/* Darker background on mouse-over */

.btn.mod_minilesson_quickgrade_ng:hover {
  background-color: grey;
}

/**
 * App
 */

.mod_minilesson-app-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}

.mod_minilesson-app {
  box-sizing: border-box;
  min-width: 1024px;
  max-width: 1024px;
  min-height: 768px;
  max-height: 768px;
  background: white;
  padding: 1em;
  border: #efefef 3px solid;
  border-radius: 10px;
  font-size: 18px;
  display: flex;
  position: relative;
}

.mod_minilesson-flex {
  display: flex;
}

.mod_minilesson-flex-1 {
  flex: 1;
}

.mod_minilesson-flex-col {
  display: flex;
  flex-direction: column;
}

.mod_minilesson-flex-equal>* {
  flex: 1;
}

.mod_minilesson-flex-center {
  justify-content: center;
}

.mod_minilesson-flex-items-center {
  align-items: center;
}

.mod_minilesson-app .mod_minilesson-passage {
  line-height: 1.8em;
  font-size: 20px;
}

.mod_minilesson-app .mod_minilesson-passage.blurred {
  color: transparent;
  text-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
}

.mod_minilesson-app .mod_minilesson-passage-pic {
  max-width: 200px;
  margin: 9px 1em 1em 0;
  float: left;
}

.mod_minilesson-app .mod_minilesson-passage-pic img {
  max-width: 100%;
}

.mod_minilesson-app .mod_minilesson-passage.blurred img {
  filter: blur(5px);
}

.mod_minilesson-texttospeech {
  position: relative;
  display: flex;
}

.mod_minilesson-texttospeech>div {
  display: inline-block;
}

.mod_minilesson-texttospeech a {
  margin: 0 0 0 0.5em;
  align-self: flex-start;
}

.mod_minilesson-texttospeech a:focus,
.mod_minilesson-texttospeech a:hover {
  text-decoration: none;
}

.mod_minilesson-scrollview-wrapper,
.mod_minilesson-scrollview {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.mod_minilesson-scrollview {
  overflow: hidden;
  padding-top: 50px;
}

.mod_minilesson-scrollview-before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  min-height: 50px;
  background: linear-gradient(white, transparent 80%);
  margin-top: -1px;
}

.mod_minilesson-scrollview-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 50px;
  display: flex;
  justify-content: center;
  background: linear-gradient(transparent, white 80%);
  margin-bottom: -1px;
}

.mod_minilesson-question-feedback {
  text-align: center;
}

.mod_minilesson-quiz-tracker {
  margin-bottom: 1em;
}

.mod_minilesson-quiz-tracker-el {
  font-size: 14px;
  padding: 0 4px;
  margin-right: 3px;
  display: inline-block;
  border: 3px solid #ccc;
}

.mod_minilesson-quiz-tracker-el.is-current {
  border-color: #000;
}

.mod_minilesson-quiz-tracker-el.is-answered {
  border-color: hsl(348, 100%, 61%);
}

.mod_minilesson-quiz-tracker-el.is-answered.is-correct {
  border-color: hsl(141, 71%, 48%);
}

.mod_minilesson-question-title {
  line-height: 1.8em;
  border-left: 3px solid #ccc;
  padding-left: 20px;
}

.mod_minilesson-answers {
  margin: 1em;
}

.mod_minilesson-answer {
  color: #333;
  display: flex;
  margin: 5px;
  border-radius: 5px;
  background-color: #eee;
  padding: 13px 23px;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.mod_minilesson-answer:hover,
.mod_minilesson-answer:focus {
  color: inherit;
  text-decoration: none;
}

.mod_minilesson-answer.is-selected.is-incorrect {
  color: white;
  background: hsl(348, 100%, 61%);
  border-color: hsl(348, 100%, 61%);
  padding-right: 42px;
}

.mod_minilesson-answer.is-correct {
  color: white;
  background: hsl(141, 71%, 48%);
  border-color: hsl(141, 71%, 48%);
  padding-right: 42px;
}

.mod_minilesson-answer::after {
  content: ' ';
  position: absolute;
  right: 10px;
  width: 30px;
  height: 30px;
  display: inline-block;
  background-repeat: no-repeat;
}

.mod_minilesson-answer.is-correct::after {
  background-image: url([[pix:mod_minilesson|correct]]);
}

.mod_minilesson-answer.is-selected.is-incorrect::after {
  background-image: url([[pix:mod_minilesson|incorrect]]);
}

.mod_minilesson-btn,
.mod_minilesson-btn:hover,
.mod_minilesson-btn:focus,
.mod_minilesson-btn:visited,
.mod_minilesson-btn:active {
  border-radius: 5px;
  background: hsl(204, 86%, 53%);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  text-decoration: none;
}

.mod_minilesson-btn.inactive,
.mod_minilesson-btn:hover.inactive,
.mod_minilesson-btn:focus.inactive,
.mod_minilesson-btn:visited.inactive,
.mod_minilesson-btn:active.inactive {
  background: hsl(0, 0%, 96%);
  color: hsl(0, 0%, 21%);
}

.mod_minilesson-btn-recorder-like {
  border: 2px solid #000;
  border-radius: 5px;
  background: #cbf2dc;
  color: #444;
  font-size: xx-large;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 210px;
  height: 80px;
}

/**
 * Source: https://leaverou.github.io/bubbly/
 */

.mod_minilesson-speech-bubble {
  position: relative;
  background: #f7f7f7;
  border-radius: 0.4em;
}

.mod_minilesson-speech-bubble:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #f7f7f7;
  border-bottom: 0;
  border-left: 0;
  margin-left: -5px;
  margin-bottom: -10px;
}

.mod_minilesson-speech-bubble-content {
  text-align: center;
  font-size: 25px;
  padding: 25px;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 35px;
}

.mod_minilesson-speech-bubble.size-medium .mod_minilesson-speech-bubble-content {
  font-size: 20px;
  padding: 10px;
  min-height: auto;
  line-height: 25px;
}

.mod_minilesson-speech-bubble.size-large .mod_minilesson-speech-bubble-content {
  font-size: 32px;
  font-weight: bold;
  padding: 10px;
  min-height: auto;
  line-height: 25px;
}

.mod_minilesson-bloom {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mod_minilesson-bloom img {
  position: absolute;
  /* The delay is set according to the blooming animation */
  animation: minilesson-bloom;
  animation-duration: 1200ms;
}

.mod_minilesson-mr-seed-wrapper {
  position: relative;
}

.mod_minilesson-mr-seed-wrapper .mod_minilesson-speech-bubble {
  position: absolute;
  right: 0;
  width: 50%;
}

@keyframes minilesson-bloom {
  0% {
    opacity: 0;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/*! * * * * * * * * * * * * * * * * * * * *\
  CSShake :: shake-rotate
  v1.5.0
  CSS classes to move your DOM
  (c) 2015 @elrumordelaluz
  http://elrumordelaluz.github.io/csshake/
  Licensed under MIT
\* * * * * * * * * * * * * * * * * * * * */

@keyframes shake-rotate {
  2% {
    transform: translate(0, 0) rotate(-4.5deg);
  }
  4% {
    transform: translate(0, 0) rotate(-1.5deg);
  }
  6% {
    transform: translate(0, 0) rotate(-6.5deg);
  }
  8% {
    transform: translate(0, 0) rotate(2.5deg);
  }
  10% {
    transform: translate(0, 0) rotate(6.5deg);
  }
  12% {
    transform: translate(0, 0) rotate(-3.5deg);
  }
  14% {
    transform: translate(0, 0) rotate(7.5deg);
  }
  16% {
    transform: translate(0, 0) rotate(2.5deg);
  }
  18% {
    transform: translate(0, 0) rotate(7.5deg);
  }
  20% {
    transform: translate(0, 0) rotate(3.5deg);
  }
  22% {
    transform: translate(0, 0) rotate(1.5deg);
  }
  24% {
    transform: translate(0, 0) rotate(1.5deg);
  }
  26% {
    transform: translate(0, 0) rotate(0.5deg);
  }
  28% {
    transform: translate(0, 0) rotate(6.5deg);
  }
  30% {
    transform: translate(0, 0) rotate(-1.5deg);
  }
  32% {
    transform: translate(0, 0) rotate(-1.5deg);
  }
  34% {
    transform: translate(0, 0) rotate(2.5deg);
  }
  36% {
    transform: translate(0, 0) rotate(-2.5deg);
  }
  38% {
    transform: translate(0, 0) rotate(1.5deg);
  }
  40% {
    transform: translate(0, 0) rotate(7.5deg);
  }
  42% {
    transform: translate(0, 0) rotate(-2.5deg);
  }
  44% {
    transform: translate(0, 0) rotate(-0.5deg);
  }
  46% {
    transform: translate(0, 0) rotate(-6.5deg);
  }
  48% {
    transform: translate(0, 0) rotate(0.5deg);
  }
  50% {
    transform: translate(0, 0) rotate(1.5deg);
  }
  52% {
    transform: translate(0, 0) rotate(1.5deg);
  }
  54% {
    transform: translate(0, 0) rotate(4.5deg);
  }
  56% {
    transform: translate(0, 0) rotate(-4.5deg);
  }
  58% {
    transform: translate(0, 0) rotate(5.5deg);
  }
  60% {
    transform: translate(0, 0) rotate(-3.5deg);
  }
  62% {
    transform: translate(0, 0) rotate(-0.5deg);
  }
  64% {
    transform: translate(0, 0) rotate(7.5deg);
  }
  66% {
    transform: translate(0, 0) rotate(6.5deg);
  }
  68% {
    transform: translate(0, 0) rotate(-6.5deg);
  }
  70% {
    transform: translate(0, 0) rotate(-4.5deg);
  }
  72% {
    transform: translate(0, 0) rotate(3.5deg);
  }
  74% {
    transform: translate(0, 0) rotate(-2.5deg);
  }
  76% {
    transform: translate(0, 0) rotate(-4.5deg);
  }
  78% {
    transform: translate(0, 0) rotate(1.5deg);
  }
  80% {
    transform: translate(0, 0) rotate(1.5deg);
  }
  82% {
    transform: translate(0, 0) rotate(-2.5deg);
  }
  84% {
    transform: translate(0, 0) rotate(-3.5deg);
  }
  86% {
    transform: translate(0, 0) rotate(-6.5deg);
  }
  88% {
    transform: translate(0, 0) rotate(-0.5deg);
  }
  90% {
    transform: translate(0, 0) rotate(5.5deg);
  }
  92% {
    transform: translate(0, 0) rotate(4.5deg);
  }
  94% {
    transform: translate(0, 0) rotate(-1.5deg);
  }
  96% {
    transform: translate(0, 0) rotate(1.5deg);
  }
  98% {
    transform: translate(0, 0) rotate(-3.5deg);
  }
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
}

.mod_minilesson-shake {
  animation-name: shake-rotate;
  animation-duration: 100ms;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 2;
}

.mod_minilesson_grading_passageactions {
  margin-top: 10px;
  display: flex;
}

.minilesson_speechcards_container {
  border: 1px solid darkgray;
  margin-bottom: 5px;
  padding: 10px;
}

.minilesson-poodllspeechcards_box {
  text-align: center;
  width: 60%;
  /*225px;*/
  font-size: 25px;
  margin: auto;
  border: 1px solid darkgray;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background-color: #f5f5f5;
  box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.75);
}

.minilesson-speechcards_toprow {
  margin: 15px auto;
  display: flex;
  justify-content: center;
}

.minilesson-speechcards_whatheard {
  width: 400px;
  border: dotted 1px;
  border-color: green;
  text-align: center;
  margin: 1px;
}

.minilesson-speechcards_gotit {
  color: white;
  background-color: green;
}

/* PROGRESS DOTS */

.minilesson_progress_dots {
  font-size: 40px;
  text-align: center;
  letter-spacing: 10px;
  border: 1px solid darkgray;
  margin-bottom: 5px;
}

.minilesson_star_rating {
  letter-spacing: 20px;
  text-align: center;
  font-size: 30px;
}

.minilesson_nextbutton {
  /* float: right; */
}

.minilesson_questionheader {
  padding: 10px;
  text-align: center;
  margin-bottom: 5px;
  background-color: #f5f5f5;
  border-radius: 5px;
}

.mcplaytrigger,
.dictationtrigger {
  cursor: pointer;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 40px;
  height: 40px;
}

.minilesson_mc_resultbox {
  float: right;
  padding-left: 8px;
}

.mcplayrow {
  margin: 5px 5px 10px 5px;
  padding: 0;
  padding-top: 5px;
  padding-bottom: 5px;
  display: flex;
}

.dictationrow {
  margin: 5px;
  padding: 0;
  border: 2px solid darkgray;
  padding-top: 5px;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
}

.dictate-feedback {
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 30px;
  height: 30px;
  font-size: 30px !important;
}

/* DICTATION CHAT */

.minilesson_dictate_player_box {
  border: 1px solid darkgray;
  position: relative;
  margin: auto;
}

.minilesson_dictate_player_box .dictate_prompt {
  position: relative;
  margin-top: 10px;
}

.minilesson_dictate_player_box .dictate_reply {
  margin-top: 10px;
  position: relative;
}

.dictate_error {}

.minilesson_dictate_player_box .dictate_game {
  min-height: 250px;
  padding: 10px;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
  background-color: rgba(98, 135, 182, 1);
}

.minilesson_dictate_player_box .dictate_speech {
  position: relative;
  font-family: arial;
  font-size: 16px;
  background: #a53d38;
  color: black;
  border-radius: 10px;
  padding: 20px;
}

.minilesson_dictate_player_box  .dictate_right {
  background-color: white;
}

.minilesson_dictate_player_box .dictate_teacher_left {
  background-color: rgba(122, 221, 76, 1);
}

.minilesson_dictate_player_box .dictate_teacher_left:after {
  content: '';
  border: 20px solid transparent;
  border-right-color: rgba(122, 221, 76, 1);
  border-left: 0;
  position: absolute;
  left: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_dictate_player_box .dictate_right:after {
  content: '';
  border: 20px solid transparent;
  border-left-color: white;
  border-right: 0;
  position: absolute;
  right: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_dictate_player_box .dictate_speech-icon-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_dictate_player_box .dictate_speech-icon-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_dictate_player_box .dictate_mainmenu {
  min-height: 250px;
  background-color: #f5f5f5;
  font-size: 20px;
  padding: 10px;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
}

.minilesson_dictate_player_box .dictate_title {
  border: 2px solid darkgray;
  height: 53px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
}

.minilesson_dictate_player_box .dictate_controls {
  /*
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  */
  height: 35px;
  background-color: white;
}

.minilesson_dictate_player_box .dictate_results {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 75px;
  background-color: rgba(98, 135, 182, 1);
  font-weight: bold;
  color: white;
  text-align: center;
  z-index: 999;
}

.minilesson_dictate_player_box  .dictate_correct {
  background-color: lightgreen;
}

.minilesson_dictate_player_box .dictate_incorrect {
  background-color: lightpink;
}

.minilesson_dictate_player_box .dictate_targetWord {
  padding: 3px;
  border-radius: 5px;
  margin: 5px;
}

.minilesson_dictate_player_box  .dictate_ctrl-btn {
  width: 33.33%;
  float: left;
}


/* LISTEN AND REPEAT */

.minilesson_landr_player_box {
  border: 1px solid darkgray;
  position: relative;
  margin: auto;
  padding-bottom: 15px;
}

.minilesson_landr_player_box .landr_prompt_container {
  margin: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: #f9f9f9; /* subtle background */
  max-width: 600px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.minilesson_landr_player_box .landr_reply_container {
  margin: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.75rem;
  max-width: 600px;
  background-color: #f9f9f9;
}

.landr_icon {
  font-size: 1.5rem;
  color: #4a90e2;
}

.landr_speech_text {
  font-size: 1.3rem;
  color: #333;
}


.landr_speech_inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: #f0f0f0;
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-grow: 1;
  font-size: 1rem;
  color: #333;
}

.landr_word_input {
  padding: 0.3rem 0.5rem;
  font-size: 1rem;
  width: auto;
  min-width: 40px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

.landr_word_input:disabled {
  background-color: #f9f9f9;
  color: #555;
}

.landr_feedback_icon {
  font-size: 0.9rem;
  color: #999;
}
.minilesson_landr_player_box .minilesson_sentence_image {
  margin-bottom: 8px;
}

.minilesson_landr_player_box .landr_reply {
  margin-top: 10px;
  position: relative;
}

.minilesson_landr_player_box .landr_error {}

.minilesson_landr_player_box .landr_game {
  min-height: 250px;
  padding: 10px;
}

.minilesson_landr_player_box .landr_speech {
  position: relative;
  font-family: arial;
  font-size: 16px;
  background: #a53d38;
  color: black;
  border-radius: 10px;
  padding: 20px;
}

.minilesson_landr_player_box  .landr_right {
  background-color: white;
}

.minilesson_landr_player_box .landr_teacher_left {
  background-color: rgba(122, 221, 76, 1);
}

.minilesson_landr_player_box .landr_teacher_left:after {
  content: '';
  border: 20px solid transparent;
  border-right-color: rgba(122, 221, 76, 1);
  border-left: 0;
  position: absolute;
  left: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_landr_player_box .landr_right:after {
  content: '';
  border: 20px solid transparent;
  border-left-color: white;
  border-right: 0;
  position: absolute;
  right: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_landr_player_box .landr_speech-icon-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_landr_player_box .landr_speech-icon-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_landr_player_box .landr_mainmenu {
  height: 250px;
  background-color: #f5f5f5;
  font-size: 20px;
  padding: 10px;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
}

.minilesson_landr_player_box .landr_title {
  border: 2px solid darkgray;
  height: 53px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
}

.minilesson_landr_player_box .landr_controls {

  height: 35px;
  background-color: white;
}

.minilesson_landr_player_box .landr_skip_btn {
    position: absolute;
    right: 10px;
}

.minilesson_landr_player_box .landr_speakbtncontainer {
  height: 75px;
  text-align: center;
  display: none;
}

.minilesson_landr_player_box .landr_results {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 75px;
  font-weight: bold;
  color: white;
  text-align: center;
  z-index: 999;
}

.minilesson_landr_player_box .landr_correct {
  background-color: lightgreen;
}

.minilesson_landr_player_box .landr_incorrect {
  background-color: lightpink;
}

.minilesson_landr_player_box .landr_targetWord {
  padding: 3px;
  border-radius: 5px;
  margin: 5px;
}

.landr_listen_cont {
  text-align: center;
  margin-top: 5px;
}


.mod_minilesson_result_div {
  display: inline-block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: top;
  position: relative;
  padding-top: 13px;
}

/* RESULTS */
.mod_minilesson_result_index {
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 17px;
  width: 36px;
  background-color: #ccc;
  text-align: center;
  border-bottom: 0;
  border-right: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  padding: 6px;
}

.mod_minilesson_result_title {
  position:inherit;
  top: 0;
  right: 9px;
  left: 29px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: left;
  font-weight: bold;
  justify-content: space-between;
  box-shadow: 0 0 8px rgb(0 0 0 / 32%);
  padding-left: 11px;
  font-size: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 16px;
}

.mod_minilesson_result_score {}

.mod_minilesson_result_grade {}

.minilesson_speechcards_target_phrase {
  text-align: center;
  padding: 10px;
  border: 1px solid black;
  font-size: 32px;
  width: 75%;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.75);
  margin-top: 10px;
  margin-bottom: 10px;
}

.minilesson_quiz_progress {
  border: 1px solid #000;
  height: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
}

.minilesson_quiz_progress_item {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background-color: gray;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
  z-index: 1;
}

.minilesson_quiz_progress_item_current {
  background-color: green;
  color: white;
}

.minilesson_quiz_progress_finalitem {
  border-radius: 15%;
  width: 30px;
  height: 30px;
  background-color: darkred;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
  z-index: 1;
}

.minilesson_quiz_progress_item_completed {
  background-color: darkgrey;
}

.minilesson_quiz_progress_line {
  background-color: gray;
  height: 10px;
  position: absolute;
  margin-top: auto;
  margin-bottom: auto;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
}

.minilesson_landr_player_box .landr_feedback,
.minilesson_dictate_player_box .dictate_feedback {
  font-size: 14px !important;
  padding: 10px;
}

.mod_minilesson_link_box {
  border: 1px solid black;
  display: inline-block;
  width: 150px;
  height: 120px;
  vertical-align: top;
  margin: 10px;
  position: relative;
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center 10px;
  cursor: pointer;
}

.mod_minilesson_link_box:hover {
  background-color: #f5f5f5;
}

.mod_minilesson_link_box_title {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  text-align: center;
  margin: 5px;
}

.mod_minilesson_link_box_container {
  text-align: center;
}

.itemscoresbutton {
  text-align: center;
}

/*TT Recorder Styles */
.mod_minilesson_ttrec_waveButtonContainer {
  position: relative;
  margin: auto;
  border: 2px solid darkgray;
  border-radius: 10px;
  width: 200px;
}

.mod_minilesson_ttrec_waveForm {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: white;
  border-radius: 10px;
}

.mod_minilesson_ttrec_waveButton {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: inset 0px 1px 3px #ffccbd, inset 0px -1px 3px #9c282e;
  color: #000;
  font-size: 26px;
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3);
  -webkit-appearance: none;
  -moz-appearance: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  margin: auto;
  color: white;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mod_minilesson_ttrec_waveButtonContainer .ttrec_ready {
  background: green;
}

.mod_minilesson_ttrec_waveButtonContainer .mod_minilesson_ttrec_waveButton.ttrec_waiting {
  background: grey;
  box-shadow: none;
}
.mod_minilesson_ttrec_waveButtonContainer .mod_minilesson_ttrec_waveForm.ttrec_waiting {
  display: none;
}

.mod_minilesson_ttrec_waveButtonContainer .ttrec_engaged {
  background: #e52;
}

.mod_minilesson_quiz_reattempt {
  margin: 10px;
}
.mod_minilesson_iteminstructions {
  width: 100%;
  max-width: 600px;
  margin: auto;
  text-align: center;
  font-size: 1.1em;
  font-style: italic;
  padding-top: 5px;
}
.mod_minilesson_itemtext {
  width: 100%;
  max-width: 600px;
  margin: auto;
  text-align: center;
  font-size: 1.3em;
  padding-top: 5px;
}
.mod_minilesson_itemtextarea {
  width: 100%;
  max-width: 600px;
  margin: auto;
}


.mod_minilesson_itemaudio {
  width: 100%;
  max-width: 400px;
  margin: auto;
}
.mod_minilesson_itemvideo {
  width: 100%;
  max-width: 400px;
  margin: auto;
}
.mod_minilesson_itemimage {
  width: 100%;
  max-width: 400px;
  margin: auto;
}
.minilesson_questionheader_contents {
  margin-bottom: 10px;
  margin-top: 10px;
}
.mod_minilesson_itemimage_cont,
.mod_minilesson_itemvideo_cont,
.mod_minilesson_itemaudio_cont,
.mod_minilesson_itemiframe_cont,
.mod_minilesson_itemttsaudio_cont,
.mod_minilesson_itemttsdialog_cont,
.mod_minilesson_itemytclip_cont {
  width: 100%;
  margin-top: 10px;
  text-align: center;
}
.mod_minilesson_itemimage_cont.mod_minilesson_magazine {
  max-width: 250px;
  float: left;
  padding: 5px;
}
.mod_minilesson_itemtextarea_cont, .mod_minilesson_itemttspassage_cont {
  width: 100%;
  margin-top: 10px;
  padding: 5px;
  border: 1px solid grey;
}

.mod_minilesson_iframe_responsive {
  overflow:hidden;
  padding-bottom:56.25%;
  position:relative;
  height:0;
  margin: auto;
}

.mod_minilesson_itemiframe_cont,
.mod_minilesson_itemytclip_cont {
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 100%;
  height: 100%;
  max-width: 560px;
  max-height: 315px;
}

.mod_minilesson_iframe_responsive iframe {
  left:0;
  top:0;
  height:100%;
  width:100%;
  position: absolute;
  max-width: 560px;
  max-height: 315px;
}

.minilesson_actionbutton {
  margin: 5px;
  padding: 5px;
  text-align: center;
}

.minilesson_dictate_player_box .dictate_loaded,
.minilesson_landr_player_box .landr_loaded {
  text-align: center;
}

.minilesson_landr_player_box  .landr_start_btn,
.minilesson_dictate_player_box  .dictate_start_btn,
.minilesson_fluency_box  .fluency_start_btn,
.minilesson_tgapfill_player_box  .tgapfill_start_btn ,
.minilesson_lgapfill_player_box  .lgapfill_start_btn,
.minilesson_sgapfill_player_box  .sgapfill_start_btn {
  /* position: absolute; */
  /* bottom: 0; */
  margin-left: auto;
  height: 50px;
  width: 60%;
  margin-right: auto;
  margin-top: 80px;
}

.minilesson_mc_response {
  padding: 10px;
  border: 1px solid black;
  border-radius: 5px;
  background-color: white;
  cursor: pointer;
  font-size: 1.33em;
  overflow: auto;
  margin-bottom: 5px;
}
.minilesson_mc_confirmchoice {
  text-align: center;
  background-color: blue;
  color: white;
  padding: 10px;
  border: 1px solid black;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.33em;
  overflow: auto;
}

.mc_playbutton_container {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.33em;
}

.minilesson_mc_selected {
  background-color: lightblue;
}
.minilesson_mc_disabled {
  pointer-events: none;
}

.minilesson_mc_disabled {
  pointer-events: none;
}
.minilesson_mc_right {
  color: green;
}
.minilesson_mc_wrong {
  color: red;
}
.minilesson_mc_unanswered {
  color: black;
}
.minilesson_mc_playstate {
  float: right;
}

.minilesson_reportsmenu_box {
  text-align: center;
  display: flex;
}

.minilesson_reportsmenu_item {
  height: 80px;
  width: 150px;
  margin: 10px;
}

.minilesson_reportsmenu_itembutton button{
  height: 80px;
  width: 150px;
}
.mod_minilesson_spokenandcorrect {
  text-align: center;
  margin-left:auto;
  margin-right: auto;
  margin-top: 5px;
  margin-bottom: 8px;
  max-width: 400px;
  padding: 5px;
  border: 1px solid grey;
}

/* minilesson accordion css*/

ul.minilesson_result {
  list-style: none;
  display: flex;
  /* margin: 10px 20px; */
  margin-left: 0;
  padding-left: 0;
  justify-content: space-between;
}
ul.minilesson_result li:nth-child(1) {
  margin-left: 0;
}
ul.minilesson_result li {
  margin: 0 20px;
}
#itemscores .panel.panel-default {
  box-shadow: 0 0 8px rgb(0 0 0 / 32%);
  margin-left: 46px;
}
#itemscores #accordion .panel-body {
  box-shadow: 0 0 8px rgb(0 0 0 / 32%);
  padding: 11px;
  margin-top: 12px;
  text-align: left;

}
a.accordion-toggle.mod_minilesson_result_title {
  text-decoration: none;
}
.minilessonname {
  background: #ccc;
  padding: 10px;
  font-size: 19px;
}
.mod_minilesson_quiz_finished {
  border: solid 1px #ccc;

}
.mod_minilesson_quiz_finished h1 {
  margin-top: 43px;
  font-size: 26px;
  font-weight: 500;
  margin-bottom:10px;
}
div#itemscores {
  margin: 0 20px;
}
.quizrating {
  margin-bottom: 31px;
}
.mod_minilesson_result_div .panel-group .panel-heading a:after {
  content: '-';
  float: right;
  font-size: 25px;
}

.mod_minilesson_result_div .panel-group .panel-heading a.collapsed:after {
  content: '+' !important;
}

@media screen and (max-width:922px){
  .mod_minilesson_result_rating img {
    max-width: 16px;
  }
  ul.minilesson_result li {
    margin: 0px 8px;
    width: 20%;
    font-size: 12px;
  }

}

@media screen and (max-width:480px) {
  ul.minilesson_result {
    display: block;
  }

  ul.minilesson_result li {
    margin: 0 0 14px;
  }

  ul.minilesson_result li {
    margin: 11px 0;
    width: 100%;
    font-size: 16px;
  }

  .mod_minilesson_result_rating img {
    max-width: 100%;
  }
}
span.mod_minilesson_finishedanswer {
  display: block;
}
.mod_minilesson_placeholder {
  width: 100%;
  max-width: 400px;
  height: 300px;
  margin: auto;
}
.mod_minilesson_skeleton_box {
  background-color: #DDDBDD;
  color: grey;
  -webkit-mask: linear-gradient(-60deg,#000 30%,#0005,#000 70%) right/300% 100%;
  background-repeat: no-repeat;
  animation: minilessonshimmer 2.5s infinite;

}
@keyframes minilessonshimmer {
  100% {-webkit-mask-position:left}
}
.mod_minilesson_spokenandcorrect.minilesson_success {
  background-color: lightgreen;
}
.ttsdialog_actorplusline {
  border: 1px solid darkgray;
  background-color: white;
}
.ttsdialog_text {
  background-color: white;
  min-height: 30px;
  display: flex;
  align-items: center;
}

.ttsdialog_actor {
  margin: auto;
  text-align: center;
}
.ttsdialog_actor.rolea {
  color: blue;
}
.ttsdialog_actor.roleb {
  color: green;
}
.ttsdialog_actor.rolec {
  color: orange;
}
.ttsdialog_actor.rolenone {
  opacity: 0;
}

.mod_minilesson_itemttspassage_cont button.passage-audio-player{
  border: none;
  color: #fff;
  width: 50%;
  height: 30px;
  background-color: green;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 7px;
}


.mod_minilesson_itemttspassage_cont .passageplayer_activesentence {
  background: #c5efcf;
  /* font-weight: bold; */
}

.mform [data-root="elementwrapper"] [data-fieldtype="ttsaudio"] button.roundmini-audio-player,
.ttsaudio.container button.roundmini-audio-player{
  border: solid 1px green;
  border-radius: 50%;
  color: green;
  width: 50px;
  height: 50px;
  /* background-color: green; */
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3px;
  margin-top: 3px;
}
.mform [data-root="elementwrapper"] .felement[data-fieldtype="ttsaudio"] .col-form-label {
    padding-left: 0;
}
.mform [data-root="elementwrapper"] [data-fieldtype="ttsaudio"] .samplettsaudio {
    margin-left: 10px;
    margin-top: auto;
}
.mform [data-root="elementwrapper"] [data-fieldtype="ttsaudio"] button.roundmini-audio-player {
    height: auto;
    width: auto;
    padding: 0.375rem 0.675rem;
}
.mform [data-root="elementwrapper"] [data-fieldtype="ttsaudio"] .form-group {
    flex-direction: column;
    align-items: start;
}

.gapfill-container input.single-character,
.gapfill-container input.single-character-mtext {
    width: 26px;
    margin-left: 2px;
    text-align: center;
}
.gapfill-container .form-container input:first-child {
    margin-left: 10px;
}
.gapfill-container .form-container input:last-child{
    margin-right: 10px;
}
.gapfill-container .single-character-mtext {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
.gapfill-container .definition-container {
    display: flex;
    background-color: #eee;
    height: 100px;
    margin-bottom: 50px;
}
.gapfill-container .form-container {
    margin: 20px auto 22px;
    min-height: 100px;
}
.gapfill-container .definition {
    align-self: center;
    width: 80%;
    margin: auto;
    border: 1px solid #ccc;
    background-color: white;
    border-radius: 10px;
    padding: 6px;
}

/* Listening Gapfill */
.minilesson_lgapfill_player_box {
  border: 1px solid darkgray;
  position: relative;
  margin: auto;
  padding-bottom: 15px;
}

.minilesson_lgapfill_player_box .lgapfill_prompt {
  position: relative;
  margin-top: 10px;
}

.minilesson_lgapfill_player_box .lgapfill_reply {
  margin-top: 10px;
  position: relative;
}

.lgapfill_error {}

.minilesson_lgapfill_player_box .lgapfill_game {
  min-height: 250px;
  padding: 10px;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
  background-color: rgba(98, 135, 182, 1);
}

.minilesson_lgapfill_player_box .lgapfill_speech {
  position: relative;
  font-family: arial;
  font-size: 16px;
  background: #a53d38;
  color: black;
  border-radius: 10px;
  padding: 20px;
}

.minilesson_lgapfill_player_box  .lgapfill_right {
  background-color: white;
}

.minilesson_lgapfill_player_box .lgapfill_teacher_left {
  background-color: rgba(122, 221, 76, 1);
}

.minilesson_lgapfill_player_box .lgapfill_teacher_left:after {
  content: '';
  border: 20px solid transparent;
  border-right-color: rgba(122, 221, 76, 1);
  border-left: 0;
  position: absolute;
  left: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_lgapfill_player_box .lgapfill_right:after {
  content: '';
  border: 20px solid transparent;
  border-left-color: white;
  border-right: 0;
  position: absolute;
  right: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_lgapfill_player_box .lgapfill_speech-icon-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_lgapfill_player_box .lgapfill_speech-icon-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_lgapfill_player_box .lgapfill_mainmenu {
  min-height: 250px;
  background-color: #f5f5f5;
  font-size: 20px;
  padding: 10px;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
}

.minilesson_lgapfill_player_box .lgapfill_title {
  border: 2px solid darkgray;
  height: 53px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
}

.minilesson_lgapfill_player_box .lgapfill_controls {
  margin-top: 5px;
  height: 35px;
  background-color: white;
  text-align: center;
}

.minilesson_lgapfill_player_box .lgapfill_results {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 75px;
  background-color: rgba(98, 135, 182, 1);
  font-weight: bold;
  color: white;
  text-align: center;
  z-index: 999;
}

.minilesson_lgapfill_player_box  .lgapfill_correct {
  background-color: lightgreen;
}

.minilesson_lgapfill_player_box .lgapfill_incorrect {
  background-color: lightpink;
}

.minilesson_lgapfill_player_box .lgapfill_targetWord {
  padding: 3px;
  border-radius: 5px;
  margin: 5px;
}

.minilesson_lgapfill_player_box  .lgapfill_check_btn {
  width: 33.33%;
}

.minilesson_lgapfill_player_box  .lgapfill_skip_btn {
  position: absolute;
  right: 10px;
}


.lgapfill_listen_cont {
  text-align: center;
}

/* Typing Gapfill */
.minilesson_tgapfill_player_box {
  border: 1px solid darkgray;
  position: relative;
  margin: auto;
  padding-bottom: 15px;
}

.minilesson_tgapfill_player_box .tgapfill_prompt {
  position: relative;
  margin-top: 10px;
}

.minilesson_tgapfill_player_box .tgapfill_reply {
  margin-top: 10px;
  position: relative;
}

.tgapfill_error {}

.minilesson_tgapfill_player_box .tgapfill_game {
  min-height: 250px;
  padding: 10px;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
  background-color: rgba(98, 135, 182, 1);
}

.minilesson_tgapfill_player_box .tgapfill_speech {
  position: relative;
  font-family: arial;
  font-size: 16px;
  background: #a53d38;
  color: black;
  border-radius: 10px;
  padding: 20px;
}

.minilesson_tgapfill_player_box  .tgapfill_right {
  background-color: white;
}

.minilesson_tgapfill_player_box .tgapfill_teacher_left {
  background-color: rgba(122, 221, 76, 1);
}

.minilesson_tgapfill_player_box .tgapfill_teacher_left:after {
  content: '';
  border: 20px solid transparent;
  border-right-color: rgba(122, 221, 76, 1);
  border-left: 0;
  position: absolute;
  left: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_tgapfill_player_box .tgapfill_right:after {
  content: '';
  border: 20px solid transparent;
  border-left-color: white;
  border-right: 0;
  position: absolute;
  right: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_tgapfill_player_box .tgapfill_speech-icon-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_tgapfill_player_box .tgapfill_speech-icon-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_tgapfill_player_box .tgapfill_mainmenu {
  min-height: 250px;
  background-color: #f5f5f5;
  font-size: 20px;
  padding: 10px;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
}

.minilesson_tgapfill_player_box .tgapfill_title {
  border: 2px solid darkgray;
  height: 53px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
}

.minilesson_tgapfill_player_box .tgapfill_controls {
  margin-top: 5px;
  height: 35px;
  background-color: white;
  text-align: center;
}

.minilesson_tgapfill_player_box .tgapfill_results {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 75px;
  background-color: rgba(98, 135, 182, 1);
  font-weight: bold;
  color: white;
  text-align: center;
  z-index: 999;
}

.minilesson_tgapfill_player_box  .tgapfill_correct {
  background-color: lightgreen;
}

.minilesson_tgapfill_player_box .tgapfill_incorrect {
  background-color: lightpink;
}

.minilesson_tgapfill_player_box .tgapfill_targetWord {
  padding: 3px;
  border-radius: 5px;
  margin: 5px;
}

.minilesson_tgapfill_player_box  .tgapfill_check_btn {
  width: 33.33%;
}

.minilesson_tgapfill_player_box  .tgapfill_skip_btn {
  position: absolute;
  right: 10px;
}

/* SGAPFILL */

.sgapfill_listen_cont {
  text-align: center;
}

.minilesson_sgapfill_player_box {
  border: 1px solid darkgray;
  position: relative;
  margin: auto;
  padding-bottom: 15px
}

.minilesson_sgapfill_player_box .sgapfill_prompt {
  position: relative;
  margin-top: 10px;
}

.minilesson_sgapfill_player_box .sgapfill_reply {
  margin-top: 10px;
  position: relative;
}

.minilesson_sgapfill_player_box .sgapfill_error {}

.minilesson_sgapfill_player_box .sgapfill_game {
  min-height: 250px;
  padding: 10px;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
  background-color: rgba(98, 135, 182, 1);
}

.minilesson_sgapfill_player_box .sgapfill_speech {
  position: relative;
  font-family: arial;
  font-size: 16px;
  background: #a53d38;
  color: black;
  border-radius: 10px;
  padding: 20px;
}

.minilesson_sgapfill_player_box  .sgapfill_right {
  background-color: white;
}

.minilesson_sgapfill_player_box .sgapfill_teacher_left {
  background-color: rgba(122, 221, 76, 1);
}

.minilesson_sgapfill_player_box .sgapfill_teacher_left:after {
  content: '';
  border: 20px solid transparent;
  border-right-color: rgba(122, 221, 76, 1);
  border-left: 0;
  position: absolute;
  left: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_sgapfill_player_box .sgapfill_right:after {
  content: '';
  border: 20px solid transparent;
  border-left-color: white;
  border-right: 0;
  position: absolute;
  right: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_sgapfill_player_box .sgapfill_speech-icon-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_sgapfill_player_box .sgapfill_speech-icon-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_sgapfill_player_box .sgapfill_mainmenu {
  height: 250px;
  background-color: #f5f5f5;
  font-size: 20px;
  padding: 10px;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
}

.minilesson_sgapfill_player_box .sgapfill_title {
  border: 2px solid darkgray;
  height: 53px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
}

.minilesson_sgapfill_player_box .sgapfill_controls {
  /* position: absolute;
  left: 0;
  right: 0;
  bottom: 75px;
  */
  margin-top: 5px;
  height: 35px;
  background-color: white;
}

.minilesson_sgapfill_player_box .sgapfill_controls .sgapfill_ctrl-btn {
  /*width: 50%;*/
 /* float: left; */
}

.minilesson_sgapfill_player_box .sgapfill_speakbtncontainer {
  /*
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  */
  height: 75px;
  /* background-color: rgba(98, 135, 182, 1); */
  text-align: center;
  display: none;
}

.minilesson_sgapfill_player_box .sgapfill_results {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 75px;
  background-color: rgba(98, 135, 182, 1);
  font-weight: bold;
  color: white;
  text-align: center;
  z-index: 999;
}

.minilesson_sgapfill_player_box .sgapfill_correct {
  background-color: lightgreen;
}

.minilesson_sgapfill_player_box .sgapfill_incorrect {
  background-color: lightpink;
}

.minilesson_sgapfill_player_box .sgapfill_targetWord {
  padding: 3px;
  border-radius: 5px;
  margin: 5px;
}
.minilesson_sgapfill_player_box  .sgapfill_skip_btn {
  position: absolute;
  right: 10px;
}

/* the background color of gapfill words char inputs when marked correct */
.ml_gapfill_char_correct {
  background-color: palegreen;
}
body.poodll-minilesson-embed #page {
  margin-top: 5px;
}
.mod_minilesson_rtl {
  direction: rtl;
  text-align: right;
}
.ml_mediaprompt_instructions {
  margin-bottom: 5px;
}

/* H5P */
.minilesson_bq_resultbox {
  float: right;
  padding-left: 8px;
}

.bqplayrow {
  margin: 5px 5px 10px 5px;
  padding: 0;
  padding-top: 5px;
  padding-bottom: 5px;
}

.minilesson_bq_response {
  padding: 10px;
  border: 1px solid black;
  border-radius: 5px;
  background-color: white;
  cursor: pointer;
  font-size: 1.33em;
  overflow: auto;
}
.minilesson_bq_confirmchoice {
  text-align: center;
  background-color: blue;
  color: white;
  padding: 10px;
  border: 1px solid black;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.33em;
  overflow: auto;
}

.minilesson_bq_selected {
  background-color: lightblue;
}
.minilesson_bq_disabled {
  pointer-events: none;
}

.minilesson_bq_disabled {
  pointer-events: none;
}
.minilesson_bq_right {
  color: green;
}
.minilesson_bq_wrong {
  color: red;
}
.minilesson_bq_unanswered {
  color: black;
}
.minilesson_bq_playstate {
  float: right;
}

/* Activity */
.minilesson_loading {
  margin: 20px;
  padding: 10px;
  text-align: center;
}

.minilesson_loadingtext {
  margin: 10px;
}

#minilesson-results {
  display: none;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

#minilesson-gameboard {
  display: none;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  max-width: 1200px;
}

.path-mod-minilesson #mod_minilesson_spacegame {
  background-color: #000;
  width: 100%;
}

.mod_minilesson_activity_header {
  color: #281D5B;
  margin-bottom: 24px;
  margin-top: 24px;
}

#minilesson-results .try-again-or-next,
#minilesson-results .show-detailed-feedback {
  text-align: center;
}

.ml-spacegame-correct {
  background-color: rgba(0, 255, 0, .5) !important;
  border: 1px solid black;
  border-radius: 5px;
  padding: 1px;
}

.ml-spacegame-incorrect {
  background-color: rgba(255, 0, 0, .5) !important;
  border: 1px solid black;
  border-radius: 5px;
  padding: 1px;
}

.ml-spacegame-basic_feedback {
  text-align: center;
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid darkgray;
}

.ml-spacegame-detailed_feedback_div {
  text-align: left;
  padding: 10px;
  font-size: 20px;
  border-radius: 5px;
  margin: 5px;
  display: inline-block;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  vertical-align: top;
}

.ml-spacegame-bigbutton {
  width:50%;
  margin:auto;
}

.mlfsr_correctedtext_container,
.mlfsr_originaltext_container {
  border: 1px solid grey;
  padding: 6px;
  font-size: large;
}

.mod_minilesson_mu_passage_word.pr_correct,
.mod_minilesson_mu_passage_space.pr_correct {
  text-decoration: underline;
  text-decoration-color: green;
  background-color: #c5efcf;
}

.mod_minilesson_mu_passage_word.pr_incorrect,
.mod_minilesson_mu_passage_space.pr_incorrect {
  text-decoration: underline;
  text-decoration-color: red;
  background-color: #ffcaca;
}

.mod_minilesson_mu_passage_space.pr_unreached,
.mod_minilesson_mu_passage_word.pr_unreached {
  background-color: rgb(234, 229, 229);
}

.ml_recsession {
  width: 150px;
  margin: auto;
  text-align: center;
}

.ml_passagereading_passage {
  border: 1px solid grey;
  padding: 6px;
  font-size: large;
  margin-bottom: 15px;
}

.ml_passagereading_resultscontainer,
.ml_freespeaking_results_summaries {
  display: flex;
  justify-content: space-between;
  border: 1px solid grey;
  padding: 4px;
}

.ml_rp_resultcell,
.ml_fs_results_summary {
  text-align: center;
}

.ml_rp_resultcell_title,
.ml_fs_sumcell_title {
  font-size: 0.8em;
  display: block;
}

/* FreeSpeaking */

.mod_minilesson_grading_badword {
  /*
  color: red;
  background-color: #ffcaca;
  padding: 5px;
  border-radius: 5px 5px 5px;
  border: 1px solid red;
  position: relative;
  */
  text-decoration: underline #0000FF;
  font-weight: bold;
}

.mod_minilesson_grading_endspace {
  /*
  color: blue;
  background-color: #cacaff;
  padding: 5px;
  border-radius: 5px 5px 5px;
  border: 1px solid blue;
  position: relative;
  */
}

.mod_minilesson_mu_passage_space {
 /* padding: 2px; */
}

div.mod_minilesson_postattempt .mod_minilesson_grading_unreadword {
  text-decoration: none;
  background-color: lightgrey;
}

div.mod_minilesson_postattempt .mod_minilesson_grading_unreadspace {
  background-color: lightgrey;
  padding: 0px 2px;
}

.mod_minilesson_grading_unreadword {
color: #F13B3B;
font-weight: 700;
}

.mod_minilesson_mu_passage_word.mod_minilesson_aicorrected,
.mod_minilesson_mu_passage_space.mod_minilesson_aicorrected {
background-color: lightpink;
}

.mod_minilesson_mu_passage_word.asf_cp_aiomitted, .mod_minilesson_mu_passage_space.asf_cp_aiomitted {
text-decoration: line-through;
}

.mod_minilesson_mu_passage_word.mod_minilesson_aiunmatched {
  /*background-color: lightgrey;*/
}

.mod_minilesson_mu_passage_space.mod_minilesson_aiunmatched {
  /*background-color: lightgrey;*/
  text-decoration: underline #0000FF;
  font-weight: bold;
}

.mod_minilesson_corrections {
	text-align: left;
	font-style: normal;
}

/* delete? */
span.mod_minilesson_corrections_suggestedword {
	font-weight: bold;
	background-color: lightgreen;
}

span.mod_minilesson_corrections_insertionword {
	font-weight: bold;
	background-color: lightgreen;
}

span.mod_minilesson_corrections_omittedword {
	font-weight: bold;
	background-color: lightgreen;
	word-spacing: 5px;
}
span.mod_minilesson_mu_original_preword,span.mod_minilesson_mu_original_postword {
	font-weight: 500;
	background-color: antiquewhite;
}

.mod_minilesson_overflow_auto {
overflow: auto;
}

.ml_listitem_result {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ml_listitem_result .ml_li_resultitem {
  display: flex;
  flex-grow: 1;
  margin-left: 3px;
  margin-right: 3px;
}
.ml_listitem_result .ml_li_resultaudio,
.ml_listitem_result .ml_li_resultstatus {
  flex-shrink: 0;
}
.ml_listitem_result .ml_li_resultstatus {
  border: 1px solid grey;
  padding: 3px;
  margin: 5px;
  min-width: 25px;
  text-align: center;
  border-radius: 5px;
}
.ml_listitem_result .ml_li_resultstatus.ml_correct {
  background-color: lightgreen;
}
.ml_listitem_result .ml_li_resultstatus.ml_incorrect {
  background-color: lightcoral;
}
.ml_listitem_results_header h3 {
  text-align: center;
  padding-top: 7px;
}
.minilesson_resultspanel_swish {
  text-align: center;
  font-size: x-large;
}
.ml_freewriting_submitbutton {
  margin: auto;
  width: 80%;
}
textarea.ml_freewriting_textarea {
  width: 100%;
}
.ml_freewriting_actionbox {
  text-align: center;
}
.ml_qf_itemresults {
  max-width: 80%;
  margin: auto;
}

.minilesson_mc_image {
  position: relative; /* Needed for padding trick */
  width: 100%;
  padding-bottom: 75%; /* Example aspect ratio (4:3). Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.minilesson_mc_image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: scale-down; /* or contain */
}

/* Fluency */
.minilesson_fluency_box .item-feedback-container  {
  display: flex;
  background-color: #eee;
  height: 50px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 1.1rem;
  padding: 2px;
  margin-bottom: 50px
}

.minilesson_fluency_box .item-results-container {
  margin-bottom: 5px;
  display: flex;
  height: 25px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 1.1rem;
  padding: 2px;
  margin-bottom: 5px
}


.minilesson_fluency_box .form-container {
  margin: 20px auto 22px;
  min-height: 50px;
}
.minilesson_fluency_box .item-results {
  align-self: center;
  width: 80%;
  margin: auto;
  border: 1px solid #ccc;
  background-color: white;
  border-radius: 10px;
  padding: 6px;
  font-style: italic;
}

.fluency_listen_cont {
  text-align: center;
}

.minilesson_fluency_box {
  border: 1px solid darkgray;
  position: relative;
  margin: auto;
  padding-bottom: 15px
}

.minilesson_fluency_box .fluency_prompt {
  position: relative;
  margin-top: 10px;
  font-size: 1.3em;
}

.minilesson_fluency_box .fluency_reply {
  margin-top: 10px;
  position: relative;
}

.minilesson_fluency_box .fluency_game {
  min-height: 250px;
  padding: 10px;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
  background-color: rgba(98, 135, 182, 1);
}

.minilesson_fluency_box .fluency_speech {
  position: relative;
  font-family: arial;
  font-size: 16px;
  background: #a53d38;
  color: black;
  border-radius: 10px;
  padding: 20px;
}

.minilesson_fluency_box  .fluency_right {
  background-color: white;
}

.minilesson_fluency_box .fluency_teacher_left {
  background-color: rgba(122, 221, 76, 1);
}

.minilesson_fluency_box .fluency_teacher_left:after {
  content: '';
  border: 20px solid transparent;
  border-right-color: rgba(122, 221, 76, 1);
  border-left: 0;
  position: absolute;
  left: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_fluency_box .fluency_right:after {
  content: '';
  border: 20px solid transparent;
  border-left-color: white;
  border-right: 0;
  position: absolute;
  right: -20px;
  top: 50%;
  margin-top: -20px;
}

.minilesson_fluency_box .fluency_speech-icon-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_fluency_box .fluency_speech-icon-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 50px !important;
  height: 50px;
}

.minilesson_fluency_box .fluency_mainmenu {
  height: 250px;
  background-color: #f5f5f5;
  font-size: 20px;
  padding: 10px;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
}

.minilesson_fluency_box .fluency_title {
  border: 2px solid darkgray;
  height: 53px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
}

.minilesson_fluency_box .fluency_controls {
  margin-top: 5px;
  height: 35px;
  background-color: white;
}

.minilesson_fluency_box .fluency_speakbtncontainer {

  height: 75px;
  /* background-color: rgba(98, 135, 182, 1); */
  text-align: center;
  display: none;
}

.minilesson_fluency_box .fluency_results {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 75px;
  background-color: rgba(98, 135, 182, 1);
  font-weight: bold;
  color: white;
  text-align: center;
  z-index: 999;
}

.minilesson_fluency_box .fluency_correct {
  background-color: lightgreen;
}

.minilesson_fluency_box .fluency_incorrect {
  background-color: lightpink;
}

.minilesson_fluency_box .fluency_targetWord {
  padding: 3px;
  border-radius: 5px;
  margin: 5px;
}
.minilesson_fluency_box  .fluency_skip_btn {
  position: absolute;
  right: 10px;
}

.minilesson_fluency_box .item-results-container .fa-star {
  color: gold;
  font-size: 1.5em;
}

.minilesson_fluency_box .item-results-container .fa-star-o {
  color: gray;
  font-size: 1.5em;
}

div.fluencywordresult {
 /* display: flex; */
  flex-wrap: nowrap;
  gap: 3px;
 /* margin-top: 10px; */
  margin-right: 10px;
}
span.fluencyletterresult {
    /* padding: 2px 4px; */
    border-radius: 4px;
    border: 1px solid transparent;
    background-color: #f9f9f9;
    cursor: default;
}

span.fluencyletterresult.letter_missing {
  color: gray;
}
span.fluencyletterresult.letter_fair {
  color: orange;
}
span.fluencyletterresult.letter_good {
  color: green;
}
span.fluencyletterresult.letter_wrong {
  color: red;
}
.btn.ml_li_resultaudioself,
.btn.fluency_listen_btn.audioself {
  color: deeppink;
}
.minilesson_sentence_image {
  max-width:400px;
  width: 75%;
  margin: auto;
}
.minilesson_padded_image {
  position: relative; /* Needed for padding trick */
  width: 100%;
  padding-bottom: 75%; /* Example aspect ratio (4:3). Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.minilesson_padded_image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: scale-down; /* or contain */
}


.element-sentenceprompt-container {
  display: flex;
  border: 1px solid rgb(203, 213, 225);
  border-radius: 0.5rem;
  overflow: hidden;
  max-height: 32rem;
}

.element-sentenceprompt-container .sentenceprompt__textarea {
  border: none;
  outline: none;
  padding: 0.5rem;
  width: 100%;
}
.element-sentenceprompt-container .sentenceprompt__lines {
  border-right: 1px solid rgb(203, 213, 225);
  padding: 0.5rem;
  text-align: right;
  overflow: hidden;
}
.element-sentenceprompt-container .sentenceprompt__textarea:focus {
  box-shadow: none;
}
div.mcaudiotranscript {
  flex-grow: 1;
}
div.mcaudioplayer,
div.poodlldictationplayer {
  position: relative;
  min-width: 50px;
}

.poodlldictationinput {
  flex-grow:  1;
}
.poodlldictationstatus {
  text-align: center;
  position: relative;
  min-width: 50px;
}

.pgapfill_gap_wrapper {
  display: inline-block;
  vertical-align: middle;
}

.pgapfill_passage {
  line-height: 2.0;
}

.pgapfull_monospace {
  font-family: "Roboto Mono", monospace;
  font-size: 1.2rem;
}

.pgapfull_monospace .fa {
  font-size: 1rem;
}

.pgapfill_gap_wrapper .character-input {
    display: inline-block;
    border: 1px inset #767676;
    /* vertical-align: middle; */
    line-height: initial !important;
    height: auto;
    padding: 6px 4px;
    border: 1px inset rgb(118, 118, 118);
}
.pgapfill_gap_wrapper .character-input:placeholder-shown {
  /*
    letter-spacing: 0.25rem;
    */
}
.pgapfill_gap_wrapper.pgapfill_gap_reviewing .pgapfill_gap_input,
.pgapfill_gap_wrapper.psg_gapfill_correct .pgapfill_gap_input {
  background-color: lightgreen;
}
.pgapfill_gap_wrapper.psg_gapfill_correct .correctIcon {
  color: green;
}
.pgapfill_gap_wrapper.psg_gapfill_wrong .wrongIcon {
  color: red;
}
.pgapfill_gap_wrapper:not(.psg_gapfill_wrong) .wrongIcon,
.pgapfill_gap_wrapper:not(.psg_gapfill_correct) .correctIcon {
  display: none;
}
.pgapfill_audio_player {
  width: 100%;
}
.minilesson_pgapfill_box .pgapfill_controls {
  position: relative;
  margin-top: 10px;;
  height: 35px;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}
.minilesson_pgapfill_box  .pgapfill_hint_btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.audiostoryplayer {
   margin: 0;
    padding: 20px;
    background: #111;
    font-family: sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mod_minilesson_audiostory_cont {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .audiostory_audio {
    width: 80%;
    max-width: 600px;
  }

  .audiostory_slideshow_container {
    width: 100%;
    max-width: 600px;         /* Keeps it nice on larger screens */
    aspect-ratio: 3 / 2; 
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
  }

  .audiostory_image_container {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.3) translate(0, 0);
    transition: opacity 1s ease-in-out; /* 👈 Crossfade transition */
  }
  .audiostory_image_container img {
  height: auto;
  object-fit: cover;
  width: 120%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.audiostory_overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.audiostory_play_button {
  font-size: 2rem;
  background: white;
  border: none;
  padding: 1em 2em;
  border-radius: 1em;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.audiostory_caption {
  min-height: 45px;
}

.progress-container {
  padding: 5px 8px;
}
.progress-container .progress.active {
  margin-top: 8px;
  margin-right: 3px;
}
/* Speedy Audio Player */
.ml_speedyplayer_row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      background: #fff;
      padding: 10px;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      max-width: 600px;
      margin: 0 auto;
    }

  .ml_speedyplayer_row audio {
      flex: 1;
      min-width: 200px;
    }

 .ml_speedyplayer_row .speedy_btn {
      padding: 8px 12px;
      border: none;
      border-radius: 6px;
      background: #4a90e2;
      color: white;
      cursor: pointer;
      font-size: 16px;
      transition: background 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

  .ml_speedyplayer_row .speedy_btn:hover {
      background: #357ab8;
    }

  .ml_speedyplayer_row .speedy_btn {
      gap: 6px;
    }

   .ml_speedyplayer_label {
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
   } 

    @media (max-width: 480px) {
      .ml_speedyplayer_row {
        flex-direction: column;
        align-items: stretch;
      }

      .ml_speedyplayer_row audio {
        width: 100%;
      }

      .ml_speedyplayer_row audio .speedy_btn {
        width: 100%;
        justify-content: center;
      }
    }

    .mod_minilesson_aigenpageexplanation {
      margin: 10px auto;
    }