:root {
  --main: #33aaff;
  --secondary: #ececec;
  --success: #1ce036;
  --failure: #da1d1d;
}
* {
  margin: 0;
  padding: 0;
  font-family: Sans;
  box-sizing: border-box;
}
html {
  min-height: 100vh;
}
body {
  width: 100%;
  min-height: 100vh;
}
main {
  min-height: calc(100% - 105px);
  padding: 1rem;
}
header {
  background-color: var(--secondary);
  height: 80px;
  width: 100%;
  position: relative;
  z-index: 102;
  left: 0px;
  margin-bottom: 25px;
  border-bottom: 6px solid var(--main);
  top: 0px;
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
}
a,
a:visited {
  color: black;
}
main,
.home,
.results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 2em;
  margin-top: 2em;
}
.home,
.results {
  margin-top: 0;
}
.home p:last-child,
.results p:last-of-type {
  font-size: 0.8rem;
  color: #555;
  font-style: italic;
}
input {
  height: 2rem;
  font-size: 1.6rem;
  flex: 1 0 auto;
  width: 50%;
}
label {
  width: 100%;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
label button {
  width: 2rem;
  height: 2rem;
}
#html5qr-code-full-region {
  width: min(100vw, 500px);
  position: relative;
  padding: 0px;
  display: inline-block;
  border: 0 !important;
}
#start-scan {
  width: 8rem;
  height: 8rem;
  background: var(--secondary);
  border: 6px solid var(--main);
  border-radius: 100%;
  font-size: 0;
}
#start-scan img {
  width: 5rem;
  height: 5rem;
}
.results div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 2rem;
}
.results div button {
  width: 8rem;
  height: 8rem;
  background: var(--secondary);
  border-radius: 100%;
  font-size: 0;
}
.results div button img {
  width: 5rem;
  height: 5rem;
}
.results div button#validate-results {
  border: 6px solid var(--success);
}
.results div button#discard-results {
  border: 6px solid var(--failure);
}
#modal {
  padding: 1.5em;
  position: fixed;
  bottom: 4em;
  left: 1rem;
  right: 1rem;
  border: ;
  background: rgb(40, 187, 72);
  border-radius: 2em;
  box-shadow: 5px 5px 20px -5px #000;
}
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
}
.lds-ring {
  display: inline-block;
  position: relative;
  width: 150px;
  height: 150px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  margin: 8px;
  border: 8px solid var(--main);
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--main) transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
dl {
  width: min(90%, 500px);
}
dd,
dt {
  display: block;
}
dt {
  font-size: 0.95em;
  color: #555;
  text-transform: lowercase;
  font-variant: small-caps;
  border-top: 1px dotted rgba(0, 0, 0);
  padding-top: 0.5rem;
}
dt:first-child {
  border: 0;
}
dd {
  margin-left: 33%;
  text-align: right;
  min-height: 1em;
}
.hidden {
  display: none !important;
}
