.h5p-intro-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #27344e;
    z-index: 499;
    border: 1px solid #27344e;
    margin-top: 2em;
}
.h5p-wrapper-intro-page {
    word-spacing: 4px;
    margin-top: 10em;
    margin-bottom: 3em;
}

.h5p-title-introduction, .h5p-introduction-content {
    line-height: 2em;
    padding: 0 1.1em 0 1.1em;
    font-weight: 300;
}
.h5p-title-introduction {
    font-size: 2em;
}
.h5p-title-introduction p {
    margin: 0;
}

.h5p-introduction-content {
    font-size: 1.5em;
}

.h5p-title-introduction span {
   outline: none
}
.h5p-navigation-start {
    bottom: 1em;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.h5p-button.start {
    font-size: 1.1em;
    border: 0.05em solid #414d66;
    color: #a3adc4;
    background: none;
    min-width: 7em;
    padding: 0.87em;
    border-radius: 1.5em;
}
.h5p-button.start:hover {
    background-color: #414d66;
    box-shadow: 0 0 0.5em 0 #7fb8ff;
    cursor: pointer
}
.h5p-start-button {
    font-size: 1.1em;
    background-color: #414d66;
    border: 0.05em solid #414d66;
    color: #a3adc4;
    min-width: 10em;
    padding: 0.87em;
    border-radius: 1em;
    margin: auto;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.h5p-start-button {
    background-color: #414d66;
    box-shadow: 0 0 0.5em 0 #7fb8ff;
    cursor: pointer
}  

.h5p-speaker {
    font-size: 2.4em;
    position: relative;
    left: -.8em;
    top: -5.5em;
    padding: 3px .67em;
    background-color: transparent;
    line-height: 1.2em;
    width: 1em;
    height: 1.2em;
}

.h5p-speak-no-avatar {
    font-size: 1.6em;
    top: -5.5em;
    background-color: transparent;
    text-align: center;
    position: relative;
    margin: 0 auto;
    left: 0;
    padding: 0;
    width: fit-content;
    height: auto;
    line-height: 0.5em;
}

/*
.h5p-speak-avatar {
    text-align: center;
    z-index: 11;
    position: relative;
    line-height: 2em;
    padding: 0;
    margin: 0 auto;
    width: min-content;
}

.h5p-speak-avatar.im-speacking-image:hover:after,
.h5p-speak-avatar.im-speacking-image:after,
.h5p-speak-no-avatar.im-speacking-imagehover:after,
.h5p-speak-no-avatar.im-speacking-image:after {
    content: '\f026';
    color: #7fb8ff;
}
.h5p-speak-no-avatar:hover,
.h5p-speak-avatar:hover {
    cursor: auto;
    color:#000    
}
.h5p-speak-no-avatar:after,
.h5p-speak-avatar:after {
    font-family: 'H5PFontAwesome4';
    font-size: 2.5em;
    content: '\f028';
}

.h5p-speak-no-avatar:hover:after,
.h5p-speak-avatar:hover:after {
    color: #ccc;
    cursor: pointer
}
*/

.h5p-speak,
.h5p-speak.im_speacking {
    border-radius: 50%;
    font-size: 2.4em;
    position: relative;
    left: -.8em;
    top: -5.5em;
    padding: 3px .2em;
    background-color: #fbd329;
    line-height: 1.2em;
    width: 1em;
    height: 1.2em;
}
.h5p-speak.im-speacking-image {
    border-radius: 50%;
    font-size: 2.4em;
    position: relative;
    left: -.8em;
    top: -3.6em;
    padding: 3px .2em;
    background-color: #fbd329;
    line-height: 1.2em;
    width: 1em;
    height: 1.2em;
}
.h5p-speak.im-speacking-image:before {
    font-family: H5PFontAwesome4;
    content: '\f026';
    cursor: pointer;
    color: #7fb8ff;
}

.h5p-speak:before {
    font-family: H5PFontAwesome4;
    content: '\f028';
    cursor: pointer;
    color: #000;
}
.h5p-speak.im_speacking:before {
    padding: 3px .25em;
}

.h5p-introduction {
    height: 1em;
    font-size: 2.5em;
    line-height: .75em;
}

.h5p-speak-introduction-flashcards, 
.h5p-speak-introduction {
    font-size: 2.5em;
    text-align: center;
    line-height: .75em;
    width: 50px;
    margin: 0 auto;
}
.h5p-speak-introduction-flashcards:before,
.h5p-speak-introduction:before {
    font-family: H5PFontAwesome4;
    content: '\f028';
    cursor: pointer;
    color: #fff;
}

.h5p-speak-task-description {
  height: 2em;  
}

.h5p-speaker-task-description {
    color: #000
}
.h5p-speaker-task-description:before {
    font-family: H5PFontAwesome4;
    content: '\f028';
    cursor: pointer;
    font-size: 2em;
    left: 0;
    padding: 1em 0 0 20px;
}
.h5p-speak-introduction-flashcards:hover:before,
.h5p-speaker-task-description:hover:before,
.h5p-speak:hover:before,
.h5p-speak-introduction:hover:before {
    color: #ababab;
    cursor: pointer;
}

.h5p-speak-introduction-flashcards.im_speacking:before,
.h5p-speaker-task-description.im_speacking:before,
.h5p-speak-introduction.im_speacking:before,
.h5p-speak.im_speacking:before {
    font-family: H5PFontAwesome4;
    content: '\f026';
    cursor: pointer;
    color: #7fb8ff;
}
/*
.h5p-controls-container {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 2px;
    line-height: inherit;
    width: fit-content;
    height: auto;
    z-index: 500;
    padding: 2px 5px;
    
}
*/
/*
.h5p-sc-sound-control {
    cursor: pointer;
    font-size: .9em;
    float: left;
    
}
.h5p-audio-control {
    cursor: pointer;
    font-size: .7em;
    float: left;
    padding: 0 15px 0 15px;
}

.h5p-sc-sound-control:hover,
.h5p-audio-control:hover {
    color: rgba(185, 185, 185, 0.9);
    
}
.h5p-sc-sound-control:after {
  font-family: H5PFontAwesome4;
  font-size: 2em;
  content: '\f028';
}

.h5p-audio-control:after {
  font-family: H5PFontAwesome4;
  font-size: 2em;
  content: '\f001';
    
}
*/

.h5p-speaker-distractor.h5p-speak-distractor {
    display: block;
    height: 0em;
    padding: 0;
}

.h5p-speak-distractor:after {
    font-family: H5PFontAwesome4;
    content: '\f028';
    cursor: pointer;
    color: #000;
    border-radius: 50%;
    border-color: #000;
    border-width: 1px;
    border-style: solid;
    font-size: 1.1em;
    position: relative;
    right: -2.7em;
    bottom: 1.8em;
    padding: 6px 8px;
    background-color: #fff;
    line-height: 0em;
}

.h5p-speak-distractor.im-speacking-image:after {
    font-family: H5PFontAwesome4;
    content: '\f026';
    cursor: pointer;
    color: #7fb8ff;
    padding: 6px .7em;
}
.h5p-speak-distractor:hover:after { 
    cursor: pointer;
    background-color: #ffc107;
}

.h5p-speak.h5p-bigImage, .h5p-buttom-image {
    border-radius: 50%;
    font-size: 2.4em;
    position: relative;
    left: -1.68em;
    top: -6.2em;
    padding: 3px 8px;
    background-color: #fbd329;
    line-height: 1.2em;
    width: 1em;
    height: 1.2em;
}
.h5p-speak.h5p-bigImage.im-speacking-image:before {
    padding: 3px .25em;
    content: '\f026';
    cursor: pointer;
    color: #7fb8ff;
}


[aria-pressed='true'].h5p-audio-control:after {
 font-family: H5PFontAwesome4;   
 color: #000;
 content: '\f04b';
}

[aria-pressed='true'].h5p-sc-sound-control:after {
  content: '\f026';
  margin-right: .5em;
}
[aria-pressed='true'].h5p-sc-sound-control:before{
    content: '';
    top: 44%;
    right: 0;
    border-top: 2.5px solid;
    border-color: inherit;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
}



.h5p-results,
.h5p-semi-fullscreen .h5p-results {
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.h5p-fullscreen .h5p-results {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.h5p-results {
    position: absolute
}
.h5p-results {
    color: #000;
    min-height: 500px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    width: 100%
}
.h5p-results .result-header {
    font-size: 3em;
    line-height: 1.5em;
    position: relative;
    text-align: center;
}
 .h5p-results .result-text {
    font-size: 2em;
    line-height: 1.5em;
    position: relative;
    text-align: center;
    text-align: -webkit-center; 
    padding: 1em 0 2em 0;
}

.h5p-results .feedback-text {
    font-size: 1.5em;
    line-height: 2em;
    position: relative;
    text-align: center;
    text-align: -webkit-center;  
}

.h5p-results .buttons {
    text-align: center;
    width: 100%;
    margin: 0 auto;
}
/*.h5p-nextExercise,
.h5p-nextExercise:hover  {
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translate(-50%, -50%);
   width: fit-content;
   font-size: 1.1em;
   border: 0.05em solid #414d66;
   min-width: 7em;
   padding: 0.87em;
   border-radius: 1.5em;
}*/
.h5p-nextExercise:hover  {
   cursor: pointer;
   background-color: #414d66;
  /* border: 0.05em solid #414d66;*/
   color: #a3adc4;
}

.h5p-nextExercise:after,
.h5p-results-go-button:after {
    font-family: "H5PFontAwesome4";
    content: "\f061";
    padding-left: 10px;
}
.h5p-results-retry-button,
.h5p-results-go-button {
    display: inline-block;
    margin: 0 auto;
    min-width: 9em;
    width: auto;
    padding: 0.87em;
    color: #adb6c7;
    background-color: #414d66;
    border: 1px solid #414d66;
    border-radius: 1.5em;
    font-size: 1em;
    line-height: 0;
        
}
.h5p-results-retry-button,
.h5p-results-go-button {
   margin-right: 1em;
   margin-left: 1em;
}
.h5p-results-go-button {
   margin-top: 1em;
   padding: 1.5em 1em;
}
.h5p-results-retry-button:hover,
.h5p-results-go-button:hover {
    background-color: #414d66;
    box-shadow: 0 0 0.5em 0 #7fb8ff;
    cursor: pointer
}
/*
.h5p-flashcards .h5p-results-retry-button:hover, .h5p-flashcards .h5p-results-go-button:hover {
    background-color: #414d66;
    box-shadow: 0 0 0.5em 0 #7fb8ff;
}
.h5p-flashcards .h5p-results-go-button {
    font-size: 1em;
    padding: 1.5em 1em;
    margin-right: 1em;
    margin-left: 1em;
}
.h5p-flashcards .h5p-results-retry-button, .h5p-flashcards .h5p-results-go-button {
    font-size: 1em;
    padding: 1.5em 1em;
    margin-top: 1em;
}
.h5p-flashcards .h5p-results-retry-button, .h5p-flashcards .h5p-results-go-button {
    display: inline-block;
    
    min-width: 9em;
    width: auto;
  
    color: #adb6c7;
    background: none;
    border: 1px solid #414d66;
    border-radius: 1.5em;
   
}

.h5p-flashcards .h5p-buttons-finish {
    margin: 0 auto;
    text-align: center;
}

*/



.h5p-wrapper-intro-page span:first-child {
    border-radius: 8px 0 0 8px;
}

.h5p-wrapper-intro-page span:last-child {
    border-radius: 0 8px 8px 0;
}


:root {
    --tts-sentence-bg: #5a8dba;    /* colore chiaro della frase */
    --tts-word-bg: #ffd54f;       /* colore della parola */
}

.highlight_sentence {
    background-color: var(--tts-sentence-bg);
    box-shadow: 0 0 0 1px var(--tts-sentence-bg);
    
}

/* dopo highlight_sentence: la parola ha sia la sua classe sia quella della frase */
.highlight_word {
    background-color: var(--tts-word-bg);
    box-shadow: 0 0 0 1px var(--tts-word-bg);
    color: black;
   /* border-radius: .2em;*/
}


.h5p-controls-container.h5p-no-speech .h5p-sc-sound-control { display: none !important; }  