@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Lato:300,400,300italic,400italic&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap");

html {
  overflow-y: scroll;
}

body {
  font-size: 16px;
  background-color: #50CB93;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}

.custom-box {
  max-width: 700px;
  background-color: #ffffff;
  margin: 40px auto;
  padding: 30px;
  border-radius: 10px;
  animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
  0% {
    transform: translateX(40px);
    opacity: 0;
  }

  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

.custom-box::before,
.custom-box::after {
  content: '';
  clear: both;
  display: table;
}

/*.custom-box.hide, */
.hide {
  display: none;
}

.home-box h3 {
  font-size: 18px;
  color: #000000;
  font-weight: 500;
  margin-bottom: 15px;
  line-height: 25px;
}

.home-box p {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 22px;
  color: #000000;
  font-weight: 400;
}

.home-box p span {
  font-weight: 500;
}

.home-box .btn {
  margin-top: 20px;
}

.btn {
  padding: 15px 45px;
  background-color: #54436B;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  cursor: pointer;
  display: inline-block;
}

.btn:hover {
  color: #ACFFAD;
  text-decoration: none;
}

.quiz-box .question-number,
.quiz-box .question-text,
.quiz-box .option-container,
.quiz-box .next-question-btn,
.quiz-box .answers-indicator {
  width: 100%;
  float: left;
}

.quiz-box .option-container {
  overflow: auto;
  display: inline-block;
}

.quiz-box .answers-indicator {
  border-top: 1px solid #cccccc;
}

.quiz-box .question-number {
  font-size: 18px;
  color: #074F66;
  font-weight: 600;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 10px;
  line-height: 25px;
}

.quiz-box .question-text {
  font-size: 22px;
  color: #000000;
  line-height: 28px;
  font-weight: 400;
  padding: 20px 0;
  margin: 0;
}

.quiz-box .question-text img {
  max-width: 100%;
  display: block;
  margin-top: 15px;
  margin: auto;
}
}

.quiz-box .question-block {
  font-family: "Courier Prime", sans-serif;
  font-size: 16px;
  color: #000000;
  line-height: 18px;
  font-weight: 400;
  padding: 20px 0;
  margin: 0;
}

/*.quiz-box .next-question-btn {
}
.quiz-box .next-question-btn,  {
}*/
.quiz-box .option-container .option {
  background-color: #cccccc;
  padding: 13px 15px;
  font-size: 16px;
  line-height: 22px;
  color: #000000;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  /*text-transform: capitalize;*/
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
  position: relative;
  overflow: hidden;
}

.quiz-box .option-container .option.already-answered {
  pointer-events: none;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.quiz-box .option-container .option.correct::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: green;
  z-index: -1;
  animation: slideInLeft .5s ease forwards;
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.quiz-box .option-container .option.wrong::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: red;
  z-index: -1;
  animation: slideInLeft .5s ease forwards;
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.quiz-box .option-container .option.wrong,
.quiz-box .option-container .option.wrong code {
  color: #ffffff;
  background-color: red;
}

.quiz-box .option-container .option.correct,
.quiz-box .option-container .option.correct code {
  color: #ffffff;
  background-color: green;
}

.quiz-box .btn {
  margin: 15px 0;
}

.quiz-box .answers-indicator div {
  height: 40px;
  width: 40px;
  display: inline-block;
  background-color: #cccccc;
  border-radius: 50%;
  margin-right: 3px;
  margin-top: 15px;
}

.quiz-box .answers-indicator div.correct {
  background-color: green;
  background-image: url("../img/correct.png");
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
}

.quiz-box .answers-indicator div.wrong {
  background-color: red;
  background-image: url("../img/wrong.png");
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
}

.result-box {
  text-align: center;
}

.result-box h1 {
  font-size: 32px;
  line-height: 42px;
}

.result-box h2 {
  line-height: 42px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.result-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.result-box table td {
  border: 1px solid #cccpcc;
  padding: 8px 15px;
  font-weight: 500;
  color: #000000;
  width: 50%;
  text-align: left;
  font-size: 18px;
}

/*.result-box .btn {
  margin-right: 20px;
}*/


.explanation {
  text-align: left;
}

.explanation a {
  color: black;
  text-decoration: none;
  background-color: transparent;
  font-size: .98em;
  font-family: 'Courier Prime', monospace;
}

.explanation div pre  {
  background-color: #C0EDD9;
  padding: 6px;
  white-space: pre; 
  overflow-x: auto;
}

img {
  max-width: 100%;
  margin-top: 8px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #54436B;
}

.header {
  padding: 10px 0;
  background: #50CB93;
  color: #fff;
  position: fixed;
  width: 100%;
  z-index: 2;
}

.offset-header {
  padding: 70px 0;
}

.header .main-nav {
  display: block;
  background-color: #fff;
  height: 2px;
  width: 22px;
  border-radius: 1px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

.header .title {
  margin: 0;
  font-size: 26px;
  padding-top: 10px;
}

.header .title a {
  color: #fff;
}

.header .title a:hover {
  text-decoration: none;
}

.footer {
  padding: 15px 0;
  background: #54436B;
  color: #fff;
}

code,
samp {
  color: #54436B;
  font-size: .98em;
  font-family: 'Courier Prime', monospace;
}

kbd {
  background-color: #ACFFAD;
  white-space: pre-wrap;
}

hr {
  border-top: dotted 2px;
}

.image-copyright {
  display: inline-block;
  float: left;
  transform: rotate(90deg);
  transform-origin: 100% 100%;
  color: gray;
  margin-top: -25px;
  /* margin-left:-75px; */
}

.caption {
  display: inline-block;
  float: left;
}

@media(max-width: 767px) {
  .result-box .btn {
    margin-bottom: 15px;
  }

  .quiz-box .option-container {
    overflow-x: scroll;
  }
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
  }
}

/*
 #54436B
 #50CB93
 #71EFA3
 #ACFFAD
 */
