#scannerPopup{
    position:fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: none;
    background: black;
}

#video{
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

#closeScannerPopup{
    z-index: 12;
    /*transform: rotate(180deg);*/
    /*padding-left: 40%;*/
    width: 30%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

#zoomRange{
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}


#closeScannerSpan{
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    position: absolute; 
    bottom: 10px;
}		

#video-overlay{
    position:relative;
    z-index: 11;
}

/*background: rgba(0, 0, 0, 0.5);*/
/*#video-overlay:before {
    content: '';
    position: absolute;
    
    box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.5) inset;
    border-radius: 5px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hide;
}*/

#video-overlay:before{
    content: '';
    position: absolute;
    clip-path: polygon(0% 0%, 0% 100%, 10% 100%, 10% 25%, 90% 25%, 90% 75%, 10% 75%, 10% 100%, 100% 100%, 100% 0%);
    /*clip-path: polygon(0% 0%, 0% 100%, 5% 100%, 5% 30%, 95% 30%, 95% 70%, 5% 70%, 5% 100%, 100% 100%, 100% 0%);*/
    background: rgba(0, 0, 0, 0.5);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: inline-block;
    height: 100%;
    width: 100%;
}

#video-overlay::after {
    content: '';
    width: 100%;
    height: 2px;
    background: white;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: inline-block;
    position: absolute;
    margin: auto;
    
}

/*
@media screen and (orientation: landscape) {
    #scannerPopup {
        
        height: 100vh !important;
        width: 100vw !important;
        /*left: 50%;*/
        /*top: 0;
        /*transform: translateY(-50%);*/
    /*}
    #video{
        height: 75vh;
        display: block;
        margin: 0 auto;
        transform: rotate(270deg);
    }

    #video-overlay{
        height: 75vh;
        transform: rotate(270deg);
    }

    #clip-path{
        height: 75vh;
        display: none;
    }

    #clip-polygon{
        height: 75vh;
        display: none;
    }
} 
*/

/*
@media screen and (orientation: landscape) {
    #scannerPopup {
        transform: rotate(-90deg);
        transform-origin: left top;
        width: 100vh !important;
        height: 100vw !important;
        overflow-x: hidden;
        position: absolute;
        top: 100%;
        left: 0;
    }

    #video{
        transform: rotate(90deg);
        transform-origin: right top;
        width: 100%;
        height: 100%;
    }
}
*/

@media not all and (orientation: landscape){
    #video{
        width: 100%;
    }
}
/*
#video-overlay:before{
    position: absolute;
    top: 20px;
    left: 20px;
    width: 200px;
    height: 150px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}*/

#scannerTooltip{
    position: absolute; 
    top:0;
    left: 0;
    right: 0;
    z-index: 999;
    margin-left: auto; 
    margin-right: auto; 
    width: 200px;
}