*{
    margin: 0;
    padding: 0;
}
#es_living_detection_main_container{
  width: 280px;
  height: 475px;
  position: relative;
  padding: 10px;
  display: inline-block;
}
.es_living_detection_hide[state='hide']{
    display: none;
}
#es_living_detection_camera_container{
  height: 0px;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 10;
  width: 250px;
  height: 0px;
  left:25px;
  top:45px;
  border-radius: 250px;
  overflow: hidden;
}

#es_living_detection_camera_container>video{
    position: absolute;
    width: auto;
}
.es_living_detection_inner_container{
  position: absolute;
}

.es_living_detection_inner_container:nth-last-child(1){
  left:calc(50% - 125px);
}

#es_living_detection_video_show{
    transform:scaleX(-1);
}

#es_living_detection_video_show[state="nscalex"]{
    transform:scaleX(1);
}

#es_living_detection_canvasOutPut_container{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 320px;
    height: 475px;
    padding: 10px;
    right: 0;
    margin: 0 auto;
}
#title_canvas{
    position: absolute;
    left: 0px;
    top: 20px;
    z-index: 10001;
}

.scan_prompt_canvas{
    position: absolute;
    left: 0px;
    top: 20px;
    z-index: 10000 !important;
}

#title_canvas[state="hide"]{
    display: none;
}

#title_canvas[state="show"]{
    display: block;
}

#es_scan_error_prompt_canvas{
    position: absolute;
    left: 0px;
    z-index: 10001;
}

#es_scan_error_prompt_canvas[state="hide"]{
    display: none;
}

#es_scan_error_prompt_canvas[state="show"]{
    display: block;
}

.es_living_detection_prompt_title{
    position: absolute;
    top: 0px;
    width: 100%;
    height:100%;
    left: 0px;
    transition:all 1s;
    font-weight: bolder;
}

.es_living_detection_process_bar{
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content:center;

    font-weight: bolder;
   
    position: absolute;
}

.es_living_detection_process_bar[state="show"]{
    display: flex;
}

.es_living_detection_process_bar[state="hide"]{
    display: none;
}


.es_living_detection_process_bar>.es_living_detection_process_bar_arrow{
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.es_living_detection_process_bar>.es_living_detection_process_bar_cell{
    width: 100%;
    margin: 0px 1px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.es_living_detection_process_bar>.es_living_detection_process_bar_cell>.es_living_detection_process_bar_cell_circle{
    color: white;
    font-weight: normal;
    height: 15px;
    width: 15px;
    border-radius: 15px;
    display: flex;
    background-color: #a0a0a0;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    font-size: 8px;
}
.es_living_detection_process_bar>.es_living_detection_process_bar_cell[complete]>.es_living_detection_process_bar_cell_circle{
    background-color: #4285f4;
}
.es_living_detection_process_bar>.es_living_detection_process_bar_cell>.es_living_detection_process_bar_cell_circle:nth-child(1){
    display: inherit;
}
.es_living_detection_process_bar>.es_living_detection_process_bar_cell>.es_living_detection_process_bar_cell_circle:nth-child(2){
    display: none;
}
.es_living_detection_process_bar>.es_living_detection_process_bar_cell[complete]>span:nth-child(1){
    display: none;
}
.es_living_detection_process_bar>.es_living_detection_process_bar_cell[complete]>span:nth-child(2){
    display:inherit;
}
.es_living_detection_process_bar>.es_living_detection_process_bar_cell[execute]>span:nth-child(1){
    background-color: red;
}
.es_living_detection_process_bar>.es_living_detection_process_bar_cell[execute]>span:last-child{
    color:red;
}
.es_living_detection_process_bar>.es_living_detection_process_bar_cell:nth-child(1){
    margin-left: 0px;
}
.es_living_detection_process_bar>.es_living_detection_process_bar_cell:nth-last-child(1){
    margin-right:0px;
}

#face_image_mask{
    z-index: 10000;
    position: absolute;
    top: 0px;
    left: 0px;
}

#face_image_mask[state="hide"]{
    opacity: 0;
    transition: opacity 1s;
}

#face_image_mask[state="show"]{
    opacity: 0.9;
    transition: opacity 1s;
}

#face_image_mask[state="rotate_ani"]{
    opacity: 1;
    -webkit-animation: spin 1s linear 1s 5 alternate;
    animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#es_scan_operate_container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.es_scan_operate_content{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.es_scan_operate_content[state="hidden"]{
    display: none;
}

.es_scan_operate_text{
    color: #FFFFFF;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.es_scan_operate_button_container{
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.es_scan_operate_button_container[state="hidden"]{
    display: none;
}

.es_scan_take_photo_button_container{
    /* align-items: flex-start; */
}

.es_scan_take_photo_button_container .es_scan_operate_button_item{
    width: 30%;
    height: 80%;
}
.es_scan_confirm_button_container .es_scan_operate_button_item{
    width: 40%;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.es_scan_take_photo_button{
    background: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.es_scan_confirm_image_button , .es_scan_cancel_image_button{
    width: 80%;
    height: 100%;
    border: 1px solid #FFFFFF;
    background: none;
    color: #FFFFFF;
    border-radius: 15px;
}

.es_scan_confirm_image_button{
    background: #FFFFFF;
    color: #000000;
}

.es_scan_success_image_container{
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    z-index: -1;
}
.es_scan_success_image_container[state="show"]{
    display: flex;
    z-index: 10001;
    
}
#es_scan_success_image{
    z-index: 10001;
}
.es_living_detection_action_process_container{
    display: flex;
  }
.es_living_detection_action_process_container[state="hide"]{
  display: none !important;
}
.es_living_detection_pause_container{
  display: flex;
}
.es_living_detection_pause_container[state="hide"]{
  display: none !important;
}
.es_living_detection_complete_container{
  display: flex;
}
.es_living_detection_complete_container[state="hide"]{
  display: none !important;
}
#es_living_detection_animation_container{
    width: 100px;
    height: 100px;
    position: absolute;
    left: calc(50% - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #es_living_detection_animation_canvas{
    z-index: 1;
  }
  #es_living_detection_animation_canvas[state="hide"]{
    display: none;
  }
  /* @media screen and (orientation: landscape) {
    body {
      transform: rotate(-90deg);
      transform-origin: left top;
      width: 100vh;
      height: 100vw;
      overflow-x: hidden;
      position: absolute;
      top: 100%;
      left: 0;
    }
  } */
  body {
    /* 禁止用户缩放页面 */
    touch-action: pan-x pan-y;
    /* 禁止缩放和旋转 */
    user-scalable: no;
    /* 对于iOS设备 */
    -webkit-text-size-adjust: 100%;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
#es_living_detection_notice_container{
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 30px;
}
#es_living_detection_notice_container span{
    text-align: left;
    line-height: 28px;
    font-size: 18px;
}
#successAnimationCanvas{
    z-index: 10000;
    position: absolute;
    top: 0px;
    left: 0px;
}

#successAnimationCanvas[state="hide"]{
    display: none;
    /* transition: opacity 1s; */
}

#circle_frame_canvas{
    position: absolute;
    left: 0;
    right: 0;
}
.es_living_detection_brightness_container {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, .3);
  left: 0;
  top: 0;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10001;
}
.es_living_detection_brightness_container[state="show"]{
    display: flex;
}
.es_living_detection_brightness_content{
    width: 260px;
    height: 275px;
    background: linear-gradient(to bottom, #f9f9f9, #fff);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: expandBoxShadow 5s infinite;
    position: relative;
}  

.es_living_detection_brightness_title{
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 40px;
}
.es_living_detection_brightness_info{
    color: #666;
    margin: 10px 0;
    font-size: 16px;
    line-height: 20px;
    display: flex;
    flex-direction: column;
    font-weight: 500;
}
.es_living_detection_brightness_info_text{
    color: #219aec;
}
.es_living_detection_brightness_count_container{
    position: absolute;
    bottom: 20px;
    color: #a6a6a6;
    font-size: 14px;
}
.es_living_detection_brightness_animation_container{
    width: 100%;
    height: 100px;
    background: linear-gradient(to right, #f6f6f6, #f3f5f7);
    border-radius: 5px;
    margin: 10px 0 20px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.es_living_detection_brightness_animation_track{
    width: 80%;
    height: 40px;
    background: rgba(227, 227, 227, .5);
    border-radius: 20px;
    margin-bottom: 20px;
}
.es_living_detection_brightness_animation_thumb{
    width: 40%;
    height: 40px;
    background: #fff;
    border-radius: 20px;
    position: absolute;
    top: 19px;
    left: calc(10% - 1px);
    border: 1px solid #fff;
    animation: expandWidth 5s infinite;
}
.es_living_detection_brightness_animation_icon-container{
    width: 70%;
    height: 40px;
    position: absolute;
    top: 20px;
    left: 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}
.es_living_detection_brightness_animation_icon-item{
    width: 24px;
    height: 24px;
    /* background: #ccc; */
    /* border-radius: 50%; */
}
.es_living_detection_brightness_animation_icon{
    width: 100%;
    height: 100%;
}
.es_living_detection_brightness_animation_prompt_container{
    width: 32px;
    height: 32px;
    position: absolute;
    bottom: 5px;
    left: 10%;
    animation: changeLeft 5s infinite;
}
.es_living_detection_brightness_animation_prompt_icon{
    width: 100%;
    height: 100%;
}
.es_living_detection_brightness_btn_container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
}
.es_living_detection_brightness_btn{
    border: none;
    width: 45%;
    height: 100%;
    border-radius: 5px;
    font-size: 14px;
}
.es_living_detection_brightness_btn[state="hide"]{
    display: none;
}
#es_living_detection_brightness_btn_cancel{
    background: #f6f6f6;
    color: #333;
}
#es_living_detection_brightness_btn_confirm{
    background: #219aec;
    color: #fff;
}
#es_living_detection_brightness_btn_wait{
    opacity: .4;
    background: #219aec;
    color: #fff;
}
@keyframes expandWidth {
    0% {
        width: 40%;
    }
    40% {
        width: 80%;
    }
    /* 暂停 2秒 */
    100% {
        width: 80%;
    }
}

@keyframes expandBoxShadow {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    40%{
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.9);
    }
    100% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.9);
    }
}

@keyframes changeLeft {
    0% {
        
        left: 10%;
    }
    40%{
        left: 80%
    }
    100% {
        left: 80%
    }
}