.ms-quiz .view-results-controls { display: none; }
.ms-quiz .in-quiz-controls {
    display: none;
}
.ms-quiz.in-progress .start-quiz-controls {
    display: none;
}
.ms-quiz.in-progress .in-quiz-controls {
    display: block;
}
.ms-quiz.finished .start-quiz-controls {
    display: none; 
}
.ms-quiz.finished  .view-results-controls {
    display: block;
}
.ms-quiz.results .controls .start-quiz-controls { display: none; }

.next-question-controls { display: none; }
.ms-quiz.in-progress.question-finished .in-quiz-controls { display: none; }
.ms-quiz.in-progress.question-finished .next-question-controls { display: block; }

.ms-quiz .question-nav-inside.start-quiz { display: none; }

.ms-quiz.finished .question-nav { display: none; }
.ms-quiz { position: relative; }

.ms-quiz .pass-or-fail-descriptor { margin: 30px 0; }
.ms-quiz .result-score { font-size: 26px; }
.ms-quiz .result-score-descriptor { font-size: 16px; }

.ms-quiz .retake-quiz-controls { margin: 20px 0; }

.ms-quiz select.rc-option { min-width: 50px; margin-right: 15px;  }




.ms-quiz .ms-question.has-image { display: flex; }
.ms-quiz .ms-question.has-image > div:first-of-type { margin-right: 20px; }
.ms-quiz .ms-question.has-image > div { max-width: 45%; }





.question-option { display: flex; align-items: center; margin: 5px 0; }
.question-option .selector { width: 30px; height: 30px; border-radius: 5px; border: 1px solid #333; margin-right: 15px; position:relative; cursor: pointer; }
.question-option .descriptor { max-width: calc(100% - 50px); }
.question-option .selector.selected::before {
  position: absolute;
  left: 0%;
  top: 44%;
  height: 40%;
  width: 3px;
  background-color: #336699;
  content: "";
  transform: translateX(10px) rotate(-45deg);
  transform-origin: left bottom;
}

.question-option .selector.selected::after {
  position: absolute;
  left: 5%;
  bottom: 15%;
  height: 3px;
  width: 78%;
  background-color: #336699;
  content: "";
  transform: translateX(10px) rotate(-45deg);
  transform-origin: left bottom;
}

.question-nav-inside {
  font-size: 18px; 
  margin: 10px 0 20px 0;
  font-style: italic;
  color: #333;
}
.question-nav-inside span { font-weight:normal; }

.question-cat-title { font-size: 18px;  }
.question-title { font-size: 20px; margin-bottom: 20px; margin-top: 20px }
.ms-quiz .controls { margin: 20px 0; }
.correct-answer-explanation, .incorrect-answer-explanation { display: none; }


/* feedback */
.feedback-icon .success-icon, .feedback-icon .fail-icon { display: none; }
.feedback-icon.correct .success-icon { display: block; }
.feedback-icon.incorrect .fail-icon { display: block; }

.feedback-icon .swal2-icon { margin: 15px 0; overflow: hidden; }
.feedback-container .feedback-title { font-size: 18px; font-weight: bold; margin: 5px 0 20px 0; }
.feedback-container .feedback-text { color: #333; }



/* loading animation */
.blocking-div { position: fixed; background: #333; opacity: 0.5; width: 100%; height: 100%; top: 0; left: 0; z-index: 100; }
.loading-animation { display: none; position: absolute; width: 50%; height: 50%; min-height: 350px; background: #fff; border: 1px solid #000; border-radius: 5px; top: 25%; left: 25%; z-index: 1000; }
.loading-animation .loading-text { position: absolute; bottom: 5%; text-align: center; width: 100%; }

.boxes {
    margin-left: auto;
    margin-right: auto;
    --size: 32px;
    --duration: 800ms;
    height: calc(var(--size) * 2);
    width: calc(var(--size) * 3);
    position: relative;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    /*margin-top: calc(var(--size) * 1.5 * -1);*/
    margin-top: 25%;
    -webkit-transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
            transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
  }
  .boxes .box {
    width: var(--size);
    height: var(--size);
    top: 0;
    left: 0;
    position: absolute;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
  }
  .boxes .box:nth-child(1) {
    -webkit-transform: translate(100%, 0);
            transform: translate(100%, 0);
    -webkit-animation: box1 var(--duration) linear infinite;
            animation: box1 var(--duration) linear infinite;
  }
  .boxes .box:nth-child(2) {
    -webkit-transform: translate(0, 100%);
            transform: translate(0, 100%);
    -webkit-animation: box2 var(--duration) linear infinite;
            animation: box2 var(--duration) linear infinite;
  }
  .boxes .box:nth-child(3) {
    -webkit-transform: translate(100%, 100%);
            transform: translate(100%, 100%);
    -webkit-animation: box3 var(--duration) linear infinite;
            animation: box3 var(--duration) linear infinite;
  }
  .boxes .box:nth-child(4) {
    -webkit-transform: translate(200%, 0);
            transform: translate(200%, 0);
    -webkit-animation: box4 var(--duration) linear infinite;
            animation: box4 var(--duration) linear infinite;
  }
  .boxes .box > div {
    --background: #5C8DF6;
    --top: auto;
    --right: auto;
    --bottom: auto;
    --left: auto;
    --translateZ: calc(var(--size) / 2);
    --rotateY: 0deg;
    --rotateX: 0deg;
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--background);
    top: var(--top);
    right: var(--right);
    bottom: var(--bottom);
    left: var(--left);
    -webkit-transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
            transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
  }
  .boxes .box > div:nth-child(1) {
    --top: 0;
    --left: 0;
  }
  .boxes .box > div:nth-child(2) {
    --background: #145af2;
    --right: 0;
    --rotateY: 90deg;
  }
  .boxes .box > div:nth-child(3) {
    --background: #447cf5;
    --rotateX: -90deg;
  }
  .boxes .box > div:nth-child(4) {
    --background: #DBE3F4;
    --top: 0;
    --left: 0;
    --translateZ: calc(var(--size) * 3 * -1);
  }
  
  @-webkit-keyframes box1 {
    0%,
      50% {
      -webkit-transform: translate(100%, 0);
              transform: translate(100%, 0);
    }
    100% {
      -webkit-transform: translate(200%, 0);
              transform: translate(200%, 0);
    }
  }
  
  @keyframes box1 {
    0%,
      50% {
      -webkit-transform: translate(100%, 0);
              transform: translate(100%, 0);
    }
    100% {
      -webkit-transform: translate(200%, 0);
              transform: translate(200%, 0);
    }
  }
  @-webkit-keyframes box2 {
    0% {
      -webkit-transform: translate(0, 100%);
              transform: translate(0, 100%);
    }
    50% {
      -webkit-transform: translate(0, 0);
              transform: translate(0, 0);
    }
    100% {
      -webkit-transform: translate(100%, 0);
              transform: translate(100%, 0);
    }
  }
  @keyframes box2 {
    0% {
      -webkit-transform: translate(0, 100%);
              transform: translate(0, 100%);
    }
    50% {
      -webkit-transform: translate(0, 0);
              transform: translate(0, 0);
    }
    100% {
      -webkit-transform: translate(100%, 0);
              transform: translate(100%, 0);
    }
  }
  @-webkit-keyframes box3 {
    0%,
      50% {
      -webkit-transform: translate(100%, 100%);
              transform: translate(100%, 100%);
    }
    100% {
      -webkit-transform: translate(0, 100%);
              transform: translate(0, 100%);
    }
  }
  @keyframes box3 {
    0%,
      50% {
      -webkit-transform: translate(100%, 100%);
              transform: translate(100%, 100%);
    }
    100% {
      -webkit-transform: translate(0, 100%);
              transform: translate(0, 100%);
    }
  }
  @-webkit-keyframes box4 {
    0% {
      -webkit-transform: translate(200%, 0);
              transform: translate(200%, 0);
    }
    50% {
      -webkit-transform: translate(200%, 100%);
              transform: translate(200%, 100%);
    }
    100% {
      -webkit-transform: translate(100%, 100%);
              transform: translate(100%, 100%);
    }
  }
  @keyframes box4 {
    0% {
      -webkit-transform: translate(200%, 0);
              transform: translate(200%, 0);
    }
    50% {
      -webkit-transform: translate(200%, 100%);
              transform: translate(200%, 100%);
    }
    100% {
      -webkit-transform: translate(100%, 100%);
              transform: translate(100%, 100%);
    }
  }




