@import url('https://fonts.googleapis.com/css?family=Exo');

.title {
  text-decoration: none;
}

#countdown {
  bottom: 0;
  left: 50%;
  margin: 2rem 0;
  font-family: 'Exo', 'Courier New', Courier, monospace;
  text-align: center;
  height: 1rem;
  justify-content: center;
  display: flex; 
}

.hidden {
  display: none;
}

.exam-simulation {
  display: flex;
  margin-top: 15vh;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  flex-direction: column;
  font-family: 'Exo', sans-serif;
}

.question-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.exam-simulation .question-number {
  display: flex;
  background-color: lightgray;
  width: 200px;
  height: 50px;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: bold;
}

.question-number {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.exam-simulation .question-number img {
  display: none;
  position: absolute;
  align-items: center;
  justify-content: center;
  left: 45%;
  width: 24px;
  height: 24px;
}

.exam-simulation .question {
  width: 60%;
  padding: 1rem;
  text-align: center;
}

.exam-simulation .alternatives {
  padding: 0.3rem;
}

.exam-simulation .alternative {
  max-width: 45rem;
  padding: 0.3rem 1rem;
  cursor: pointer;
}

.exam-simulation .alternative.correct-alternative {
  border: 2px solid #1e8449;
  border-radius: 15px;
}

.exam-simulation .alternative:hover {
  background-color: #cccccc;
  border-radius: 1rem;
}

.exam-simulation .alternative > span.alternative-choice {
  width: 15px;
  display: inline-block;
  position: relative;
  height: 15px;
  top: -14px;
  font-size: 0;
  border: 1px solid black;
  margin: 0 0.5rem;
  border-radius: 4px;
}

.exam-simulation .alternative > span.alternative-choice.selected {
  background: #147771;
}

.exam-simulation .alternative > span.alternative-letter {
  font-weight: bold;
}

.exam-simulation .alternative > span.alternative-letter.selected {
  height: 1.5rem;
  width: 1.5rem;
  border: 4px solid #f00;
  border-radius: 50%;
  margin-left: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.exam-simulation .actions {
  padding-top: 3rem;
}

.exam-resume {
  display: flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  flex-direction: column;
  flex-flow: wrap column;
  max-height: 470px;
}

.exam-resume-answer {
  width: 130px;
  cursor: pointer;
  padding: 0.2rem 1rem;
  margin: 1px 0;
  transition: all .3s;
}

.exam-resume-answer.question-correct-marked {
  border: 2px solid #1e8449;
  border-radius: 15px;
}

.exam-resume-answer.question-wrong-marked {
  border: 2px solid red;
  border-radius: 15px;
}

.exam-resume-answer:hover {
  background-color: #cccccc;
  border-radius: 1rem;
  transition-duration: .35s;
}

.exam-finish-results {
  display: flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  flex-direction: column;
}

.exam-finish-results > span.exam-result-statics {
  margin: 1rem;
  text-align: center;
}

.exam-finish-results > span.exam-result-statics.pass {
  color: green;
}

.exam-finish-results > span.exam-result-statics.fail {
  color: red;
}

.action-button {
  appearance: none;
  backface-visibility: hidden;
  background-color: #147771;
  border-radius: 8px;
  border-style: none;
  box-shadow: rgba(39, 174, 96, .15) 0 4px 9px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: 'Exo', Inter,-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.5;
  outline: none;
  overflow: hidden;
  padding: 13px 20px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transform: translate3d(0, 0, 0);
  transition: all .3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: top;
  white-space: nowrap;
  margin: 0 6rem;
}

.action-button:enabled:hover {
  background-color: #1e8449;
  opacity: 1;
  transform: translateY(0);
  transition-duration: .35s;
}

.action-button:disabled {
  background-color: #cacaca;
}

.action-button:enabled:active {
  transform: translateY(2px);
  transition-duration: .35s;
}

.action-button:enabled:hover {
  box-shadow: rgba(39, 174, 96, .2) 0 6px 12px;
}

.review-btn, .finish-btn {
  display: none;
  position: absolute;
  bottom: 3rem;
  right: -4rem;
}

/* Tablet / iPad */

@media only screen and (max-width: 1080px) {
  .action-button {
    margin: 0 4rem;
  }

  .review-btn, .finish-btn {
    bottom: unset;
    right: -2rem;
  }
}

/* MOBILE */

@media only screen and (max-width: 600px) {
  .container {
    height: auto;
  }

  .exam-simulation {
    margin-top: 1rem;
  }

  .exam-simulation .question {
    width: 90%;
  }

  .exam-simulation .question-number img {
    left: 28%;
  }

  .exam-resume {
    flex-flow: wrap;
    max-height: 700px;
    overflow-y: auto;
    font-size: 14px;
  }

  .action-button {
    margin: 0 1rem;
  }

  .review-btn, .finish-btn {
    position: relative;
    margin: 1rem auto;
    bottom: unset;
    right: unset;
  }

  #countdown {
    margin: 2rem 0;
  }
}
