
body {
    margin: 0px auto;
    padding: 0px;
    /* max-width: 500px; */
}
.preview-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #eee;
}
.preview-layer {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    width: 100vw;
    height: 100vh;
}
.preview-canvas {
}
.preview-video {
    object-fit:cover;
}
.preview-anchors{
    position: relative;
}
.preview-anchors-sign{
    position: absolute;
    color: green;
    z-index: 10;
}
/* .preview-anchors-sign::before{
    content: "\e6a6";
    font-family: "iconfont" !important;
    font-size: 30px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    top: -10px;
    left: -10px;
} */
.preview-anchors-sign{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: green url('/image/right-arrow.png') center center no-repeat;
    background-size: 80% 80%;
}

.preview-anchors-sign.select{
    animation:sign-breathe 1s linear infinite alternate;
}

@keyframes sign-breathe {
    100%{
        transform: scale(1.5);
    }
}

.preview-mask{
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    opacity: 0;
}
.preview-tip{
    color: #fff;
    position: absolute;
    bottom:20%;
    left: 0;
    right: 0;
    text-align:center;
    opacity: 0;
}
.preview-sign{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
}
.dialog{
    position: fixed;
    left: 30px;
    right: 30px;
    top: 140px;
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    z-index: 100;
}
.dialog-title{
    text-align: center;
    margin: 10px 0 20px;
}
.dialog-con{
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 8px;
    word-wrap: break-word
}
.dialog-btnWrap{
    display: grid;
    grid: 1fr 1fr 1fr 1fr / auto;
    row-gap: 14px;
    padding: 0 40px;
}
.dialog-btn{
    text-align: center;
    padding: 6px 0;
    background-color: #07c160;
    border-radius: 4px;
    color: #fff;
}
.dialog-btn.cancel{
    background-color: #f9f9f9;
    color: #000;
}
.dialog-btn.cancel:focus{
    background-color: #888;
}
.dialog-btn.confirm:focus{
    background-color: #067039;
}
.reScan-btn{
    position: fixed;
    left: 50px;
    right: 50px;
    bottom: 100px;
    padding: 10px 0;
    border-radius: 4px;
    border: 1px solid #eaeaea;
    background-color: #fff;
    text-align: center;
}


.no-touch{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.preview-header {
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 60px;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
}
.cancelBtn{
    color: #000;
    text-decoration: unset;
    width: 24px;
    height: 24px;
    background: url('/image/home.png') 0 0 no-repeat;
    background-size: 100% 100%;
}
.preview-header-text{
    font-size: 20px;
    color: #fff;
}
/* loading style */
#loadingMask {
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}
.loading,
.loading > div {
  position: relative;
  box-sizing: border-box;
}

.loading {
  display: block;
  font-size: 0;
  color: #fff;
}

.loading.la-dark {
  color: #333;
}

.loading > div {
  display: inline-block;
  float: none;
  background-color: currentColor;
  border: 0 solid currentColor;
}

.loading {
  width: 32px;
  height: 32px;
}

.loading > div {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 100%;
  animation: ball-spin-clockwise 1s infinite ease-in-out;
}

.loading > div:nth-child(1) {
  top: 5%;
  left: 50%;
  animation-delay: -0.875s;
}

.loading > div:nth-child(2) {
  top: 18.1801948466%;
  left: 81.8198051534%;
  animation-delay: -0.75s;
}

.loading > div:nth-child(3) {
  top: 50%;
  left: 95%;
  animation-delay: -0.625s;
}

.loading > div:nth-child(4) {
  top: 81.8198051534%;
  left: 81.8198051534%;
  animation-delay: -0.5s;
}

.loading > div:nth-child(5) {
  top: 94.9999999966%;
  left: 50.0000000005%;
  animation-delay: -0.375s;
}

.loading > div:nth-child(6) {
  top: 81.8198046966%;
  left: 18.1801949248%;
  animation-delay: -0.25s;
}

.loading > div:nth-child(7) {
  top: 49.9999750815%;
  left: 5.0000051215%;
  animation-delay: -0.125s;
}

.loading > div:nth-child(8) {
  top: 18.179464974%;
  left: 18.1803700518%;
  animation-delay: 0s;
}

.loading.la-sm {
  width: 16px;
  height: 16px;
}

.loading.la-sm > div {
  width: 4px;
  height: 4px;
  margin-top: -2px;
  margin-left: -2px;
}

.loading.la-2x {
  width: 64px;
  height: 64px;
}

.loading.la-2x > div {
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
}

.loading.la-3x {
  width: 96px;
  height: 96px;
}

.loading.la-3x > div {
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: -12px;
}

@keyframes ball-spin-clockwise {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 0;
    transform: scale(0);
  }
}
.loading-text {
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
}
#permissionBox {
  display: none;
}
.permissionBox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.permissionText {
  padding:  0 20px;
  text-align: center;
}
#qrcodeTip {
  display: none;
  width: 260px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  position: fixed;
  left: 0;
  bottom: 20vh;
  right: 0;
  margin: auto;
  color: #fff;
  font-size: 14px;
  text-align: center;
}