:root {
  --foreground-color: #fff;
  --background-color: #000;
  --background-opacity: 0.7;
  --loading-color: #999;
  --loading-foreground-color: #fff;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background-color: var(--background-color);
}

#main-container {
  display: none;
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
}

#permissions div h1 {
  font-size: 18px;
  letter-spacing: 0.9px;
  line-height: 36px;
  font-weight: normal;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  color: var(--foreground-color);
  display: none;
  text-align: center;
}

button {
  color: var(--background-color);
  padding: 20px 40px 20px 40px;
  border-radius: 50px;
  text-transform: uppercase;
  font-size: 10px;
  border: 0;
  height: 55px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.87;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.44px;
}

#ui {
  display: none;
  background-color: transparent;
  z-index: 999;
  opacity: 0;
}

#ui .dots {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

#ui .dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  border: 1px solid var(--foreground-color);
}

#ui .dots .dot.active {
  background-color: var(--foreground-color);
}

button.black {
  background-color: var(--background-color);
  color: var(--foreground-color);
}

#ui .bold {
  font-size: 24px;
  letter-spacing: 1.2px;
  margin-top: 3px;
}

#ui p {
  margin-top: 0px;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.9px;
}

#ui a,
#ui a:hover,
#ui a:active,
#ui a:focus,
#ui a:visited {
  font-size: 10px;
  color: var(--foreground-color);
  text-decoration: none;
  letter-spacing: 1px;
}

.bkg {
  background-image: url("../data/img/bg.png");
  background-size: cover;
  background-position: 50% 50%;
}

#splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#splash .loader {
  width: 100px;
  height: 2px;
  background-color: var(--loading-color);
  margin-top: 50px;
  position: absolute;
  left: 50%;
  margin-left: -50px;
}

#splash .loader .progress {
  width: 100%;
  height: 4px;
  background-color: var(--loading-foreground-color);
  position: absolute;
  top: -1px;
  left: 50%;
  margin-left: -50%;
  transform: scaleX(0%);
}

#start::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  opacity: var(--background-opacity);
  z-index: -1;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

@media(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .bkg {
    background-image: url("../data/img/bg@2x.png");
  }
}

@media(-webkit-min-device-pixel-ratio: 3),
(min-resolution: 192dpi) {
  .bkg {
    background-image: url("../data/img/bg@3x.png");
  }
}

#start div img {
  margin: auto;
  margin-bottom: 64px;
  width: 184;
}

#start div h1 {
  margin-bottom: 21px;
  font-size: 31px;
  letter-spacing: 1.65px;
  line-height: 36px;
}

#start div p {
  margin-bottom: 31px;
  font-size: 16px;
  letter-spacing: 0.8px;
  line-height: 26px;
}

#unsupported {
  display: none;
}

#unsupported::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  opacity: var(--background-opacity);
  z-index: -1;
}

#unsupported div {
  display: flex;
  flex-direction: column;
  width: 100%;
}


#unsupported img {
  margin: auto;
  margin-bottom: 40px;
}

#unsupported h1 {
  font-size: 40px;
  letter-spacing: 2px;
  line-height: 36px;
  margin-bottom: 16px;
}

#unsupported p {
  font-size: 16px;
  letter-spacing: 0.8px;
  line-height: 26px;
  margin-bottom: 32px;
}

#unsupported button {
  margin-bottom: 30px;
}


#camera-error {
  display: none;
}

#camera-error div.fill-h {
  justify-content: space-between;
  display:flex;
  height: 100%;
  margin-top:70px;
  margin-bottom: 70px;
}


#camera-error h1 {
  font-size: 18px;
  letter-spacing: 0.9px;
  line-height: 36px;
  font-weight: normal;
}

#camera-error img {
  margin-left: auto;
  margin-right: auto;
}

@media (orientation: landscape) {
  #start div {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  #start div img {
    margin-bottom: 14px;
  }

  #permissions div {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  #ui .header {
    position: absolute;
    right: 40px;
    top: 25px;
  }

  #ui .audio-toggle {
    position: absolute;
    left: 63px;
    top: 30px;
    width: 54px;
    height: 54px;
  }

  #ui .bottom {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: flex-end;
    margin-left: 60px;
    margin-right: 40px;
    margin-bottom: 25px;
  }

  #ui .selector {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-content: space-around;
    justify-content: center;
  }

  #ui .bottom a button {
    margin-bottom: 13px;
  }

  .selector_container{
    min-width: 300px;
  }

  #ui .dots {
    margin-top: 34px;
    margin-bottom: 20px;
  }

  #ui .selector div:first-child,
  #ui .selector div:last-child {
    transform: translate(0, 65px)
  }

  #ui .selector #selector_current {
    flex-grow: 1;
  }
}

@media (orientation: portrait) {

  .ui {
    justify-content: end;
    align-items: stretch;
  }

  .page {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 30px;
    padding-right: 30px;
  }

  .page > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }


  #start {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;

    color: var(--foreground-color);
    opacity: 0;
    padding-left: 30px;
    padding-right: 30px;
  }

  #start div {
    display: flex;
    flex-direction: column;
  }

  #permissions {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: start;
    background-color: var(--background-color);
    color: var(--foreground-color);
    text-align: center;
    opacity: 0;
  }

  #permissions div {
    height: 100%;
    justify-content: start;
    align-content: flex-start;
  }

  #permissions img {
    width: 120px;
    height: 102px;
    margin: auto;
    margin-bottom: 66px;
    margin-top: 70px;
  }

  #permissions h1 {
    
    margin-bottom: 300px;
    font-weight: normal;
  }

  #ui.page {
    justify-content: flex-end;
    margin-left: 0;
    margin-right: 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  #ui .bottom {
    width: 100%;
  }

  #ui .header {
    position: absolute;
    top: 72px;
    left: 50%;
    width: 120px;
    margin-left: -60px;
  }

  #ui .audio-toggle {
    position: absolute;
    top: 72px;
    left: 30px;
    width: 54px;
    height: 54px;
  }

  #ui .selector {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  #ui .selector div {
    min-height: 80px;
    justify-content: end;
  }

  #ui .selector div:first-child,
  #ui .selector div:last-child {
    margin-bottom: -10px;
  }

  #ui .selector #selector_current {
    flex-grow: 1;
  }

  #ui a,
  #ui a:hover,
  #ui a:active,
  #ui a:focus,
  #ui a:visited {
    /* margin-top: 27px;
    margin-bottom: 27px; */
  }

  .ar-ui-scanning {
    /* margin-top:200px !important; */
  }

  #ui .bottom .flex-col a:first-child {
    margin-top: 30px;
  }

  #ui .bottom .flex-col a:last-child {
    margin-bottom: 27px;
    margin-top: 27px;
  }

}

.flip {
  transform: rotateY(180deg);
}

.fade-in {
  animation: fadeIn ease 1s forwards;
  -webkit-animation: fadeIn ease 1s forwards;
  -moz-animation: fadeIn ease 1s forwards;
  -o-animation: fadeIn ease 1s forwards;
  -ms-animation: fadeIn ease 1s forwards;
}

.a-loader-title {
  color: transparent;
}

@keyframes loading {
  0% {
    transform: scaleX(0%);
  }

  100% {
    transform: scaleX(100%);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-moz-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-o-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-ms-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.fade-out {
  animation: fadeOut ease 0.8s;
  -webkit-animation: fadeOut ease 0.8s;
  -moz-animation: fadeOut ease 0.8s;
  -o-animation: fadeOut ease 0.8s;
  -ms-animation: fadeOut ease 0.8s;
}

.ar-ui-scanning {
  background: url('img/mirino.svg') !important;
  background-repeat: no-repeat;
  background-size: 100% 100% !important;
  width: 80% !important;
  height: 70% !important;
  color: var(--foreground-color) !important;
  font-size: 18px;
  letter-spacing: 0.9px;
}

.ar-ui-scanning p {
  margin-top: 130px;
}

.ar-ui-scanning::before, .ar-ui-scanning::after {
  content: none !important;
  animation: none !important;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@-moz-keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@-webkit-keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@-o-keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@-ms-keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}