/* CSS Variables */
:root {
  /* UI colors - Template 1*/
  --dark: rgba(55, 55, 55, 0.7);
  --light: rgba(245, 245, 245, 0.8);
  --backgColor: #fcd3de;
  --backgGrad: linear-gradient(-45deg, #9bbdf9, #c4e0f9);
  --backgTimer: #fa7921;
  --answerSel: #50c9ce;
  --answerNotSel: rgba(245, 245, 245, 0.6);
  --btconf: #50c9ce;
  --btpass: #fa7921;
  --pointsBarPos: #50c9ce;
  --pointsBarNeg: #fa7921;
  --frame: rgba(255, 255, 255, 0.7);
  --shadow: 0 1px 5px rgba(104, 104, 104, 0.8);
  --lightBorder: 1px solid rgba(245, 245, 245, 0.3);
  --ftColor1: #111;
  --ftColor2: #e7e5df;
  --ftColor3: MidnightBlue;

  /* Other Variables */
  --fontA: "Didact Gothic";
  --fontB: "Arimo";
  --ftSize1: 1.3rem;
  --ftSize2: 1.2rem;
  --ftSize3: 1rem;
  --gapAnswers: 25px;
  --heigthAnswers: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  cursor: default;
  user-select: none;
}

body {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--fontA);
  font-size: var(--ftSize3);
  color: var(--ftColor1);
  overflow: hidden;
}

.quiz-wrapper {
  position: relative;
  height: 100vh;
  /*background: var(--primary);*/
  background: var(--backgGrad);
  display: grid;
}

.q-modal-cover {
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  background: var(--backgGrad);
  z-index: 1;
  transition: all ease-in-out 0.4s;
}

.q-modal-cover-hide {
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  background: var(--backgGrad);
  z-index: 1;
  transform: translateX(50px);
}

.q-modal-activearea {
  position: relative;
  margin: 180px auto;
  width: 600px;
  height: 500px;
  padding: 50px;
  background: var(--dark);
  box-shadow: 0 0 20px 0 rgba(72, 94, 116, 0.7);
  z-index: 1;
  display: grid;
  justify-content: center;
}

#q-modal-header {
  font-size: 5em;
  color: white;
  text-align: center;
  margin: 20px 0px 20px 0px;
}

#q-modal-title {
  font-size: var(--ftSize1);
  color: var(--ftColor2);
  text-align: center;
  margin: 20px 0px 0px 0px;
}

#q-modal-pointsarea {
  position: relative;
  color: white;
  margin: 20px auto 50px auto;
  visibility: hidden;
}

#q-modal-pts {
  display: inline-block;
  margin-right: 10px;
  font-size: 2.2em;
}

#q-modal-pts-text {
  display: inline-block;
  font-size: 1.8em;
}

.bt-modal-start {
  background: var(--dark);
  height: 50px;
  color: white;
}

/* Área do Logo e Barra com nome do Quiz */
.q-sup-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 110px;
  background: var(--dark);
  color: var(--ftColor2);
  display: grid;
  align-content: center;
  grid-template-columns: 300px auto;
}

.q-header-logo {
  max-width: 200px;
  margin-left: 10px;
  margin-top: 2px;
}

.q-header-text {
  position: relative;
  top: 3px;
  font-size: var(--ftSize1);
}

/* Área Central */
.q-mid-container {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: var(--gapAnswers);
  padding: 50px 40px 50px 40px;
  margin-bottom: 0px;
}

/* Área das perguntas, timer e botões */
.q-midleft-container {
  justify-self: right;
  /*background: var(--dark);*/
  border: var(--lightBorder);
  width: 1200px;
  height: 100%;
  margin-left: 0px;
  padding: var(--gapAnswers);
  display: grid;
  align-items: start;
}

/* Barra de Progresso */
.q-progress-bar {
  position: relative;
  margin-bottom: 0px;
  display: flex;
  align-items: flex-start;
}

.q-progress-items {
  position: absolute;
  left: 30px;
}

.q-progress-items ul {
  list-style-type: none;
}

.q-progress-item-notsel {
  margin: 10px 10px 10px 10px;
  display: inline;
  font-size: var(--ftSize3);
  visibility: hidden;
}

.q-progress-item-sel {
  margin: 10px 10px 10px 10px;
  display: inline;
  font-size: var(--ftSize3);
  font-weight: 650;
  border-bottom: 1px solid var(--ftColor1);
  transition: all ease-in-out 0.4s;
}

.q-answers-area {
  display: grid;
  grid-template-columns: 45px auto;
  grid-gap: 1px;
}

.q-question {
  font-size: var(--ftSize2);
}

.q-answers-txt,
.q-answers-items {
  list-style: none;
  padding: 0px;
}

.q-answer-item-notsel {
  cursor: pointer;
  background: var(--answerNotSel);
  color: var(--ftColor1);
  text-align: center;
  font-weight: bold;
  padding: var(--heigthAnswers) 0px;
  margin-bottom: var(--gapAnswers);
  -webkit-transition-duration: 0.8s; /* Safari */
  transition-duration: 0.75s;
}

.q-answer-item-sel {
  cursor: pointer;
  background: var(--answerSel);
  color: var(--ftColor2);
  text-align: center;
  font-weight: bold;
  padding: var(--heigthAnswers) 0px;
  margin-bottom: var(--gapAnswers);
  -webkit-transition-duration: 0.8s; /* Safari */
  transition-duration: 0.8s;
}

.q-answer-notsel {
  background: var(--answerNotSel);
  color: var(--ftColor1);
  padding-top: var(--heigthAnswers);
  padding-bottom: var(--heigthAnswers);
  padding-right: 0px;
  padding-left: 10px;
  cursor: pointer;
  margin-bottom: var(--gapAnswers);
  -webkit-transition-duration: 0.8s; /* Safari */
  transition-duration: 0.8s;
}

.q-answer-sel {
  background: var(--answerSel);
  color: var(--ftColor2);
  padding-top: var(--heigthAnswers);
  padding-bottom: var(--heigthAnswers);
  padding-right: 0px;
  padding-left: 14px;
  cursor: pointer;
  margin-bottom: var(--gapAnswers);
  -webkit-transition-duration: 0.8s; /* Safari */
  transition-duration: 0.5s;
}

.q-question-inf-area {
  align-self: end;
  display: grid;
  grid-template-columns: 120px auto auto 400px;
  grid-gap: var(--gapAnswers);
  justify-content: end;
  font-size: var(--ftSize2);
}

.q-timer-area {
  position: relative;
  height: 50px;
  width: 100%;
  box-shadow: inset 2px 2px 2px rgba(55, 55, 55, 0.4);
  display: flex;
  align-items: center;
}

.q-timer-area-normal {
  background-color: var(--light);
  transition-duration: 0.25s;
}

.q-timer-area-alert {
  background-color: var(--backgTimer);
  transition-duration: 0.25s;
}

#q-timer-icon {
  margin-left: 15px;
}

#q-timer {
  margin-left: 10px;
}

button {
  background-color: var(--light);
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
  padding: 0px 25px;
  height: 100%;
  border: none;
  -webkit-transition-duration: 0.2s; /* Safari */
  transition-duration: 0.2s;
}

button:hover {
  background-color: #fff;
  color: black;
}

.bt-conf {
  background: var(--btconf);
  color: white;
}

.bt-disabled {
  background: black;
  color: grey;
  opacity: 0.5;
  pointer-events: none;
}

.bt-pass {
  background: var(--btpass);
  color: white;
}

/* Área para feedback ao jogador - acerto, erro, etc*/
.q-feedback-area {
  height: 100%;
  display: grid;
  grid-gap: 1px;
  grid-template-columns: 1.5fr 0.8fr;
}

.q-feedb-txt {
  height: 100%;
  background: var(--light);
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  padding-top: 12px;
}

.q-feedb-txt-pos {
  color: var(--pointsBarPos);
}

.q-feedb-txt-neg {
  color: var(--pointsBarNeg);
}

/* Área da Pontuação */
.q-midright-container {
  border: var(--lightBorder);
  width: 140px;
  display: flex;
  flex-direction: column;
  padding: var(--gapAnswers);
}

.q-points-title-area {
  position: relative;
  height: 90px;
  background-color: var(--light);
  margin: 20px 0px 1px 0px;
  text-align: center;
}

#q-points {
  margin: 10px 0px 0px 0px;
  font-size: var(--ftSize1);
}

#q-pts-text {
  margin: 0px 0px 0px 0px;
}

.progress-bar-vertical {
  background-color: var(--light);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  margin-right: 10px;
  float: left;
}

.progress-bar-vertical .progress-bar {
  width: 100%;
  -webkit-transition: height 0.6s ease;
  -o-transition: height 0.6s ease;
  transition: height 0.6s ease;
}

.q-pointsbar-pos {
  background: var(--pointsBarPos);
}

.q-pointsbar-neg {
  background: var(--pointsBarNeg);
}

/* Área do botão Sair e Nome do Jogador */
.q-inf-container {
  align-self: end;
  background: var(--dark);
  color: var(--ftColor2);
  height: 70px;
  display: grid;
  grid-gap: 20px;
  grid-template-columns: 120px auto auto;
  align-content: center;
  justify-items: start;
}

.bt-exit {
  position: relative;
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.q-exit-label {
  text-transform: uppercase;
  margin-left: 10px;
}

.q-logo-inf {
  height: 50px;
  margin-right: 10px;
  justify-self: end;
}
