* {
  box-sizing: border-box;
  color: #212121;
  font-family: sans-serif;
  text-align: center;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;  /* disables rubber band scrolling on desktop */
  -webkit-font-smoothing: antialiased;
}

p {
  margin-top: 0;
  margin-bottom: 1.7rem;
}

#wrapper {
  left: 50%;
  margin-left: 0;
  margin-top: 0;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

/* --------------------------- CORRECT ANSWER BAR --------------------------- */

#correctBar {
  background-color: #E3F9E0;
  height: 0.5rem;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
}

#percentage {
  background-color: #AEEAA8;
  height: 100%;
  width: 0%;
}

/* --------------------------- QUESTION AND HINT --------------------------- */

#question {
  font-size: 4rem;
  min-height: 5rem;
}

#hint {
  cursor: pointer;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  min-height: 2rem;
  user-select: none;
}


/* -------------------------------- BUTTONS -------------------------------- */

.answer {
  margin: 0.5rem 0.5rem 1rem 0.5rem;
  width: 7rem;
}

.button {
  border: 1px solid #212121;
  border-radius: 5px;
  cursor: pointer;
  height: 3.2rem;
  padding: 1rem;
  user-select: none;
}

.button:hover {
  background-color: #EFF9F9;
}

.button:active {
  background-color: #B2EAEA;
}

.clicked {
  background-color: #B2EAEA;
}

.clicked:hover {
  background-color: #B2EAEA;
}

.clicked:active {
  background-color: #EFF9F9;
}

.wrong {
  background-color: #EAA1A1;
}

.correct {
  background-color: #AEEAA8;
}

#controleer {

}

#uitleg {

}

.bottomButton {
  margin: 1rem auto 0 auto;
  width: 15rem;
}


/* ---------------- CHAPTER SELECT, CORRECTOVERLAY EN UITLEG ---------------- */

#chapterSelect {
  padding-top: 2rem;
}

#correctOverlay {
  background-color: #AEEAA8;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}

#uitlegOverlay {
  line-height: 1.5rem;
}

.manyAnswers {
  padding-top: 0.3rem
}

.fewAnswers {
  padding-top: 1.5rem
}

.noBottomMargin {
  margin-bottom: 0.5rem;
}

.middleBlock {
  height: 21.5rem;
  margin: 0 auto;
  width: 16rem;
}

.answerTags {
  line-height: 3.3rem;
}

.answerTag {
  background-color: #AEEAA8;
  border: 1px solid #212121;
  border-radius: 5px;
  color: #212121;
  font-size: 1.3rem;
  font-weight: 300;
  margin: 0px 5px;
  padding: 8px;
}


/* --------------------------- VISIBILITY OPTIONS --------------------------- */

.isHidden {
  display: none;
}

.isShownFlex {
  display: flex;
}

.isShownBlock {
  display: block;
}


/* ----------------------------- MEDIA QUERIES ----------------------------- */

@media screen and (max-width: 350px) {
    html {
        font-size: 80%;
    }
}

@media screen and (min-width: 351px) and (max-width: 400px) {
    html {
        font-size: 90%;
    }
}


/* -------------------------- TICK MARK ANIMATION -------------------------- */

#checkWrapper {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-40%);
}

#check {
  fill: none;
  stroke: #ffffff;
  stroke-width: 20;
  stroke-dasharray: 288;
  stroke-dashoffset: 288;
  -webkit-animation: draw 0.8s 1 ease;
  animation: draw 0.8s 1 ease;
  animation-fill-mode: forwards;
}
-webkit-@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
