: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%;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  color: var(--foreground-color);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 30px;
  padding-right: 30px;
  text-align: center;
}

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

#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;
}

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

@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 {
  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 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;
}

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

button {
  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;
}

#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 {
  font-size: 18px;
  letter-spacing: 0.9px;
  line-height: 36px;
  margin-bottom: 300px;
  font-weight: normal;
}

#camera-error {
  display: none;
}

#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 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;
}

#ui{
  display:flex;
  background-color: transparent;
  justify-content: end;
  align-items: stretch;
}

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

#ui .audio-toggle {
  position: absolute;
  top: 90px;
  left: 50px;
  width: 24;
  height: 19px;
}

#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:5px;
}

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

#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 button {
  margin-top:30px;
}

#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 {
  margin-top: 27px;
  margin-bottom: 27px;
  font-size: 10px;
  color: var(--foreground-color);
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 27px;
}

.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;
}

@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;
}
@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;
  }
}
