/*General layout*/
body {
  margin: 0px;
  font-family: 'Roboto', sans-serif;
}
main {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/happycashier.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.quiz-container {
width: 650px;
height: 650px;
position: relative;
overflow: hidden;
background-color: rgba(207, 168, 36, 0.6);
color: #fff;
}

.quiz-container h1{
  font-size: 2em;
  text-transform: uppercase;
  margin: 0px;
  font-weight: 100;
  position: absolute;
  top: 25px;
  left: 36px;
}

.quiz-container h1 span{
  display: block;
  font-weight: 900px;
  font-family: sans-serif;
  font-size: 2em;
  line-height: 65px;
}

.quiz-container h2{
  font-size: 3em;
  margin: 0px;
  font-weight: 100;
}

.quiz-container h3{
  font-size: 2.4em;
  margin: 0px;
  font-weight: 100;
}

.quiz-container p {
  margin: 0px 0px 14px 0px;
}

.quiz-container .btn {
  display: inline-block;
  cursor: pointer;
  background-color: #fb782d;
  color: #fff;
  text-decoration: none;
  padding: 5px 15px;
  border-radius: 6px;
}

/*Progress Bar*/

.quiz-container .progress {
  width: 550px;
  position: absolute;
  top: 160px;
  left: 40px;
  /*left: 660px;*/
}

.quiz-container .progress div {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 1s;
}

.quiz-container .progress div::after {
  background-color: #D73930;
}

/*.quiz-container .progress div::after {
  content: '';
  display: block;
  position: absolute;
  top: -80px;
  left: -10px;
  width: 50px;
  height: 80px;
  background: #D73930;
  transition: opacity 1s, top 1s;
  opacity: 0;
}*/

.quiz-container .progress div.on,
.quiz-container .progress div.answered {
  background-color: #fb782d;
}

.quiz-container .progress div.correct::after {
  top: -23px;
  opacity: 1;
}

/*Intro*/

.quiz-container .intro{
  position: absolute;
  top: 225px;
  left: 660px;
  /*left: 40px;*/
  width: 550px;
}

.quiz-container .intro p {
  margin: 0px 0px 40px 0px;
}

/*Questions*/

.quiz-container .question {
  width: 550px;
  position: absolute;
  top: 225px;
  left: 660px;
  /*left: 40px;*/
}

.quiz-container .question .text {
  font-size: 1.6em;
  margin: 0px 0px 20px 0px;
}

.quiz-container .question .answers {
  display: inline-block;
  background-color: rgba(131, 24, 27, 0.4);
  font-size: 1.1em;
  height: 20px;
  width: 225px;
  border: 2px solid #83181b;
  border-radius: 6px;
  padding: 10px;
  margin: 0px 15px 15px 0px;
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
}

.quiz-container .answers.selected {
  border-color: #be4b16;
}

.quiz-container .answers.correct {
  border-color: #459a2e;
}

.quiz-container .question .answers::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: no-repeat 0px 0px;
  background-size: 20px 20px;
  position: absolute;
  top: 5px;
  right: 5px;
}

.quiz-container .answers.selected::after {
  background-image: url("../images/icon_incorrect.svg");
}

.quiz-container .answers.correct::after {
  background-image: url("../images/icon_correct.svg");
}

.quiz-container .question.unanswered .answers {
  cursor: pointer;
}

.quiz-container .question.unanswered .answers:hover {
  background-color: rgba(238, 189, 102, 0.2);
}

.quiz-container .question.answered .answers {
  cursor: default;
}

.quiz-container .question .answer.image {
  min-height: 60px;
  padding: 0px;
  background-repeat: no-repeat;
  background-position: 0px 0px;
}

/*Feedback*/

.quiz-container .feedback {
  color: #fff;
  margin-top: 10px;
  transition: opacity 1.5s , margin-top 1.5s; visibility: hidden;
  opacity: 0;
}

.quiz-container .feedback .btn {
  margin-top: 5px;

}

.quiz-container .feedback strong{
  color: #fff;

}

.quiz-container .answered .feedback{
  visibility: visible;
  opacity: 1;
  margin-top: 10px;

}

/*Results*/

.quiz-container .results {
  position: absolute;
  top: 225px;
  left: 660px;
  /*left: 40px;*/
  width: 550px;
}

.quiz-container .results .share {
  margin-top: 40px;
}

.quiz-container .results .share a.btn {
  margin-right: 20px;
  padding: 9px 15px 8px 42px;
  background-repeat: no-repeat;
  background-position: 10px 5px;
  background-size: 25px 25px;
}

.quiz-container .results .share a.btn.email {
  background-color: #f0a121;
  background-image: url("../images/icon_email.svg");
}

.quiz-container .results .share a.btn.twitter {
  background-color: #59adeb;
  background-image: url("../images/icon_twitter.svg");
}

.quiz-container .active, .quiz-container .inactive {
  transition: left 1.5s ease-in-out;
}

.quiz-container .active {
  left: 40px;
}

.quiz-container .intro.inactive, .quiz-container .intro.answered {
  left: -1350px;
}


/*Responsive*/

@media screen and (max-width: 650px) {

  body {
    padding: 0px;
    margin: 0px;
  }

  .quiz-container {
    width: 320px;
    background-size: 320px auto;
    height: 700px;
  }

  .quiz-container h1 {
    width: 300px;
    font-size: 1.3em;
    top: 25px;
    left: 25px;
  }

  .quiz-container h1 span {
    line-height: 43px;
  }

  .quiz-container h2 {
    margin: 0px;
  }

  .quiz-container h3 {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .quiz-container .progress {
    width: 300px;
    /*top: 110px;*/
    left: 25px;
  }

  .quiz-container .progress div {
    width: 25px;
    height: 25px;
    margin-right: 20px;
  }

  .quiz-container .progress div::after {
    top: -40px;
    width: 50px;
    height: 70px;
  }

  .quiz-container .intro {
    width: 300px;
    left: 330px;
  }

  .quiz-container .question {
    width: 300px;
    left: 330px;
  }

  .quiz-container .question .text {
    font-size: 1.4em;
    margin-bottom: 15px;
  }

  .quiz-container .answer {
    font-size: 1em;
    padding: 5px 10px;
    margin-bottom: 10px;
  }

  .quiz-container .answer.image {
    min-height: 40px;
    background-size: auto 45px;
  }

  .quiz-container .answer.image:hover {
    background-color: #000;
  }

  .quiz-container .results {
    width: 260px;
    left: 330px;
  }

  .quiz-container .results .share {
    margin-top: 20px;
  }

  .quiz-container .results a.btn {
    margin-bottom: 20px;
  }

  .quiz-container .active {
    left: 25px;
  }

  .quiz-container .intro.inactive, .quiz-container .inactive.answer{
    left: -650px;
  }
}
