* {
  box-sizing: border-box;
}

body {
  background: #eee;
  margin: 0;
  font-family: Sahitya;
  font-size: calc(.8rem + 1vw);
  color: #53565a;
}
h1 {
  margin-bottom:0;
}
body section {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  max-width: 24em;
  min-height: 100vh;
  margin: auto;
  padding: 1em;
  align-items: center;
  align-content: center;
}
body section h1 {
  font-size: 1.8em;
  margin: 0;
  line-height: 0.9;
}
body section h4 {
  font-size: 0.7em;
  font-weight: normal;
  margin: 0.5em 0 32px;
}
body section .group, body section .boxgroup {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 1em;
}
body section .group label, body section .boxgroup label {
  flex: 1 0 auto;
  line-height: 2;
  position: relative;
  top: 0em;
  border-bottom: 1px solid #53565a;
}
body section .group input, body section .boxgroup input {
  flex: 10 0 auto;
  padding: 0 0 0.1em 0.5em;
  font-family: Sahitya;
  font-size: 22px;
  border: none;
  border-bottom: 1px solid #53565a;
  background: none;
  margin: 0;
  text-align: right;
}
body section .group input:focus, body section .boxgroup input:focus {
  outline: none;
}
body section .boxgroup {
  width: 100%;
  justify-content: flex-start;
}
body section .boxgroup label {
  text-align: left;
  flex: 10 0 auto;
  padding-left: 1.2em;
}
body section .boxgroup label:before {
  content: "";
  font-size: 120%;
  line-height: 0.5em;
  width: 0.6em;
  text-indent: 0.075em;
  height: 0.6em;
  border: 1px solid #53565a;
  position: absolute;
  left: 0;
  bottom: 0.5em;
}
body section .boxgroup label.checked {
  font-weight: bold;
}
body section .boxgroup label.checked:before {
  content: "x";
}
body section .boxgroup input {
  width: auto;
  flex: 1 0 auto;
  margin: 0.32em 0.4em 0 0;
  border-bottom: 1px solid black !important;
  display: none;
}
body section button {
  font-family: Sahitya;
  padding: 0.5em 1em;
  font-size: 18px;
  margin-top: 32px;
  background: #53565a;
  border: 1px solid #53565a;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
body section button:hover {
  background: #a7a8aa;
  transform: scale(1.1);
}
body section button:focus {
  outline: none;
  background: #ffd100;
  color: #53565a;
}
body section #result {
  width: 100%;
  height: 1em;
  line-height: 1em;
  font-size: 36px;
  text-align: left;
  margin-top: 0.5em;
}
body section #result .error {
  color: red;
  font-size: 40%;
  line-height: 0.4em;
  animate: bounce 0.5s ease-in-out forward;
}

@-webkit-keyframes bounce {
  0% {
    transform: translateY(-0.25em);
  }
  25% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.25em);
  }
  75% {
    transform: translateY(0);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(-0.25em);
  }
  25% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.25em);
  }
  75% {
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  body section .group label, body section .boxgroup label {
    width: 100%;
    border: none;
  }

  body section .group input {
    text-align: left;
  }
}

.article {
  padding:0 10%;
}