@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#quizBackground {
  background-image: url('./assets/back.png');
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.bgObject {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

#quizContainer {
  display: flex;
  justify-content: center;
}

.whitecover {
  margin-top: 4rem;
  position: relative;
  height: 80vh;
  width: 60vw;
  background-color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.header {
  position: absolute;
  right: 0vw;
  top: 0vh;
  height: 4vh;
  width: 60vw;
  background-color: rgba(51, 56, 233, 0.7);
}

#root,
#fakeroot {
  position: absolute;
  left: 0.5vw;
  top: 1vh;
  height: 80vh;
  width: 60vw;
  display: flex;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.7);
}

#fakeroot {
  background-color: rgb(235, 235, 235);
}

#root div,
#fakeroot div {
  display: flex;
  flex-direction: column;

  align-items: center;
}

#h1Start {
  margin-top: 8rem;
  width: 50vw;
  font-size: 4rem;
  text-align: center;
}

#h1Start span {
  display: block;
  font-size: 2.5rem;
  font-weight: normal;
  text-align: center;
}

#btnStart {
  background-color: black;
  border: 2px solid white;
  display: inline-block;
  color: white;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  font-weight: bold;
  font-size: 3rem;
  box-shadow: 2px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

#counterDisplay,
.questionCount {
  background-color: black;
  border: 2px solid white;
  display: inline-block;
  color: white;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  position: absolute;
  top: 1vh;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 0;
  margin: 0;
  text-align: center;
  box-shadow: 2px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.questionCount {
  left: 1vw;
}

#counterDisplay {
  right: 1vw;
  font-size: 3rem;
}

#scoreDisplay {
  font-size: 1.8rem;
  border-bottom: 1px dotted rgba(51, 56, 233, 0.7);
}

.question {
  font-weight: bold;
  font-size: 1.6rem;
  margin: 9rem 1rem 0 1rem;
}

#answerList {
  font-size: 1.6rem;
  font-weight: normal;
  padding: 0;
  margin: 1rem 1rem;
}

#answerList li {
  margin: 1rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.answer-item span {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(51, 56, 233);
  background-color: rgba(51, 56, 233, 0.7);
  color: white;
  margin-right: 10px;
}

.correct {
  font-weight: bold;
  color: green;
}

.correct span {
  background-color: rgba(0, 128, 0, 0.7);
  border-color: rgb(0, 128, 0);
  font-weight: normal;
}

.wrong {
  color: red;
}

.wrong span {
  border-color: red;
  background-color: rgba(255, 0, 0, 0.7);
}

.pass {
  color: purple;
}

.pass span {
  border-color: purple;
  background-color: rgba(225, 0, 255, 0.7);
}

#btnNext,
#btnSkip {
  color: white;
  cursor: pointer;
  width: 180px;
  height: 40px;
  background-color: black;
  border: 2px solid white;
  border-radius: 7px;
  font-size: 1.2rem;
}

#btnSkip {
  left: 24vw;
}
#hint {
  width: 35vw;
  padding: 10px;
  text-align: center;
  font-size: 1.2rem;
  color: blue;
}
#hint::before {
  content: 'Hints about subject';
  color: black;
  font-style: italic;
  margin-bottom: 10px;
  display: block;
}

#hint * {
  font-style: italic;
  color: blue;
}

#hint a {
  margin: 0.3rem;
}

.scrollable {
  height: auto;
  max-height: 80vh;
  overflow: auto;
}

ul {
  list-style: none;
}

.disabled {
  pointer-events: none;
}

h1.results {
  font-weight: bold;
  font-size: 2rem;
  margin-top: 2rem;
}

.resultNumber {
  padding: 0.5rem 1rem;
  border-radius: 50%;
  text-align: center;
  font-size: 1rem;
  border: 1px solid black;
  background-color: black;
  color: white;
  margin-right: 10px;
}

div.results {
  display: block !important;
  overflow-y: scroll;
}

.results p {
  margin: 1rem 1rem;
}

.results .correct {
  font-weight: bold;
}

p.correct,
p.wrong {
  margin-left: 5rem !important;
}

div.results * {
  font-size: 1.5rem;
  font-weight: normal;
}

#btnRestart {
  background-color: black;
  border: 2px solid white;
  display: inline-block;
  color: white;
  border-radius: 50%;
  width: 150px !important;
  height: 120px !important;
  font-weight: bold;
  font-size: 2rem;
  box-shadow: 2px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  margin: 1rem;
}

.displayNone {
  display: none;
}

@media (max-width: 960px) {
  .bgObject {
    height: 100vh;
    object-fit: contain;
  }

  .whitecover {
    margin-top: 3rem;
    width: 80vw;
  }

  .header {
    width: 80vw;
  }

  #root,
  #fakeroot {
    width: 80vw;
  }

  #h1Start {
    font-size: 3rem;
  }

  #h1Start span {
    font-size: 1.5rem;
  }

  #btnStart {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  #counterDisplay,
  .questionCount {
    width: 80px;
    height: 80px;
    font-size: 1.2rem;
  }

  #counterDisplay {
    right: 1vw;
    font-size: 2rem;
  }

  #scoreDisplay {
    font-size: 1.4rem;
  }

  .question {
    font-size: 1.1rem;
    margin-top: 7rem;
  }

  #answerList {
    font-size: 1.2rem;
  }

  #answerList li {
    margin: 0.8rem 0;
  }

  .answer-item span {
    width: 1.4rem;
    height: 1.4rem;
  }

  #btnNext,
  #btnSkip {
    width: 180px;
    height: 35px;
    font-size: 1rem;
  }

  #hint {
    font-size: 0.8rem;
  }

  h1.results {
    font-size: 1.5rem;
    margin-top: 1.5rem;
  }

  .resultNumber {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }

  .results p {
    margin: 0.9rem;
  }

  p.correct,
  p.wrong {
    margin-left: 3rem !important;
  }

  div.results * {
    font-size: 1.2rem;
  }

  #btnRestart {
    width: 100px !important;
    height: 90px !important;

    font-size: 1.5rem;
  }

  .displayNone {
    display: none;
  }
}
