/*html, body {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    background: black;*/
/*    overflow: hidden;*/
/*    border:none;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

body.camera-overlay {
    overflow: hidden;
}

#image-capture-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    background: black;
    overflow: hidden;
    border:none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#videoWrapper {
    width: auto;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

video, canvas {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.messege{
    width: auto;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.messege h3{
    color: #c93e3e;
}
.messege h4{
    color: #c93e3e;
}
#ico-rotate-landscape{
    font-size: 80px;
    color: #c93e3e;
}

.controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: max(12px,env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 999;
}

#flashToggleBtn {
    position: fixed;
    inset-block-start: max(12px, env(safe-area-inset-top));
    inset-inline-start: max(12px, env(safe-area-inset-left));
    z-index: 1000;
    font-size: clamp(18px, 2.5vw, 26px);
    padding: clamp(8px, 2vw, 14px);
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

#icon-fullscreen {
    position: fixed;
    inset-block-start: max(12px, env(safe-area-inset-top));
    inset-inline-end: max(12px, env(safe-area-inset-right));
    z-index: 1000;
    font-size: clamp(18px, 2.5vw, 26px);
    padding: clamp(8px, 2vw, 14px);
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.btn-only-ico {
    z-index: 1000;
    font-size: 36px;
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

#loading {
    position:absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 10px;
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
    border-radius: 8px;
}
#loading h3{
    color: #fff;
}
@media (orientation: portrait) {
    #videoWrapper {
        display: none;
    }
    #warning{
        display: flex;
    }
    .controls, #flashToggleBtn, #captureVideoBtn, #confirmBtn, #retryBtn{
        display: none;
    }
}