/* --------------------------------------- Footer -------------------------------- */

/* Footer */
.h5p-course-presentation .h5p-footer {
  display: flex;
  font-size: 0.75em;
  width: 100%;
  height: 6.5%;
  line-height: 1.88em;

  -webkit-user-select: none;  /* Chrome all / Safari all */
  -moz-user-select: none;     /* Firefox all */
  -ms-user-select: none;      /* IE 10+ */

  background-color: #fff;
}

/* Footer buttons */
.h5p-course-presentation .h5p-footer .h5p-footer-button {
  display: inline-block;
  background: transparent;
  border: 0;
  color: #555;
  cursor: pointer;
  height: 1.4em;
  width: 1.4em;
  line-height: 1.4em;
  margin: 0.2em 0.4em;
  text-align: center;
  position: relative;

  -webkit-transition: color 0.2s ease-in-out;
  -moz-transition: color 0.2s ease-in-out;
  transition: color 0.2s ease-in-out;
}

/* Footer containers */
.h5p-course-presentation .h5p-footer .h5p-footer-left-adjusted {
  flex: 2;
  text-align: left;
}

.h5p-course-presentation .h5p-footer .h5p-footer-right-adjusted {
  flex: 2;
  text-align: right;
}

.h5p-course-presentation .h5p-footer .h5p-footer-center-adjusted {
  flex: 1;
  text-align: center;
}

/* ---------------------------- Footer slide information buttons ----------------------- */

/* Prev slide */
.h5p-course-presentation .h5p-footer .h5p-footer-previous-slide:before {
  font-family: 'H5PFontAwesome4';
  content: "\f0d9";
}

/* Next slide */
.h5p-course-presentation .h5p-footer .h5p-footer-next-slide:after {
  font-family: 'H5PFontAwesome4';
  content: "\f0da";
}

/* Slide counter */
.h5p-course-presentation .h5p-footer .h5p-footer-slide-count,
.h5p-course-presentation .h5p-footer .h5p-footer-slide-count-current,
.h5p-course-presentation .h5p-footer .h5p-footer-slide-count-delimiter,
.h5p-course-presentation .h5p-footer .h5p-footer-slide-count-max {
  display: inline-block;
}

/* Slide delimiter */
.h5p-course-presentation .h5p-footer .h5p-footer-slide-count-delimiter {
  padding: 0 0.5em;
}

/* ---------------------------------------------- Solution Mode ---------------------------------- */

/* Footer in solution mode */
.h5p-course-presentation .h5p-footer.h5p-footer-solution-mode {
  background-color: #2b2c30;
  color: #fbfbfb;
}

/* Only show exit solultion mode button in solution mode */
.h5p-course-presentation .h5p-footer.h5p-footer-solution-mode .h5p-footer-exit-solution-mode {
  display: inline-block;
  cursor: pointer;
  position: relative;
  line-height: 1.35;
}

/* Hide exit solution mode button initially */
.h5p-course-presentation .h5p-footer .h5p-footer-exit-solution-mode {
  display: none;
}

/* Hide exit solution mode button on summary slide */
.h5p-course-presentation .h5p-footer.h5p-footer-solution-mode.summary-slide .h5p-footer-exit-solution-mode {
  display: none;
}

/* Footer solution mode text */
.h5p-course-presentation .h5p-footer .h5p-footer-exit-solution-mode-text {
  display: inline-block;
  padding: 0 0.25em;
}

.h5p-course-presentation .h5p-footer.h5p-footer-solution-mode .h5p-footer-button {
  color: #fbfbfb;
}


/* --------------------------------------------- Footer elements ---------------------------------------- */

.h5p-course-presentation .h5p-footer-toggle-keywords .h5p-icon-menu:before {
  font-family: 'H5PFontIcons';
  font-size: 1.3em;
  content: "\e90b";
  padding: 0 0 0 0.25em;
  -webkit-font-smoothing: antialiased;
}

/* Footer keyword button */
.h5p-course-presentation .h5p-footer .h5p-footer-toggle-keywords {
  display: inline-block;
  width: auto;
  padding-right: 0.4em;
}

.h5p-course-presentation .h5p-footer .h5p-footer-toggle-keywords .current-slide-title {
  vertical-align: top;
  font-size: 0.9em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h5p-course-presentation .h5p-footer .h5p-footer-toggle-keywords .current-slide-title:before {
  font-family: 'h5p';
  font-size: 0.6em;
  content: '\e565';
  vertical-align: top;
  left: 3em;
  display: inline-block;
  margin-right: 1em;
  -ms-transform: rotate(270deg);
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);
}

.h5p-course-presentation .h5p-footer [aria-expanded="true"].h5p-footer-toggle-keywords .current-slide-title:before {
  -ms-transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

/* Print button and full screen button (in footer) */
.h5p-course-presentation .h5p-footer .h5p-footer-print:before,
.h5p-course-presentation .h5p-footer .h5p-footer-toggle-full-screen:before {
  font-family: 'H5PFontAwesome4';
  content: "\f065";
  font-size: 1.2em;
}
.h5p-course-presentation .h5p-footer .h5p-footer-print:before {
  content: "\f02f";
}
.h5p-course-presentation .h5p-footer .h5p-footer-toggle-full-screen:before {
  content: "\f065";
}

/* Hide print button on small screens */
@media screen and (max-device-width: 400px) {
  .h5p-course-presentation .h5p-footer .h5p-footer-print {
    display: none;
  }
}
/* Hide print button in fullscreen */
.h5p-course-presentation.h5p-fullscreen .h5p-footer .h5p-footer-print,
.h5p-course-presentation.h5p-semi-fullscreen .h5p-footer .h5p-footer-print {
  display: none;
}

.h5p-course-presentation.h5p-fullscreen .h5p-footer .h5p-footer-toggle-full-screen:before,
.h5p-course-presentation.h5p-semi-fullscreen .h5p-footer .h5p-footer-toggle-full-screen:before {
  content: "\f066";
}

/* ------------------------------------------ Full Screen scaling ------------------------------------- */

/* Solution mode text changes to footer elements */
.h5p-course-presentation .h5p-footer.footer-full-screen button.h5p-footer-button {
  font-size: 1.0em;
}

/* ----------------------------------------- Progress bar --------------------------------------------- */

.h5p-course-presentation .h5p-cp-navigation {
  width: 100%;
  height: 3.5%;
}

.h5p-course-presentation .h5p-progressbar {
  width: 100%;
  height: 100%;
  overflow: visible;
  background: #666;

  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */

  -webkit-user-select: none;  /* Chrome all / Safari all */
  -moz-user-select: none;     /* Firefox all */
  -ms-user-select: none;      /* IE 10+ */

  box-shadow: 0 0 0.5em 0 rgba(105, 105, 105, 0.4);
}

.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part.progressbar-part-summary-slide {
  -webkit-flex: 0;
  flex: 0;
  min-width: 2.2em;
}

.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part.progressbar-part-summary-slide a {
  padding-top: 0;
}

/* The summary slide icon */
.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part.progressbar-part-summary-slide a:after {
  content: "";
  display: block;
  height: 0.8em;
  width: 1.7em;

  background: transparent url(../fonts/summary-icon.svg) no-repeat center;
  background-size: 3.4em 1.6em;
  margin-left: auto;
  margin-right: auto;
}

.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part {
  flex: 1;
  position: relative;
}

.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.h5p-course-presentation .h5p-progressbar a {
  position: relative; /* needed for z-index */
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  padding-top: 0.1em;
}

.h5p-course-presentation .h5p-progressbar a:focus {
  outline: 2px solid #457AD1;
  outline-offset: 1px;
}

.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part-show {
  background: #0085FF;
  background-image: -webkit-linear-gradient(top, #0085FF, #1a73d9);
  background-image: -moz-linear-gradient(top, #0085FF, #1a73d9);
  background-image: linear-gradient(to bottom, #0085FF, #1a73d9);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0085FF', endColorstr='#1a73d9', GradientType=0);

  -webkit-transition: width 0.25s ease-in-out;
  -moz-transition: width 0.25s ease-in-out;
  -ms-transition: width 0.25s ease-in-out;
  transition: width 0.25s ease-in-out;
}

/* -------------------------------------- Feedback for progress bar ------------------------------------- */
.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part .h5p-progressbar-part-has-task:after {
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.1em 0.3em;
  line-height: 1em;
  border: 0.1em solid;
  cursor: auto;
  font-family: 'H5PFontAwesome4';
  font-size: 0.6em;
}

.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part .h5p-progressbar-part-has-task.h5p-is-correct:after {
  content: "\f00c";
  color: #6aa81b;
  background-color: #d1e2ce;
}

.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part .h5p-progressbar-part-has-task.h5p-is-wrong:after {
  content: "\f00d";
  color: #c33f62;
  background-color: #e6ced1;
}

/* --------------------------------------------------------- Progressbar with task ---------------------------- */
.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part .h5p-progressbar-part-has-task {
  display: block;
  width: 0.45em;
  height: 0.45em;

  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;

  border: 2px solid #f5f5f5;
  cursor: pointer;

  background: transparent;
  margin-right: auto;
  margin-left: auto;
}

.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part .h5p-progressbar-part-has-task.h5p-answered {
  background: #f5f5f5;
}

.h5p-course-presentation .h5p-progressbar .h5p-progressbar-part.h5p-progressbar-part-show .h5p-progressbar-part-has-task.h5p-answered {
  background: #f5f5f5;
}

/* -------------------------------------- Footer hover effects ---------------------------------- */

.h5p-course-presentation .h5p-footer [role="button"]:hover {
  color: #000;
}

.h5p-course-presentation .h5p-footer [role="button"]:focus {
  outline: 2px solid #457AD1;
  background-color: rgba(121, 171, 253, 0.2);
}

.using-mouse .h5p-course-presentation .h5p-footer .h5p-footer-button.h5p-footer-toggle-keywords:focus {
  background-color: transparent;
}

.h5p-course-presentation .h5p-footer [aria-disabled="true"].h5p-footer-button {
  visibility: hidden;
}
.h5p-course-presentation .h5p-footer [aria-disabled="true"].h5p-footer-button:before,
.h5p-course-presentation .h5p-footer [aria-disabled="true"].h5p-footer-button:after {
  color: #999;
}

.h5p-course-presentation .h5p-footer.h5p-footer-solution-mode [role="button"] {
  color: #dbd7d1;
}

.h5p-course-presentation .h5p-footer.h5p-footer-solution-mode [role="button"]:focus {
  color: #dbd7d1;
  outline: 2px solid #fff;
  background-color: transparent;
}