* {
  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%);
}

.middleBlock {
  margin: 0 auto;
  width: auto;
  max-width: 40rem;
}

/* --------------------------- 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: 3rem;
  min-height: 4rem;
}

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


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

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

#conj {
  margin-bottom: 5.25rem;
}

.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;
}

.fatBorder {
  border-color: rgba(33, 33, 33, 0.66);
  border-width: 0.3rem;
  padding: 0.7rem;
}

.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;
  padding-bottom: 1.5rem;
}

#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;
}

.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) and (orientation : portrait) {
    html {
      font-size: 80%;
    }

    #person {
      display: block;
      margin: 0 auto;
    }

    #tense {
      display: block;
      margin: 0 auto;
    }

    .width100 {
      width: 100%
    }

    .centerBlock {
      display: block;
      margin-left: auto;
      margin-right: auto;
    }
}

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

@media screen and (max-height: 320px) and (orientation : landscape) {
    html {
        font-size: 60%;
    }

    #person {
      display: flex;
    }

    #tense {
      display: flex;
    }

    #conj {
      margin-bottom: 1rem;
    }
}

@media screen and (min-height: 321px) and (max-height: 420px) and (orientation : landscape) {
    html {
        font-size: 70%;
    }

    #person {
      display: flex;
    }

    #tense {
      display: flex;
    }

    #conj {
      margin-bottom: 1rem;
    }
}

@media screen and (min-height: 421px) and (max-height: 660px) and (orientation : landscape) {
    html {
        font-size: 80%;
    }

    #person {
      display: flex;
    }

    #tense {
      display: flex;
    }

    #conj {
      margin-bottom: 1rem;
    }
}

/*@media screen and (min-width: 571px) {
  #modevoice {
    display: flex;
  }
}*/



/* -------------------------- 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;
  }
}
