#scanner {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
    /* background-color: rgb(51, 51, 51); */
}

#scanner video {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

#scanner .header-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 0;
    padding-top: env(safe-area-inset-top);
    background-color: black;
}


#scanner .header {
    position: relative;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid black;
}
#scanner .header .title {
    margin-left: 26px;
    color: white;
}

#scanner .header i {
    position: absolute;
    top: 0;
    right: 6px;
    width: 100px;
    height: 100px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

#scanner .content {
    position: absolute;
    top: 100px;
    top: calc(env(safe-area-inset-top) + 100px);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* #scanner .js-qr-code-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 640px;
    height: 480px;
    transform: translate(-50%, -50%);
    border: 2px solid blue;
} */
#scanner .scan-area {
    opacity: 0;
    position: absolute;
    top: 40%;
    left: 50%;
    border: 2px solid red;
}

#scanner .scan-edge {
    position: absolute;
    width: 10vw;
    height: 10vw;
    border-width: 5px;
    border-color: red;

}
#scanner .scan-edge.edge-tl{
    top: 77px;
    left: 77px;
    border-top: 5px solid red;
    border-left: 5px solid red;
}
#scanner .scan-edge.edge-tr{
    top: 77px;
    right: 77px;
    border-top: 5px solid red;
    border-right: 5px solid red;
}
#scanner .scan-edge.edge-bl{
    bottom: 77px;
    left: 77px;
    border-bottom: 5px solid red;
    border-left: 5px solid red;
}
#scanner .scan-edge.edge-br{
    bottom: 77px;
    right: 77px;
    border-bottom: 5px solid red;
    border-right: 5px solid red;
}
#scanner .debug-mode {
    top: 22%;
    left: 50%;
    right: inherit;
    transform: translate(-50%, -50%);
    font-size: 20px;
    padding: 20px 26px;
    font-weight: 500;
    text-align: center;
    border-radius: 40px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#scanner .debug-mode input{
    color: black;
    height: 40px;
    padding: 0 16px;
    width: 100%;
}
#scanner .debug-mode .debug-btn{
    display: flex;
    align-items: center;
    justify-content: center;

    height: 40px;
    min-width: 170px;
    padding: 0 20px;

    background-color: black;
    color: white;
}