/* Copyright 2020 by Qbic Studio | www.qbic.pl. All rights reserved */
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700&display=swap&subset=latin-ext');

:root {
  --color1: #000;
  --color2: #4fbd54;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #f7f7f7;
  font: 300 17px/1.4 'Lato', sans-serif;
}

#wrapperQua {
  width: 50vw;
  min-width: 620px;
  max-width: 800px;
  min-height: 100%;
  background: #fff;
  padding: 40px;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, .1);
}

@media screen and (max-width:799px) {
  #wrapperQua {
    width: calc(100vw - 40px);
  }
}

#wrapperQua h1 {
  font-size: 50px;
  font-weight: 300;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color2);
}

#wrapperQua h3 {
  font-size: 22px;
  font-weight: 400;
  display: block;
  margin-bottom: 20px;
}

div.h-sep {
  height: 1px;
  margin-bottom: 30px;
}

#wrapperQua #results {
  margin-top: 30px;
}

#wrapperQua p {
  margin: 20px 0;
}

#wrapperQua hr {
  display: block;
  margin: 20px 0;
  height: 0;
  width: 100%;
  background: none;
  border-width: 1px 0 0 0;
  border-style: solid;
  border-color: var(--color2);
}

#wrapperQua .a-center {
  text-align: center;
}

#wrapperQua .a-right {
  text-align: right;
}

#wrapperQua ul {
  list-style: none;
  margin-left: 30px;
}

#wrapperQua ul li::before {
  content: "\2022";
  color: var(--color2);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

#wrapperQua a {
  color: var(--color1);
  text-decoration: none;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-property: color, background, border-color;
}

#wrapperQua a:hover {
  color: var(--color2);
}

#wrapperQua .button {
  display: inline-block;
  background: var(--color2);
  border-color: var(--color2);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  padding: 12px 20px;
}

#wrapperQua .button:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

#wrapperQua .button.i {
  background: #000;
  text-transform: none;
}

#wrapperQua .button.i:hover {
  background: var(--color2);
}

#wrapperQua .row {
  display: flex;
  margin-bottom: 20px;
}

#wrapperQua .row .cell {
  display: flex;
  align-items: center;
  /* border: 1px dotted red; */
}

#wrapperQua .row .cell:first-child {
  flex: 1;
  font-weight: 700;
}

#wrapperQua .row .cell:nth-child(2) {
  flex: 2;
}

@media screen and (max-width:499px) {
  #wrapperQua .row {
    flex-direction: column;
  }

  #wrapperQua .row .cell:nth-child(2) {
    margin-top: 5px;
  }
}

form label {
  font-weight: 400;
}

#wrapperQua .sep {
  display: inline-block;
  margin: 0 15px;
  color: #7a7a7a;
}

.input {
  width: 100%;
  padding: 7px;
  font: 300 17px/1 'Lato', sans-serif;
  background: #fff;
  border: 1px solid #ccc;
  transition: background 300ms ease;
}

.input[type="radio"] {
  margin-left: 5px;
  width: auto;
}

.input:focus {
  background: rgba(79, 189, 84, .1);
}

.color-red {
  color: red;
}

.color-gray {
  color: #7a7a7a
}

.color-2 {
  color: var(--color2);
}

.bold {
  font-weight: 400;
}

.bolder {
  font-weight: 700;
}

.big {
  font-size: 140%;
}

.lower {
  text-transform: lowercase;
}

#wrapperQua p.error {
  padding: 0;
  margin: 30px 0;
  color: red;
  font-weight: 400;
}

#quaBoxWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 30px;
}

#quaBoxWrapper h2 {
  display: block;
  font-size: 130px;
  color: var(--color2);
  line-height: 1;
  animation: showNumber 600ms ease-in-out;
  will-change: transform, opacity;
}

@keyframes showNumber {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

#quaBox {
  display: flex;
  flex-flow: row wrap;
  width: 120px;
  height: 120px;
  margin-left: 30px;
  animation: showQuaBox 600ms ease-in-out;
  will-change: transform, opacity;
}

@keyframes showQuaBox {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

#quaBox div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #fff;
}

#quaBox div.box {
  background: rgba(79, 189, 84, .3);
}

#quaBox div.box.a {
  background: rgba(79, 189, 84, 1);
}

#quaBox div.box span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

#quaBox div.box span.r1 {
  transform: rotate(-45deg);
  font-size: 13px;
}

#quaBox div.box span.r2 {
  transform: rotate(45deg);
  font-size: 13px;
}