*{
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

html, body {
  position: relative;
  margin: 0;
  padding: 0;
  width: var(--vw, 100vw);
  height: var(--vh, 100vh);
  overflow: hidden;
}

html {
  font-family: sans-serif;
}

.webcam {
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--vw, 100vw);
  height: var(--vh, 100vh);
  object-fit: cover;
  object-position: center;
}

.ui {
  position: fixed;

  margin: 0.5rem;

  background-color: rgba( 255,255,255,0.6 );
  border-radius: 6px;
}

.stats {
  top: 0;
  left: 0;
  z-index: 200;
  margin: 0.5rem;
  padding: 0.5rem 0.5rem 0;
}

.stats-item {
  margin: 0 0 0.5rem;

}

.stats-item-title {
  margin: 0 0 0.25rem;

  font-size: 0.75rem;
}

#stats div {
  position: relative !important;
}

.marker {
  right: 0;
  bottom: 0;
  z-index: 200;
  margin: 0.5rem;
  padding: 0.25rem 0.5rem;

  font-size: 0.75rem;
  color: inherit;
  text-decoration: none;
}

#app {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
}

#video {
  position: absolute;
  top: 0;
  left: 0;

  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

#canvas {
  display: none;
}


#arvideo {
  display: none;
}

.loading {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: url(../img/bg2.png) #fff;
    background-size: cover;
    background-position: center;
    /*background-color: #e9e9e9;*/
    /*background-color: #02051a;*/
    /*background-image: linear-gradient(148deg,#0087e8 19%,#00308f 100%)!important;*/
    transition: opacity 0.5s;
}
.cssload-wrap {
    transform: scale(4.5);
}
.cssload-logo {
    z-index: 1;
    position: absolute;
    bottom: 70px;
    left: calc(50% - 50px);
    width: 100px;
    height: 100px;
    text-align: center;
    color: #fff;
    line-height: 100px;
    transition: opacity 0.5s;
}
.loading-btn {
    z-index: 2;
    position: absolute;
    bottom: 70px;
    left: calc(50% - 45px);
    color: #666;
    width: 91px;
    height: 91px;
    font-size: 20px;
    line-height: 50px;
    /*border: 2px solid #666;*/
    text-align: center;
    background-image: url(../img/btn-start.png);
    background-size: cover;
    background-position: center;
    display: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.linkalert {
    z-index: 1001;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.linkalert-img {
  margin-bottom: 3vh;
  max-width: 90vw;
  max-height: 80vh;
}

.toSafari {
  z-index: 1002;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
}
.toSafari img {
  display: block;
  margin: 0 auto;
  width: 90%;
}

.button-switchCamera {
  z-index: 5;
  position: fixed;
  top: 10px;
  right: 10px;
  width: 130px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 35px;
}
.button-switchCamera-img {
  width: 32px;
  height: 32px;
  background-image: url(../img/icon-switch-camera.png);
  background-size: 100%;
}
.button-switchCamera-text {
  width: calc(100% - 60px);
  text-align: center;
  color: #fff;
  font-size: 12px;
}

.camera-hover {
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.camera-hover-center-center-circle {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url(../img/scan2.png);
  background-size: cover;
  background-position: center;
}
.scan-bar {
  z-index: -1;
  position: fixed;
  top: -20%;
  left: -10%;
  width: 120%;
  opacity: 0.8;
  animation:scan 6s linear infinite;
  -webkit-animation:scan 6s linear infinite;
}

@keyframes scan
{
  from { transform: translateY(0);}
  to {transform: translateY(calc(var(--vh, 100vh) * 1.1));}
}

@-webkit-keyframes scan
{
  from { -webkit-transform: translateY(0);}
  to {-webkit-transform: translateY(calc(var(--vh, 100vh) * 1.1));}
}

.scan-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: #2cf6ef;
  font-size: 24px;
  line-height: 50px;
  font-weight: bold;
  text-align: center;
  background-image: url(../img/btn-scan.png);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.5), 0 0 10px 4px rgba(255, 255, 255, 0.5) inset;
}

.swiper-container {
  z-index: 1;
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  height: 100px;
}
.swiper-slide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pag {
  background-color: #2cf6ef;
}
.pag-active {
  background-color: #2cf6ef;
}

.popup-text {
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: url(../img/bg2.png) rgba(255, 255, 255, 0.5);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.popup-text::before {
  content: '';
  width: 43px;
  min-height: 43px;
}
.popup-text-content {
  margin-bottom: 50px;
  width: 90%;
  font-size: 26px;
  color: #595757;
  max-height: calc(var(--vh, 100vh) * 0.5);
  overflow-x: hidden;
  overflow-y: scroll;
  text-align: center;
}

.btn-close {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  background-image: url(../img/btn-close.png);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.4), 0 0 10px 4px rgba(255, 255, 255, 0.4) inset;
}

.btns-wrapper {
  height: calc(var(--vw, 100vw) * 0.35);
}
.btns {
  padding-top: calc(var(--vw, 100vw) * 0.1);
  display: none;
  align-items: center;
  justify-content: space-between;
}
.btns-4-1 {
  width: calc(var(--vw, 100vw) * 0.9 / 2);
}
.btns-4-2 {
  width: calc(var(--vw, 100vw) * 0.9 / 4 * 3);
}
.btns-4-3 {
  width: calc(var(--vw, 100vw) * 0.8);
}
.btns-4-4 {
  width: calc(var(--vw, 100vw) * 0.9);
}
.btn {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.btns-4-1 .btn, .btns-4-2 .btn, .btns-4-3 .btn{
  width: calc(var(--vw, 100vw) * 0.25);
  height: calc(var(--vw, 100vw) * 0.25);
}
.btns-4-4 .btn{
  width: calc(var(--vw, 100vw) * 0.2);
  height: calc(var(--vw, 100vw) * 0.2);
}

.buttons-image-viewer, .buttons-video-viewer {
  display: none;
}

@media screen and (orientation:portrait) {
  .popup-text {
    justify-content: space-around;
  }
  .image-viewer, .video-viewer{
    max-width: calc(var(--vw, 100vw) * 0.98);
    max-height: calc(var(--vh, 100vh) - 143px);
    object-fit: contain;
    /*box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.3);*/
  }
  .buttons-media-wrapper {
    width: calc(var(--vw, 100vw) * 0.98)
    height: calc(var(--vh, 100vh) - 143px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .buttons-media-viewer  {
    width: calc(var(--vw, 100vw) * 0.98);
    height: calc(var(--vh, 100vh) - 143px - 35vw);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .buttons-image-viewer, .buttons-video-viewer{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    /*box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.3);*/
  }
}
@media screen and (orientation:landscape) {
  .popup-text {
    flex-direction: row;
    justify-content: space-around;
    background: url(../img/bg2-landscape.png) rgba(255, 255, 255, 0.5);
    background-size: cover;
    background-position: center;
  }
  .image-viewer, .video-viewer {
    max-width: calc(var(--vw, 100vw) - 143px);
    max-height: calc(var(--vh, 100vh) * 0.98);
    object-fit: contain;
    /*box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.3);*/
  }
  .buttons-media-wrapper {
    width: calc(var(--vw, 100vw) - 143px);
    height: calc(var(--vh, 100vh) * 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .buttons-media-viewer  {
    width: calc(var(--vw, 100vw) - 143px);
    height: calc(var(--vh, 100vh) * 0.98 - 20vw);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .buttons-image-viewer, .buttons-video-viewer{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    /*box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.3);*/
  }

  .btns-wrapper {
    height: calc(var(--vw, 100vw) * 0.2);
  }
  .btns {
    padding-top: calc(var(--vw, 100vw) * 0.05);
  }
  .btns-4-1 {
    width: calc(var(--vw, 100vw) * 0.5 / 2);
  }
  .btns-4-2 {
    width: calc(var(--vw, 100vw) * 0.5 / 4 * 3);
  }
  .btns-4-3 {
    width: calc(var(--vw, 100vw) * 0.65);
  }
  .btns-4-4 {
    width: calc(var(--vw, 100vw) * 0.5);
  }
  .btns-4-1 .btn, .btns-4-2 .btn, .btns-4-3 .btn{
    width: calc(var(--vw, 100vw) * 0.15);
    height: calc(var(--vw, 100vw) * 0.15);
  }
  .btns-4-4 .btn{
    width: calc(var(--vw, 100vw) * 0.1);
    height: calc(var(--vw, 100vw) * 0.1);
  }
}

.login-wrapper {
  padding: 20px;
  background-color: #333;
  text-align: center;
  border-radius: 20px;
}
.form-group {
  padding: 10px 0;
  font-weight: bold;
  line-height: 24px;
}
.form-label {
  display: inline-block;
  width: 70px;
  text-align: left;
}
.form-group input {
  padding: 5px 0;
  line-height: 24px;
  font-size: 18px;
  width: 250px;
  text-indent: 0.5em;
  outline: none;
  border: none;
  color: #333;
  background-color: #eee;
  user-select: auto;
  -webkit-user-select: auto;
}
.form-group input:focus {
  background-color: #fff;
}
#code {
  width: 150px;
}
.login-btn {
  margin-left: 5px;
  padding: 5px 10px;
  line-height: 24px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
}

.pending-gif {
  position: absolute;
  top: calc(36vh - 100px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 200px;
  height: 200px;
  background-image: url(../img/loading.gif);
  background-size: cover;
  background-position: center;
  display: none;
}


