/* Import common fonts */
@import "font-open-sans.css";

/* General CSS for H5P. Licensed under the MIT License.*/
/* Custom H5P font to use for icons. */
@font-face {
  font-family: "h5p";
  src: url("../fonts/h5p-core-30.eot?h1atjl");
  src:
    url("../fonts/h5p-core-30.eot?h1atjl#iefix") format("embedded-opentype"),
    url("../fonts/h5p-core-30.ttf?h1atjl") format("truetype"),
    url("../fonts/h5p-core-30.woff?h1atjl") format("woff"),
    url("../fonts/h5p-core-30.svg?h1atjl#h5p-core-30") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "h5p-hub-publish";
  src: url("../fonts/h5p-hub-publish.eot?wy8ylc");
  src:
    url("../fonts/h5p-hub-publish.eot?wy8ylc#iefix") format("embedded-opentype"),
    url("../fonts/h5p-hub-publish.ttf?wy8ylc") format("truetype"),
    url("../fonts/h5p-hub-publish.woff?wy8ylc") format("woff"),
    url("../fonts/h5p-hub-publish.svg?wy8ylc#h5p-hub") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

html.h5p-iframe,
html.h5p-iframe > body {
  font-family: Sans-Serif;
  /* Use the browser's default sans-serif font. (Since Heletica doesn't look nice on Windows, and Arial on OS X.) */
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.h5p-semi-fullscreen,
.h5p-fullscreen,
html.h5p-iframe .h5p-container {
  overflow: hidden;
}

.h5p-content {
  position: relative;
  background: #fefefe;
  border: 1px solid #eee;
  border-bottom: none;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.h5p-noselect {
  -khtml-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

html.h5p-iframe .h5p-content {
  font-size: 16px;
  line-height: 1.5em;
  width: 100%;
  height: auto;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

html.h5p-iframe .h5p-fullscreen .h5p-content,
html.h5p-iframe .h5p-semi-fullscreen .h5p-content {
  height: 100%;
}

.h5p-content.h5p-no-frame,
.h5p-fullscreen .h5p-content,
.h5p-semi-fullscreen .h5p-content {
  border: 0;
}

.h5p-container {
  position: relative;
  z-index: 1;
}

.h5p-iframe-wrapper.h5p-fullscreen {
  background-color: #000;
}

body.h5p-semi-fullscreen {
  position: fixed;
  width: 100%;
  height: 100%;
}

.h5p-container.h5p-semi-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.h5p-content-controls {
  margin: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
}

.h5p-fullscreen .h5p-content-controls {
  display: none;
}

.h5p-content-controls > a:link,
.h5p-content-controls > a:visited,
a.h5p-disable-fullscreen:link,
a.h5p-disable-fullscreen:visited {
  color: #e5eef6;
}

.h5p-enable-fullscreen:before {
  font-family: "H5P";
  content: "\e88c";
}

.h5p-disable-fullscreen:before {
  font-family: "H5P";
  content: "\e891";
}

.h5p-enable-fullscreen,
.h5p-disable-fullscreen {
  cursor: pointer;
  color: #eee;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.3);
  line-height: 0.975em;
  font-size: 2em;
  width: 1.125em;
  height: 1em;
  text-indent: 0.04em;
}

.h5p-disable-fullscreen {
  line-height: 0.925em;
  width: 1.1em;
  height: 0.9em;
}

.h5p-enable-fullscreen:focus,
.h5p-disable-fullscreen:focus {
  outline-style: solid;
  outline-width: 1px;
  outline-offset: 0.25em;
}

.h5p-enable-fullscreen:hover,
.h5p-disable-fullscreen:hover {
  background: rgba(0, 0, 0, 0.5);
}

.h5p-semi-fullscreen .h5p-enable-fullscreen {
  display: none;
}

div.h5p-fullscreen {
  width: 100%;
  height: 100%;
}

.h5p-iframe-wrapper {
  width: auto;
  height: auto;
}

.h5p-fullscreen .h5p-iframe-wrapper,
.h5p-semi-fullscreen .h5p-iframe-wrapper {
  width: 100%;
  height: 100%;
}

.h5p-iframe-wrapper.h5p-semi-fullscreen {
  width: auto;
  height: auto;
  background: black;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100001;
}

.h5p-iframe-wrapper.h5p-semi-fullscreen .buttons {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
}

.h5p-iframe-wrapper iframe.h5p-iframe {
  /* Hack for IOS landscape / portrait */
  width: 10px;
  min-width: 100%;
  *width: 100%;
  /* End of hack */
  height: 100%;
  z-index: 10;
  overflow: hidden;
  border: 0;
  display: block;
}

.h5p-content ul.h5p-actions {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  list-style: none;
  padding: 0px 10px;
  margin: 0;
  height: 25px;
  font-size: 12px;
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  clear: both;
  font-family: Sans-Serif;
}

.h5p-fullscreen .h5p-actions,
.h5p-semi-fullscreen .h5p-actions {
  display: none;
}

.h5p-actions > .h5p-button {
  float: left;
  cursor: pointer;
  margin: 0 0.5em 0 0;
  background: none;
  padding: 0 0.75em 0 0.25em;
  vertical-align: top;
  color: #707070;
  text-decoration: none;
  outline: none;
  line-height: 22px;
}

.h5p-actions button:hover {
  color: #333;
}

.h5p-actions button:active,
.h5p-actions button:focus,
.h5p-actions .h5p-link:active,
.h5p-actions .h5p-link:focus {
  color: #666;
}

.h5p-actions button {
  display: inline-flex;
  padding: 0;
  margin: 0;
  color: #6a6a6a;
  position: relative;

  /* Disable default button style */
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;

  line-height: 2;
}

.h5p-actions button:focus,
.h5p-actions .h5p-link:focus {
  outline-style: solid;
  outline-width: thin;
  outline-offset: -2px;
  outline-color: #5981a1;
}

.h5p-actions button:before {
  font-family: "H5P";
  font-size: 20px;
  line-height: 23px;
  vertical-align: bottom;
  padding-right: 0;
}

.h5p-actions > .h5p-button.h5p-export > button:before {
  content: "\e90b";
}

.h5p-actions > .h5p-button.h5p-copyrights > button:before {
  content: "\e88f";
}

.h5p-actions > .h5p-button.h5p-embed > button:before {
  content: "\e892";
}

.h5p-actions .h5p-link {
  float: right;
  margin-right: 0;
  font-size: 2em;
  line-height: 23px;
  position: relative;
  color: #6a6a6a;
  text-decoration: none;
  outline: none;
}

.h5p-actions .h5p-link:before {
  font-family: "H5P";
  content: "\e88e";
  vertical-align: bottom;
}

.h5p-actions > li {
  margin: 0;
  list-style: none;
}

.h5p-popup-dialog {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  z-index: 100;
  padding: 2em;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  opacity: 0;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  -o-transition: opacity 0.2s;
  transition: opacity 0.2s;
  background: #000;
  background: rgba(0, 0, 0, 0.75);
}

.h5p-popup-dialog.h5p-open {
  opacity: 1;
}

.h5p-popup-dialog .h5p-inner {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  background: #fff;
  height: 100%;
  max-height: 100%;
  position: relative;
}

.h5p-popup-dialog .h5p-inner > h2 {
  position: absolute;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  width: 100%;
  margin: 0;
  background: #eee;
  display: block;
  color: #656565;
  font-size: 1.25em;
  padding: 0.325em 0.5em 0.25em;
  line-height: 1.25em;
  border-bottom: 1px solid #ccc;
  z-index: 2;
}

.h5p-popup-dialog .h5p-inner > h2 > a {
  font-size: 12px;
  margin-left: 1em;
}

.h5p-embed-dialog .h5p-inner,
.h5p-reuse-dialog .h5p-inner,
.h5p-content-user-data-reset-dialog .h5p-inner {
  min-width: 316px;
  max-width: 400px;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
}

.h5p-embed-dialog .h5p-embed-code-container,
.h5p-embed-size {
  resize: none;
  outline: none;
  width: 100%;
  padding: 0.375em 0.5em 0.25em;
  margin: 0;
  overflow: hidden;
  border: 1px solid #ccc;
  box-shadow: 0 1px 2px 0 #d0d0d0 inset;
  font-size: 0.875em;
  letter-spacing: 0.065em;
  font-family: sans-serif;
  white-space: pre;
  line-height: 1.5em;
  height: 2.0714em;
  background: #f5f5f5;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.h5p-embed-dialog .h5p-embed-code-container:focus {
  height: 5em;
}

.h5p-embed-size {
  width: 3.5em;
  text-align: right;
  margin: 0.5em 0;
  line-height: 2em;
}

.h5p-popup-dialog .h5p-scroll-content {
  border-top: 2.25em solid transparent;
  padding: 1em;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  color: #555555;
  z-index: 1;
}

.h5p-popup-dialog.h5p-open .h5p-scroll-content {
  overflow: auto;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
}

.h5p-popup-dialog .h5p-scroll-content::-webkit-scrollbar {
  width: 8px;
}

.h5p-popup-dialog .h5p-scroll-content::-webkit-scrollbar-track {
  background: #e0e0e0;
}

.h5p-popup-dialog .h5p-scroll-content::-webkit-scrollbar-thumb {
  box-shadow: 0 0 10px #000 inset;
  border-radius: 4px;
}

.h5p-popup-dialog .h5p-close {
  cursor: pointer;
  font-size: 2em;
  position: absolute;
  right: 0;
  top: 0;
  width: 1.125em;
  height: 1.125em;
  line-height: 1.125em;
  color: #656565;
  cursor: pointer;
  text-indent: -0.065em;
  z-index: 3;
}

.h5p-popup-dialog .h5p-close:after {
  font-family: "H5P";
  content: "\e894";
}

.h5p-popup-dialog .h5p-close:hover:after,
.h5p-popup-dialog .h5p-close:focus:after {
  color: #454545;
}

.h5p-popup-dialog .h5p-close:active:after {
  color: #252525;
}

.h5p-poopup-dialog h2 {
  margin: 0.25em 0 0.5em;
}

.h5p-popup-dialog h3 {
  margin: 0.75em 0 0.25em;
}

.h5p-popup-dialog dl {
  margin: 0.25em 0 0.75em;
}

.h5p-popup-dialog dt {
  float: left;
  margin: 0 0.75em 0 0;
}

.h5p-popup-dialog dt:after {
  content: ":";
}

.h5p-popup-dialog dd {
  margin: 0;
}

.h5p-expander {
  cursor: pointer;
  font-size: 1.125em;
  margin: 0.5em 0 0;
  display: inline-block;
}

.h5p-expander:before {
  content: "+";
  width: 1em;
  display: inline-block;
  font-weight: bold;
}

.h5p-expander.h5p-open:before {
  content: "-";
  text-indent: 0.125em;
}

.h5p-expander:hover,
.h5p-expander:focus {
  color: #303030;
}

.h5p-expander:active {
  color: #202020;
}

.h5p-expander-content {
  display: none;
}

.h5p-expander-content p {
  margin: 0.5em 0;
}

.h5p-content-copyrights {
  border-left: 0.25em solid #d0d0d0;
  margin-left: 0.25em;
  padding-left: 0.25em;
}

.h5p-throbber {
  background: url("../images/throbber.gif?ver=1.2.1") 10px center no-repeat;
  padding-left: 38px;
  min-height: 30px;
  line-height: 30px;
}

.h5p-dialog-ok-button {
  cursor: default;
  float: right;
  outline: none;
  border: 2px solid #ccc;
  padding: 0.25em 0.75em 0.125em;
  background: #eee;
}

.h5p-dialog-ok-button:hover,
.h5p-dialog-ok-button:focus {
  background: #fafafa;
}

.h5p-dialog-ok-button:active {
  background: #eeffee;
}

.h5p-big-button {
  line-height: 1.25;
  display: block;
  position: relative;
  cursor: pointer;
  width: 100%;
  padding: 1em 1em 1em 3.75em;
  text-align: left;
  border: 1px solid #dedede;
  background: linear-gradient(#ffffff, #f1f1f2);
  border-radius: 0.25em;
}

.h5p-big-button:before {
  font-family: "h5p";
  content: "\e893";
  line-height: 1;
  font-size: 3em;
  color: #2747f7;
  position: absolute;
  left: 0.125em;
  top: 0.125em;
}

.h5p-copy-button:before {
  content: "\e905";
}

.h5p-big-button:hover {
  border: 1px solid #2747f7;
  background: #eff1fe;
}

.h5p-big-button:active {
  border: 1px solid #dedede;
  background: #dfe4fe;
}

.h5p-button-title {
  color: #2747f7;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.h5p-button-description {
  color: #757575;
}

.h5p-horizontal-line-text {
  border-top: 1px solid #dadada;
  line-height: 1;
  color: #474747;
  text-align: center;
  position: relative;
  margin: 1.25em 0;
}

.h5p-horizontal-line-text > span {
  background: white;
  padding: 0.5em;
  position: absolute;
  top: -1em;
  left: 50%;
  transform: translateX(-50%);
}

.h5p-toast {
  font-size: 0.75em;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  z-index: 110;
  position: absolute;
  padding: 0 0.5em;
  line-height: 2;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  top: 0;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s;
}

.h5p-toast-disabled {
  opacity: 0;
  visibility: hidden;
}

.h5p-content code,
.h5peditor code {
  color: #3d3d3d;
  background: #e0e0e0;
  border-radius: 2px;
  padding: 0 5px;
}

.h5p-content pre > code,
.h5peditor pre > code {
  background-color: #fafafa;
  padding: 5px;
  display: block;
  line-height: normal;
  border: 1px solid #c7c7c7;
  border-left-width: 4px;
  max-width: 100%;
  white-space: pre;
  overflow: auto;
}

/* This is loaded as part of Core and not Editor since this needs to be outside the editor iframe */
.h5peditor-semi-fullscreen {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
}

iframe.h5peditor-semi-fullscreen {
  background: #fff;
  z-index: 100001;
}

.h5p-content.using-mouse *:not(textarea):focus {
  outline: none !important;
}

.h5p-content-hub-button:before {
  font-family: "h5p";
  margin-right: 0.5em;
  font-size: 0.7em;
  line-height: 1;
}

.h5p-content-hub-button.unpublish:before {
  content: "\e916";
}

.h5p-content-hub-button.waiting:before,
.h5p-content-hub-button.sync:before {
  content: "\e917";
}

.h5p-content-hub-button.waiting:before {
  display: inline-block;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.h5p-actions > .h5p-share2session {
  float: left;
  cursor: pointer;
  margin: 0 0.5em 0 0;
  background: black;
  padding: 0 0.75em 0 0.25em;
  vertical-align: top;
  color: white;
  text-decoration: none;
  outline: none;
  line-height: 22px;
}

/* General RTL Styles  */

.h5p-dir-rtl{
  direction: rtl;
}
/* .h5p-dir-rtl .h5p-question-buttons button::before, */
/* .h5p-dir-rtl .questionset-results  button::before { */
.h5p-dir-rtl button::before { 
  padding: 5px;
}
/* .h5p-dir-rtl .h5p-reuse-dialog .h5p-inner {
  left: 0%;
} */
.h5p-dir-rtl .h5p-reuse-dialog,
.h5p-dir-rtl .h5p-content-user-data-reset-dialog,
.h5p-dir-rtl .h5p-embed-dialog  {
  direction: ltr;
}
.h5p-dir-rtl .h5p-reuse-dialog .h5p-inner #reuse-dialog-header{
  text-align: center;
}
.h5p-dir-rtl .joubel-speech-bubble .joubel-speech-bubble-inner{
  text-align: right;
}
.h5p-dir-rtl .h5p-container .h5p-joubelui-progressbar .h5p-joubelui-progressbar-background{
  right: 0;
  left: auto;
}

/*  RTL SCOREBAR  */
.h5p-dir-rtl .h5p-joubelui-score-bar .h5p-joubelui-score-bar-progress-wrapper {
  margin-right: 0em;
  margin-left: 2.5em;
  border-top-right-radius: 1.5em;
  border-bottom-right-radius: 1.5em;
}
.h5p-dir-rtl .h5p-joubelui-score-bar .h5p-joubelui-score-bar-progress {
  right: 0;
  left: auto;
  border-top-right-radius: 0.5em;
  border-bottom-right-radius: 0.5em;
}
.h5p-dir-rtl .h5p-joubelui-score-bar .h5p-joubelui-score-bar-star {
  left: 0;
  right: auto;
}

/* General  RTL Styles For H5P Question */
.h5p-dir-rtl .h5p-question .h5p-question-image {
  text-align: right;
  padding-right: 2em;
}
.h5p-dir-rtl .h5p-question .h5p-question-image-scalable:before {
  left: 0.7em;
  right: auto;
}

/*  RTL Styles For True False Question */
.h5p-dir-rtl .h5p-true-false-answer{
  padding: 0.5em 0.5em 0.5em 3.5em;
}
.h5p-dir-rtl .h5p-true-false-answer::after{
  position: absolute;
  left: 0;
  top: 0;
  right: auto;
}

/* RTL Styles For Single Choice Question */
.h5p-dir-rtl li.h5p-sc-alternative .h5p-sc-status{
  position: absolute;
  left: 0;
  top: 0;
  right: auto;
} 
.h5p-dir-rtl .h5p-single-choice-set .h5p-sc-solution-view .h5p-sc-close-solution-view {
  transform: rotate(180deg);
  top: 25%;
  right: 0;
  left: auto;
}
.h5p-dir-rtl .h5p-single-choice-set .h5p-ssc-next-button{
  left: 0.5em;
  right: auto;
  line-height: 1.2em !important;
  transform: rotate(180deg);
}

/* RTL Styles For Multiple Choice Question */
.h5p-dir-rtl .h5p-multichoice .h5p-alternative-container{
 text-align: right;
 text-indent: 0em;
 padding-right: 1.25em;
}

.h5p-dir-rtl .h5p-multichoice .h5p-answer .h5p-alternative-container:before{
  right: 0.5em;
  left: auto;
}

.h5p-dir-rtl .h5p-multichoice .h5p-solution-icon-radio,
.h5p-dir-rtl .h5p-multichoice .h5p-solution-icon-checkbox {
  right: auto ;
  left: 0.75em;
  direction: ltr;
}

.h5p-dir-rtl  .h5p-multichoice .h5p-answer-icon {
  right: 0.75em;
  left: auto;
  direction: ltr;
}

/*  RTL Styles For Multi-Media Choice  */
.h5p-dir-rtl .h5p-multi-media-choice .h5p-multi-media-choice-list-item{
  position: relative !important;
  top: 0 !important;
  right: 0;
  float: right;
  display: inline-block;
  margin-left: 10px;
}
.h5p-dir-rtl .h5p-multi-media-choice .h5p-multi-media-choice-option-list{
  height: auto !important;
  padding-right: 0;
}

/* RTL Styles For Fill in Blanks*/

.h5p-dir-rtl .h5p-blanks .h5p-correct:after, .h5p-dir-rtl .h5p-blanks .h5p-wrong:after{
  left: 0.5em;
  right: auto !important;
}

.h5p-dir-rtl .h5p-blanks .h5p-correct-answer{
  margin-right: 0.5em;
  margin-left: 0;
}
.h5p-dir-rtl .h5p-blanks .h5p-text-input {
  padding: 0.1875em 0.5em 0.1875em 1em;
}


/* RTL Styles For Mark the Words*/

.h5p-dir-rtl .h5p-mark-the-words .h5p-question-minus-one,
.h5p-dir-rtl .h5p-mark-the-words .h5p-question-plus-one {
  left: -1.615384615em;
  right: auto;
}

/* RTL Styles For Drag Words*/
.h5p-dir-rtl .h5p-drag-task .h5p-drag-correct-feedback, 
.h5p-dir-rtl .h5p-drag-task .h5p-drag-wrong-feedback{
  padding: 0.1em 0.1em 0.1em 1.65em;
}
.h5p-dir-rtl .h5p-drag-task .h5p-drag-correct-feedback:before, 
.h5p-dir-rtl .h5p-drag-task .h5p-drag-wrong-feedback:before{
  left: 0.5em;
  right: auto;
}
.h5p-dir-rtl .h5p-drag-task  .h5p-drag-dropzone-container {
  direction: ltr;
}
.h5p-dir-rtl .h5p-drag-task .h5p-drag-show-solution-container{
  margin-right: 0.5em;
}
.h5p-dir-rtl .h5p-drag-text .h5p-drag-wide-screen {
  float: left;
}
.h5p-dir-rtl .h5p-drag-text .h5p-drag-droppable-words{
  margin-right: 0 !important;
}

/* RTL Styles For Drag and Drops*/
.h5p-dir-rtl .h5p-dragquestion .h5p-question-minus-one, 
.h5p-dir-rtl .h5p-dragquestion .h5p-question-plus-one {
  left: -0.3em;
  right: auto;
}
.h5p-dir-rtl .h5p-dragquestion .h5p-draggable.h5p-correct:after, 
.h5p-dir-rtl .h5p-dragquestion .h5p-draggable.h5p-wrong:after{
  left: -0.1em;
  right: auto;
}
.h5p-dir-rtl .h5p-dragquestion .h5p-dropped.h5p-wrong, 
.h5p-dir-rtl .h5p-dragquestion .h5p-dropped.h5p-correct {
  text-align: right;
}

/* RTL Styles For Question Set - Quiz*/
.h5p-dir-rtl .questionset .h5p-question .h5p-question-prev,
.h5p-dir-rtl .questionset .h5p-question .h5p-question-finish,
.h5p-dir-rtl .questionset .h5p-question .h5p-question-next {
  float: left;
}
.h5p-dir-rtl .questionset .h5p-question .h5p-question-prev,
.h5p-dir-rtl .questionset .h5p-question .h5p-question-next {
  transform: rotate(180deg);
}
.h5p-dir-rtl .questionset .h5p-question .h5p-question-prev .h5p-tooltip,
.h5p-dir-rtl .questionset .h5p-question .h5p-question-next .h5p-tooltip{
  display: none;
}

/* RTL Styles For Arithmetic Quiz*/
.h5p-dir-rtl  .h5p-baq-game .h5p-baq-score-widget{
  right: 0;
  left: auto;
}
.h5p-dir-rtl  .h5p-baq-game .timer {
  left: 0;
  right: auto;
}
.h5p-dir-rtl  .h5p-baq-game .h5p-baq-alternatives > .h5p-joubelui-button{
  direction: ltr;
}

/* RTL Styles For Accordion*/
.h5p-dir-rtl  .h5p-accordion .h5p-panel-button {
  padding: 0.8em 2.25em 0.8em 1.25em;
}
.h5p-dir-rtl  .h5p-accordion .h5p-panel-button:before {
  right: 1em;
  left: auto;
  transform: rotate(180deg);
}

/* RTL Styles For Image Sequencing*/
.h5p-dir-rtl  .h5p-image-sequencing .sequencing-item{
  float: right;
}
.h5p-dir-rtl  .h5p-image-sequencing  .sequencing-dropzone{
  float: right;
}
.h5p-dir-rtl  .h5p-image-sequencing .sequencing-item .sequencing-mark{
  padding-right: 0.8em;
  padding-left: 0;
}
.h5p-dir-rtl .ui-tooltip{
  text-align: right;
}

/* RTL Styles For Image Pairing*/
.h5p-dir-rtl  .h5p-image-pair .game-container  ul,
.h5p-dir-rtl  .h5p-image-pair .game-container  ul .h5p-image-pair-item{
  float: right;
}
.h5p-dir-rtl  .h5p-image-pair .game-container {
  direction: ltr;
}

/* RTL Styles For Dialog cards*/
.h5p-dir-rtl  .h5p-dialogcards .h5p-dialogcards-prev {
  right: 1em;
  left: auto;
  transform: rotate(180deg);
  padding-top: 0.2em;
}
.h5p-dir-rtl .h5p-dialogcards .h5p-dialogcards-next {
  left: 1em;
  right: auto;
  transform: rotate(180deg);
  padding-top: 0.2em;
}
.h5p-dir-rtl  .h5p-dialogcards .h5p-dialogcards-prev .button-tooltip,
.h5p-dir-rtl .h5p-dialogcards .h5p-dialogcards-next .button-tooltip{
  transform: rotate(180deg);
}
.h5p-dir-rtl .h5p-dialogcards .h5p-dialogcards-retry {
  left: 1em;
  right: auto;
}

/* RTL Styles For Image Hotspots*/
.h5p-dir-rtl .h5p-image-hotspots .h5p-image-hotspot-close-popup-button{
  left: 1em;
  right: auto;
}

/* RTL Styles For FlashCards*/
.h5p-dir-rtl .h5p-flashcards .h5p-progress{
  direction: ltr;
}
.h5p-dir-rtl .h5p-flashcards .h5p-button.h5p-next {
  position: absolute;
  left: 0.75em;
  right: auto;
}
.h5p-dir-rtl .h5p-flashcards .h5p-button.h5p-previous {
  position: absolute;
  right: 0.75em;
  left: auto;
}
.h5p-dir-rtl .h5p-flashcards .h5p-button.h5p-next:before {
  transform: rotate(180deg);
}
.h5p-dir-rtl .h5p-flashcards .h5p-button.h5p-previous:before{
  transform: initial;
}
.h5p-dir-rtl .h5p-flashcards .h5p-answer .h5p-button {
  border-radius: 2em 0em 0em 2em;
  right: auto;
  left: 0;
}
.h5p-dir-rtl .h5p-flashcards .joubel-tip-container {
  left: 96px;
  right: auto !important;
}
.h5p-dir-rtl .h5p-flashcards .h5p-answer .h5p-textinput {
  padding: 0 1em 0 7em;
  padding-right: 1em !important;
}
.h5p-dir-rtl .h5p-flashcards .h5p-answer .h5p-correct .h5p-feedback-label,
.h5p-dir-rtl .h5p-flashcards .h5p-answer .h5p-wrong .h5p-feedback-label {
  right: auto;
  left: 1em;
}
.h5p-dir-rtl .h5p-flashcards .h5p-answer .h5p-correct .h5p-feedback-label:before,
.h5p-dir-rtl .h5p-flashcards .h5p-answer .h5p-wrong .h5p-feedback-label:before {
  padding-left: 4px;
}
.h5p-dir-rtl .h5p-flashcards .h5p-solution .h5p-rotate-in {
  right: auto;
}
.h5p-dir-rtl .h5p-flashcards .h5p-show-results {
  left: 0;
  right: auto;
}
.h5p-dir-rtl .h5p-show-results button:after {
  margin-left: 0em;
  float: left;
  margin-right: 0.5em;
  transform: rotate(180deg);
}
/** RTL Styles For FlashCards Results Screen **/
.h5p-dir-rtl .h5p-flashcards .h5p-results-score {
  right: auto;
  left: 1em;
}
.h5p-dir-rtl .h5p-flashcards .h5p-results-box {
  left: 0.5em;
  right: auto;
  border-radius: 1em 0em 0em 1em;
}
.h5p-dir-rtl .h5p-flashcards .h5p-results-image-holder {
  float: right;
  margin-right: 0em;
  margin-left: 1em;
}
.h5p-dir-rtl .h5p-flashcards .h5p-results-answer {
  margin-left: 4.5em;
}
.h5p-dir-rtl .h5p-flashcards .h5p-results-question {
  margin-left: 3.5em;
}
/* RTL Styles For FlashCards Animation */
.h5p-dir-rtl .h5p-flashcards .h5p-card.left {
  transform: translateX(200%);
}
.h5p-dir-rtl .h5p-flashcards .h5p-card.right {
  transform: translateX(-200%);
}
.h5p-dir-rtl .h5p-flashcards .h5p-card.h5p-previous {
  transform: translateX(100%);
}
.h5p-dir-rtl .h5p-flashcards .h5p-card.h5p-next {
  transform: translateX(-100%);
}
.h5p-dir-rtl .h5p-flashcards.h5p-mobile .h5p-card.h5p-previous {
  transform: translateX(150%);
}
.h5p-dir-rtl .h5p-flashcards.h5p-mobile .h5p-card.h5p-next {
  transform: translateX(-150%);
}

/* RTL Styles For Summary*/
.h5p-dir-rtl .h5p-summary .summary-evaluation-content {
  padding: 0.1em 0em 0.1em 2em;
  float: right;
}
.h5p-dir-rtl .h5p-summary .summary-evaluation .joubel-tip-container {
  left: 0;
  right: auto;
}
.h5p-dir-rtl .h5p-summary .summary-progress-numeric {
  float: left;
  margin-right: 0.3em;
}
.h5p-dir-rtl .h5p-summary .summary-progress-numeric:before {
  float: right;
  margin-left: 0.3em;
  margin-right: 0em;
}
.h5p-dir-rtl .h5p-summary .summary-score,
.h5p-dir-rtl .h5p-summary li.summary-failed:before,
.h5p-dir-rtl .h5p-summary .summary-container li:before {
  float: left;
}
.h5p-dir-rtl .h5p-summary .summary-score:before {
  float: right;
  margin-left: 0.3em;
  margin-right: 0em;
}

/* RTL Styles For Image Slider*/
.h5p-dir-rtl .h5p-image-slider .h5p-image-slider-right-button{
  left: 0;
}
.h5p-dir-rtl .h5p-image-slider .h5p-image-slider-right-button .h5p-image-slider-button-text {
  left: calc(20% - 0.2em);
  right: auto;
  transform: rotate(180deg);
}
.h5p-dir-rtl .h5p-image-slider .h5p-image-slider-left-button {
  right: 0;
}
.h5p-dir-rtl .h5p-image-slider .h5p-image-slider-left-button .h5p-image-slider-button-text {
  right: calc(20% - 0.2em);
  left: auto;
  transform: rotate(180deg);
}
/* RTL Styles For Image Slider Animation */
.h5p-dir-rtl .h5p-image-slider .h5p-image-slide-holder {
  float: right;
  margin-right: -100%;
  margin-left: auto;
}
.h5p-dir-rtl .h5p-image-slider .h5p-image-slide-holder:first-child {
  margin-right: 0;
}
.h5p-dir-rtl .h5p-image-slider .h5p-image-slide-holder.h5p-image-slider-current {
  transition: right 0.32s;
  left: auto;
  right: 0;
}
.h5p-dir-rtl .h5p-image-slider .h5p-image-slider-future {
  transition: right 0.35s;
  right: 100.1%;
  left: auto;
}
.h5p-dir-rtl .h5p-image-slider .h5p-image-slider-future .h5p-image-slider-no-transition {
  right: 100.0%;
  left: auto;
}
.h5p-dir-rtl .h5p-image-slider .h5p-image-slider-past {
  transition: right 0.35s;
  right: -100.1%;
  left: auto;
}
.h5p-dir-rtl .h5p-image-slider .h5p-image-slider-past .h5p-image-slider-no-transition {
  right: -100.0%;
  left: auto;
}

/* RTL Styles For Memory Game*/
.h5p-dir-rtl .h5p-memory-game .h5p-memory-wrap{
  float: right;
}
.h5p-dir-rtl .h5p-memory-game .h5p-status > dt {
  float: right;
  margin: 0 0 0 1em;
}
.h5p-dir-rtl .h5p-memory-game .h5p-status {
  clear: right;
}
.h5p-dir-rtl .h5p-memory-game .h5p-memory-close {
  left: 0.5em;
  right: auto;
}

/* RTL Styles For Documentation tool*/
/* Navigation Menu */
.h5p-dir-rtl .h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry {
  padding: 0 3em 1em 1em;
}
.h5p-dir-rtl .h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry:before {
  right: 20px;
  left: auto;
}
.h5p-dir-rtl .h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry:after {
  right: 24px;
  left: auto;
}

.h5p-dir-rtl .h5p-documentation-tool .h5p-documentation-tool-nav-button {
  left: 1em;
  right: auto;
  transform: rotate(180deg);
}
.h5p-dir-rtl .h5p-documentation-tool .h5p-documentation-tool-nav-button.next:before {
  right: 0.4em;
}
.h5p-dir-rtl .h5p-documentation-tool .h5p-documentation-tool-nav-button:before {
  right: 0.475em;
}
.h5p-dir-rtl .h5p-documentation-tool .h5p-documentation-tool-nav-button.prev {
  margin-left: 3em;
  margin-right: 0em;
}
/* Help Text Box*/
.h5p-dir-rtl .h5p-documentation-tool .joubel-help-text-dialog-box .joubel-help-text-header {
  padding: 0.75em 1.5em 0.75em 3em;
}
.h5p-dir-rtl .h5p-documentation-tool .joubel-help-text-dialog-box .joubel-help-text-remove {
  left: 1.5em;
  right: auto;
}
/*GOALS Page*/
.h5p-dir-rtl .h5p-documentation-tool .h5p-goals-page button.h5p-created-goal-remove {
  left: -0.8em;
  right: auto;
}
.h5p-dir-rtl .h5p-documentation-tool .h5p-goals-page .goals-define .goals-create:before {
  margin-right: 0em;
  padding: 0.5em;
}
/*GOALS Assessement Page*/
.h5p-dir-rtl .h5p-documentation-tool .h5p-goals-assessment-page .legend .rating:before {
  margin-left: 0.5em;
  margin-right: 0;
}
.h5p-dir-rtl .h5p-documentation-tool .goals-assessment-view .goals-header .rating-header {
  left: 0;
  right: auto;
  text-align: right
}
.h5p-dir-rtl .h5p-documentation-tool .goals-assessment-view .rating-container {
  float: left;
}
/*Standard Page*/
.h5p-dir-rtl .h5p-documentation-tool .h5p-text-input-field .h5p-text-input-field-message-char {
  float: right;
}
.h5p-dir-rtl .h5p-documentation-tool .h5p-standard-page .h5p-accordion .h5p-panel-title {
  padding: 0.2em 1em 0.2em 0em;
}
.h5p-dir-rtl .h5p-documentation-tool .h5p-standard-page .h5p-accordion .h5p-panel-button:before {
  right: 0em;
  left: auto;
  padding: 0px;
}
.h5p-dir-rtl .h5p-documentation-tool .h5p-standard-page .h5p-accordion .h5p-panel-title .h5p-panel-button {
  text-align: right;
}
/*Export Page*/
.h5p-dir-rtl .h5p-documentation-tool .h5p-document-export-page .export-document-button:before {
  margin-right: 0;
  padding: 0.5em;
}
/*Main Content Page*/
.h5p-dir-rtl .h5p-documentation-tool .joubel-exportable-header-text {
  float: right;
  margin-right: 1em;
}
.h5p-dir-rtl .h5p-documentation-tool .joubel-create-document .joubel-exportable-header-inner button {
  float: left;
  border-right: 1px solid #eee ;
  border-left: 0px !important;
}

/* RTL Styles For Interactive Video*/
.h5p-dir-rtl .h5p-interactive-video{
  direction: ltr;
}
.h5p-dir-rtl  .h5p-interactive-video .h5p-interaction-inner,
.h5p-dir-rtl .h5p-interactive-video .h5p-interaction-label .h5p-interaction-label-text,
.h5p-dir-rtl .h5p-interactive-video .h5p-dialog .h5p-dialog-inner .h5p-dialog-interaction {
  direction: rtl;
}
.h5p-dir-rtl .h5p-interactive-video .h5p-interaction.h5p-poster .h5p-interaction-outer {
  overflow-x:hidden;
}
.h5p-dir-rtl .h5p-interactive-video .h5p-mark-the-words{
  display: inline;
}

.h5p-dir-rtl .h5p-interactive-video .h5p-question .h5p-joubelui-button {
  float: right;
}
.h5p-dir-rtl .h5p-interactive-video .h5p-interaction .h5p-interaction-inner.h5p-link:after {
  margin-right: 0.7em;
  margin-left: 0;
}
.h5p-dir-rtl .h5p-interactive-video .h5p-dialog-close{
  left: 0.5em;
  right: auto;
}
/* Interactive Video EndScreen */
.h5p-dir-rtl .h5p-interactive-video .h5p-interactive-video-endscreen{
  direction: rtl;
}
.h5p-dir-rtl .h5p-interactive-video .h5p-interactive-video-endscreen-introduction-container,
.h5p-dir-rtl .h5p-interactive-video .h5p-interactive-video-endscreen-overview-title-score,
.h5p-dir-rtl .h5p-interactive-video .h5p-interactive-video-endscreen-overview-table-row-title,
.h5p-dir-rtl .h5p-interactive-video .h5p-interactive-video-endscreen-overview-title-answered-questions {
  text-align: right;
}
.h5p-dir-rtl .h5p-interactive-video .h5p-interactive-video-endscreen-overview-table-row-score {
  text-align: left;
  direction: ltr;
}

/* RTL Styles For Course Presentation */
.h5p-dir-rtl .h5p-course-presentation .h5p-presentation-wrapper {
  text-align: right;
}
.h5p-dir-rtl .h5p-course-presentation .h5p-element-solution {
  left: 0.5em;
  right: auto;
}
/* Course Presentation keywords - Menu  */
.h5p-dir-rtl .h5p-course-presentation .h5p-keywords-wrapper.h5p-open {
  right: 0%;
}
.h5p-dir-rtl .h5p-course-presentation .h5p-keywords-wrapper>[role=menu] {
  padding-inline-start: 0;
}
/* Course  Presentation Footer*/
.h5p-dir-rtl .h5p-course-presentation .h5p-footer .h5p-footer-slide-count{
  direction: ltr;
}
.h5p-dir-rtl .h5p-course-presentation .h5p-footer .h5p-footer-previous-slide,
.h5p-dir-rtl .h5p-course-presentation .h5p-footer .h5p-footer-next-slide{
  transform: rotate(180deg);
}
.h5p-dir-rtl .h5p-course-presentation .h5p-footer .h5p-footer-right-adjusted {
  text-align: left;
}
.h5p-dir-rtl .h5p-course-presentation .h5p-footer .h5p-footer-previous-slide .h5p-tooltip-left,  
.h5p-dir-rtl .h5p-course-presentation .h5p-footer .h5p-footer-next-slide .h5p-tooltip-right{
  transform: rotate(180deg);
}
/* Course  Presentation Popup*/
.h5p-dir-rtl .h5p-course-presentation .h5p-popup-overlay.h5p-advancedtext .h5p-popup-container .h5p-popup-wrapper,
.h5p-dir-rtl .h5p-course-presentation .h5p-popup-overlay.h5p-link .h5p-popup-container .h5p-popup-wrapper,
.h5p-dir-rtl .h5p-course-presentation .h5p-popup-overlay.h5p-popup-comment-field .h5p-popup-container .h5p-popup-wrapper {
  text-align: right;
}
.h5p-dir-rtl .h5p-course-presentation .h5p-popup-overlay .h5p-popup-container .h5p-popup-wrapper {
  text-align: right;
}
.h5p-dir-rtl .h5p-course-presentation .h5p-close-popup {
  left: -0.5em;
  right: auto;
}
/* Course  Presentation Summary Table */
.h5p-dir-rtl .h5p-course-presentation .h5p-summary-table-header.slide,
.h5p-dir-rtl .h5p-course-presentation .h5p-summary-task-title {
  text-align: right;
}
.h5p-dir-rtl .h5p-course-presentation .h5p-summary-table-header.score,
.h5p-dir-rtl .h5p-course-presentation .h5p-td p  {
  text-align: left;
}

.h5p-dir-rtl .h5p-course-presentation .h5p-interactive-video .h5p-controls {
  text-align: left;
}

.h5p-dir-rtl .h5p-course-presentation .h5p-slide {
transform: translateX(-100%) translate3d(-100%, 0, 0);
}
.h5p-dir-rtl .h5p-course-presentation .h5p-current {
transform: translateX(0) translateZ(0);
}
.h5p-dir-rtl .h5p-course-presentation .h5p-previous {
transform: translateX(100%);
}

/* RTL Styles For TimeLine */
.h5p-dir-rtl .h5p-timeline .vco-slider .nav-next {
  left: 0px !important;
}
.h5p-dir-rtl .h5p-timeline .vco-slider .slider-item .content .content-container .text .container,
.h5p-dir-rtl .h5p-timeline .vco-slider .slider-item .content .content-container.layout-text .text .container {
  text-align: right;
}
.h5p-dir-rtl .h5p-timeline .vco-slider .slider-item .content .content-container .text {
  padding: 0px 0.5em;
}
.h5p-dir-rtl .h5p-timeline .vco-slider .slider-item .content .content-container .media .media-wrapper .media-container .caption{
  text-align: right;
}
.h5p-dir-rtl .h5p-timeline .vco-slider .nav-previous .icon{
  margin-right: 6px;
  transform: rotate(180deg);
}
.h5p-dir-rtl .h5p-timeline .vco-slider .nav-next .icon{
  margin-right: 70px;
  transform: rotate(180deg);
}
.h5p-dir-rtl .h5p-timeline .vco-slider .nav-previous .date,
.h5p-dir-rtl .h5p-timeline .vco-slider .nav-previous .title {
  text-align: right;
  padding-right: 15px;
}
/* Timenav Flag */
.h5p-dir-rtl .h5p-timeline .vco-timeline .vco-navigation .timenav .content .marker .flag .flag-content .thumbnail,
.h5p-dir-rtl .h5p-timeline .vco-timeline .vco-navigation .timenav .content .marker .flag-small .flag-content .thumbnail{
  margin-left: 3px;
  margin-right: 0px;
}
.h5p-dir-rtl .h5p-timeline .vco-storyjs .thumbnail{
  float: right;
}

/* RTL Styles For Interactive Book */
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-status .h5p-interactive-book-status-arrow .navigation-button {
  transform: rotate(180deg);
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-status .h5p-interactive-book-status-progress-wrapper {
  margin-left: 2em;
  direction: ltr;
}

.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-menu-button{
  height: auto;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-menu-button .h5p-interactive-book-summary-text {
  text-align: right;
  margin-right: 0.75rem;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-menu-button .h5p-interactive-book-summary-menu-button-arrow {
  left: 25px;
  right: auto;
  transform: rotate(-90deg);
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-menu-button:hover .h5p-interactive-book-summary-menu-button-arrow {
  transform: rotate(-90deg) translateY(-10px);
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-navigation-maintitle .navigation-title {
  padding-right: 1.25em;
  padding-left: 0em;
}

.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-navigation-chapter-button .h5p-interactive-book-navigation-chapter-progress {
  left: 15px;
  right: auto;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-navigation-chapter-button .h5p-interactive-book-navigation-chapter-accordion {
  right: 15px;
  left: auto;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-navigation-chapter-button .icon-collapsed {
  transform: rotate(180deg);
}

.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-status .h5p-interactive-book-status-to-top .navigation-button {
  transform: none;
}

/* Summary page */
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-page .h5p-interactive-book-summary-buttons .h5p-interactive-book-summary-button .icon-restart,
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-page .h5p-interactive-book-summary-buttons .h5p-interactive-book-summary-button .icon-paper-pencil {
  margin-left: 0.5rem;
  margin-right: 0em;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-dropdown button .icon-expanded {
  margin-right: auto;
  margin-left: 0em;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-dropdown[active] button {
  text-align: right;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-page ol, 
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-page ul, 
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-page li {
  padding-right: 0;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-page .h5p-interactive-book-summary-overview-section {
  padding-right: 1.25rem !important;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-page .h5p-interactive-book-summary-overview-section h4 span[class^=icon-]{
  margin-right: auto;
  margin-left: 0rem;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-page .h5p-interactive-book-summary-overview-section-score-header div {
  margin-right: auto;
  margin-left: 0rem;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-page .h5p-interactive-book-summary-overview-section-details .h5p-interactive-book-summary-section-title {
  text-align: right;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-page .h5p-interactive-book-summary-section-icon {
  margin-left: 0.6125rem;
  margin-right: 0em;
}
.h5p-dir-rtl .h5p-interactive-book .h5p-interactive-book-summary-page .h5p-interactive-book-summary-overview-section-details .h5p-interactive-book-summary-section-score{
  direction: ltr;
}

.h5p-dir-rtl .h5p-interactive-book-chapter.h5p-interactive-book-previous {
transform:translateX(100%)
}

.h5p-dir-rtl .h5p-interactive-book-chapter.h5p-interactive-book-next {
transform:translateX(-100%)
}

/* Branching Scenario */
.h5p-dir-rtl .h5p-branching-scenario .h5p-start-button:after {
  content: "\f177";
  margin-right: 10px;
}
.h5p-dir-rtl .h5p-branching-scenario .h5p-screen-footer {
  left: 0;
  right: auto;
}
.h5p-dir-rtl .h5p-branching-scenario .h5p-screen-footer .h5p-nav-button:after {
  content: "\f100";
  margin-right: 10px;
}
.h5p-dir-rtl .h5p-branching-scenario .h5p-nav-button {
  margin: 0.67em 0px 0px 20px;
}
.h5p-dir-rtl .h5p-branching-scenario  button.h5p-branching-full-screen {
  margin: 1em 0.3em 1em 1em;
  float: right;
}
.h5p-dir-rtl .h5p-branching-question-icon {
  right: 10px;
  left: auto;
}
.h5p-dir-rtl .h5p-branching-question-title {
  margin-left: 0em; 
  margin-right: 1.2em;
}
.h5p-dir-rtl .h5p-branching-question-title  p{
  text-align: right;
}
.h5p-dir-rtl .h5p-branching-question-alternative::after {
  right: 1em;
  content: '\f060';
}
.h5p-dir-rtl .h5p-branching-scenario .h5p-end-button:before {
  padding-left: 10px;
}
/* Branching Scenario Navigation */
@keyframes slide-out-reverse {
  from { transform: translateX(0%); }
  to { transform: translateX(100%); }
}
@-webkit-keyframes slide-out-reverse {
  from { -webkit-transform: translateX(0%); }
  to { -webkit-transform: translateX(100%); }
}

.h5p-dir-rtl .h5p-branching-scenario .h5p-previous {
  transform: translateX(100%);
  -webkit-transform: translateX(100%);
}

.h5p-dir-rtl .h5p-branching-scenario .h5p-next {
  transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
}
.h5p-dir-rtl .h5p-branching-scenario .h5p-current-screen.h5p-slide-out {
  animation: slide-out-reverse 0.8s forwards;
  -webkit-animation: slide-out-reverse 0.8s forwards;
}
.h5p-dir-rtl .h5p-branching-scenario .h5p-next-screen {
  transform: translateX(-100%) !important;
  -webkit-transform: translateX(-100%) !important;
}
.h5p-dir-rtl .h5p-branching-scenario .h5p-library-wrapper.h5p-slide-out {
  animation: slide-out-reverse 0.8s forwards;
  -webkit-animation: slide-out-reverse 0.8s forwards;
}
.h5p-dir-rtl .h5p-branching-scenario .h5p-branching-question-wrapper.h5p-slide-out {
  animation: slide-out-reverse 0.8s forwards;
  -webkit-animation: slide-out-reverse 0.8s forwards;
}

/* Personality Quiz */
.h5p-dir-rtl .h5p-personality-quiz .h5p-personality-quiz-progress-text{
  direction: ltr;
  text-align: end;
  margin-right: 1em;
}
.h5p-dir-rtl .h5p-personality-quiz .h5p-personality-quiz-column{
  float: right;
}
.h5p-dir-rtl .h5p-personality-quiz .h5p-personality-quiz-personality h2,
.h5p-dir-rtl .h5p-personality-quiz .h5p-personality-quiz-personality p{
  text-align: right;
}

/* Buttton Animation */
@keyframes button-fill-rtl {
  from  { background-position: 0%; color: rgb(60, 62, 64);}
  to { background-position: 100%; color: rgb(233, 239, 247);}
}
.h5p-dir-rtl .h5p-personality-quiz .h5p-personality-quiz-button-animate {
  animation-duration: 0.9s;
  animation-name: button-fill-rtl;
  animation-fill-mode: forwards;
}

/* Image Juxtaposition */ 
.h5p-dir-rtl .h5p-image-juxtaposition .h5p-image-juxtaposition-task-description{
  margin-right: 16px;
}

/* Speak the words set*/
.h5p-dir-rtl .h5p-speak-the-words-set .h5p-question-next,
.h5p-dir-rtl .h5p-speak-the-words-set .h5p-question-previous,
.h5p-dir-rtl .h5p-speak-the-words-set .h5p-question-finish {
  float: left;
}
.h5p-dir-rtl .h5p-speak-the-words-set .h5p-question-next:before {
  content: "\f053";
  right: 2px;
  left: auto;
}
.h5p-dir-rtl .h5p-speak-the-words-set .h5p-question-previous:before {
  content: "\f054";
  right: -2px;
  left: auto;
}

/* Dictation */
.h5p-dir-rtl .h5p-dictation .h5p-dictation-audio-wrapper {
  float: right;
  margin: 0;
  margin-left: 0.25em;
}
.h5p-dir-rtl .h5p-dictation .h5p-audio-minimal-button{
  transform: rotate(180deg);
}
.h5p-dir-rtl .h5p-dictation .h5p-answer-typo {
  display: inline-block;
  margin-left: 4px;
}
.h5p-dir-rtl .h5p-dictation .h5p-solution-container {
  right: 0.25em;
  left: auto;
}
.h5p-dir-rtl .h5p-dictation .h5p-solution-text{
  flex-direction: row-reverse;
  flex-wrap: wrap-reverse;
}
.h5p-dir-rtl .h5p-dictation .h5p-wrapper-match,
.h5p-dir-rtl .h5p-dictation .h5p-wrapper-wrong,
.h5p-dir-rtl .h5p-dictation .h5p-wrapper-missing{
  flex: auto;
}
 
/* Info Wall */
.h5p-dir-rtl .h5p-info-wall-titlebar .h5p-info-wall-searchbox-icon::before {
  right: 1.5em;
  left: auto;
}
.h5p-dir-rtl .h5p-info-wall-titlebar .h5p-info-wall-searchbox {
  padding: 0.25em 2em 0.25em 0.4em;
}

/* Find Words */
.h5p-dir-rtl .h5p-find-the-words em::before {
  margin-right: auto;
  margin-left: 8px;
}
.h5p-dir-rtl .h5p-find-the-words .vocabulary-container ul {
  padding-right: 8px;
}
.h5p-dir-rtl .h5p-find-the-words .vocabulary-container li {
  text-align: right;
}

/* Crosswords */
.h5p-dir-rtl .h5p-crossword .h5p-crossword-input-fields-group-solution-container {
  right: 0.25em;
  left: auto;
}
.h5p-dir-rtl .h5p-crossword .h5p-crossword-input-fields-group-solution-inner {
  text-align: right;
}
@media screen and (min-width: 46.25em){
  .h5p-dir-rtl .h5p-crossword .h5p-crossword-table-wrapper {
      margin-left: 1em;
      margin-right: 0em;
  }
}

/* Advent Calendar */
.h5p-dir-rtl .h5p-advent-calendar-square-content .h5p-advent-calendar-door-container .h5p-advent-calendar-doorway .h5p-advent-calendar-door.h5p-advent-calendar-left {
  align-items: flex-start;
}
.h5p-dir-rtl .h5p-advent-calendar-square-content .h5p-advent-calendar-door-container .h5p-advent-calendar-doorway .h5p-advent-calendar-door.h5p-advent-calendar-right {
  align-items: flex-end;
}
.h5p-dir-rtl .h5p-advent-calendar-overlay-outer-wrapper .h5p-advent-calendar-overlay-button-close {
  left: -1.1em;
  right: auto;
}

/* Virtual Tour */
.h5p-dir-rtl .nav-label-container .nav-label .nav-label-inner {
  text-align: right;
}
.h5p-dir-rtl .h5p-text-dialog .close-button-wrapper {
  left: -1em;
  right: auto;
}

/* Game MAP */
.h5p-dir-rtl .status-container::before {
  margin-left: 0.5rem;
  margin-right: auto;
}
.h5p-dir-rtl .status-container .status-container-values {
  direction: ltr;
}
.h5p-dir-rtl .h5p-game-map-exercise .h5p-game-map-exercise-content-container .h5p-game-map-exercise-content {
  margin-right: calc(var(--exercise-screen-offset, 4rem)/2);
  margin-left: 0em;
}
.h5p-dir-rtl .h5p-game-map-exercise .h5p-game-map-exercise-content-container .h5p-game-map-exercise-button-close {
  right: calc((var(--exercise-screen-offset, 4rem) - 2rem)/-2 - 0.25rem);
  left: auto;
}

/* Questionnaire */
.h5p-dir-rtl .h5p-questionnaire-element .h5p-subcontent-question {
  padding: 1.5em 1em 1.5em 5em;
}
.h5p-dir-rtl .h5p-questionnaire-progress-bar-widget {
  right:auto;
  left: 1em;
  direction: ltr;
}
.h5p-dir-rtl .h5p-simple-multiple-choice-question:before,
.h5p-dir-rtl .h5p-open-ended-question-question:before {
  right: 1em;
  left: auto;
}
.h5p-dir-rtl .h5p-questionnaire-footer .h5p-questionnaire-button.next {
  float: left;
}
.h5p-dir-rtl .h5p-questionnaire-footer .h5p-questionnaire-button.previous {
  float: right;
}
.h5p-dir-rtl .h5p-questionnaire-button.previous:before, .h5p-dir-rtl .h5p-questionnaire-button.next:after {
  margin-right: 0.5em;
}
.h5p-dir-rtl .h5p-questionnaire-submit-screen .h5p-questionnaire-button.previous {
  margin-left: 0.5em;
}
.h5p-dir-rtl .h5p-questionnaire-button.next:after {
  content: "\f137";
}
.h5p-dir-rtl .h5p-questionnaire-button.previous:before {
  content: "\f138";
}
