/*****************************************************************************/

html {
  box-sizing: border-box;
}
html *::before,
html *::after,
html * {
  box-sizing: inherit;
}

/*****************************************************************************/

html,
body {
  font: 100% / 1.33 sans-serif;
  margin: 0;
  min-height: 100%;
  color: #3f3f3f;
  background-color: #92d3f5;
}

body {
  padding: 0.33em 0.66em;
  padding-top: max(env(safe-area-inset-top), 0.33em);
  padding-bottom: max(env(safe-area-inset-bottom), 0.33em);
  padding-left: max(env(safe-area-inset-left), 0.66em);
  padding-right: max(env(safe-area-inset-right), 0.66em);
  max-width: 33em;
  margin: 0 auto;
}

*:focus {
  outline: 4px solid #61b2e4;
}

/*****************************************************************************/

.logo {
  margin: 1rem 0;
}
.logo--link:visited,
.logo--link:link,
.logo--link {
  display: block;
  min-height: 3em;
  color: #000;
  text-align: center;
  text-decoration: none;
}
.logo--link::before {
  content: '';
  display: inline-block;
  width: 3em;
  height: 3em;
  vertical-align: middle;
  background: url(./letterchecker-logo.svg) center center no-repeat;
  background-size: 100% auto;
}

/*****************************************************************************/

.staat {
  padding: 1.5em;
  text-align: center;
  min-height: 12em;
}
.staat--icoon {
  display: block;
  margin: auto;
}

.staat.is-ja .staat--icoon {
  animation: tada 0.66s 1 ease;
}
.staat.is-deels .staat--icoon {
  animation: pulse 0.66s 1 ease;
}
.staat.is-nee .staat--icoon {
  animation: shake 0.66s 1 ease;
}
.staat[hidden] .staat--icoon {
  animation: none;
}

@keyframes tada {
  0%,
  100% {
    transform: scale(1) rotate(0);
  }
  10%,
  20% {
    transform: scale(0.9) rotate(-3deg);
  }
  30%,
  50%,
  70%,
  90% {
    transform: scale(1.1) rotate(3deg);
  }
  40%,
  60%,
  80% {
    transform: scale(1.1) rotate(-3deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  20%,
  60% {
    transform: scale(0.9);
  }
  40%,
  80% {
    transform: scale(1);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6%);
  }
  40%,
  80% {
    transform: translateX(6%);
  }
}
/*****************************************************************************/

.form--label {
  flex: 1 0 100%;
  display: block;
  padding: 0.33em;
  line-height: 1;
}
.form--vraag {
  display: flex;
}
.form--input,
.form--submit {
  border: 2px solid #000;
  border-radius: 4px;
  padding: 0.33em;
  margin: 0.11em;
  font-size: 1.33rem;
}
.form--input {
  width: 66%;
  max-width: 100%;
  flex: 1 1 100%;
  text-align: center;
  color: #000;
  background-color: #fff;
  -webkit-appearance: none;
}
.form--submit {
  flex: 1 0 auto;
  color: #fff;
  background-color: #000;
}

/*****************************************************************************/

.reeks {
  display: flex;
  padding: 1em 0;
  align-items: center;
}
.reeks--label {
  padding: 0.33em;
}
.reeks--letter-select {
  border: 2px solid #000;
  border-radius: 4px;
  padding: 0.33em;
  font-size: 1.33rem;
  min-width: 3em;
}
.reeks--inhoud {
  margin-inline-start: 1em;
  font: 1.33rem / 1 monospace;
}

/*****************************************************************************/

.over--schakelaar {
  text-align: center;
  cursor: pointer;
}
