﻿@media (max-width: 1000px) {
    body {
        background-color: #e4edf6;
    }

    .body-container {
        margin-top: 10px;
        padding-bottom: 40px;
        padding-right: 0px;
        padding-left: 0px;
        background-color: #e4edf6;
    }

    .page-container {
        display: flex;
        flex-direction: column;
        /*height: 100vh;*/
        background-color: #1268b3;
        margin-top: -10px; /*Undo effect of body-container*/
        /*margin-bottom: -40px;*/ /*Undo effect of body-container*/
        /*justify-content: center;*/
    }

    .pageheader-container {
        padding: 10px;
        height: 100px;
        align-content: center;
        justify-content: center;
    }

    .pageheader-text {
        /*padding-left: 15px;*/
        color: white;
        font-size: 2.20rem;
    }

    .pagecontent-container {
        background-color: #e4edf6;
        height: 100vh;
        border-top-left-radius: 1.0em;
        border-top-right-radius: 1.0em;
        /*padding: 0.5em;*/
    }

    .sc_btn {
        background-color: #F37029;
        border: none;
        border-radius: 1.5rem;
    }

    .rounded-btn {
        border: none;
        border-radius: 1.5rem;
    }

    .sc_btn {
        background-color: #F37029;
        border: none;
        border-radius: 1.5rem;
    }
}

.grey-border {
    border: 1px solid grey;
}

.w-85 {
    width: 85% !important;
}

.stepper-content {
    /*height: 350px;*/
    position: relative;
}

.stepper-error-content {
    /*height: 350px;*/
}

ol.stepper {
    --default-line: white; /*lightgrey*/
    --default-b: white; /*#1268B3;*/ /*lightgrey;*/
    --default-c: #1268B3; /*white;*/ /*black;*/
    --active-line: #A990DD;
    --active-b: #1268B3; /*white;*/ /*purple;*/
    --active-c: white; /*#1268B3;*/ /*white;*/
    --circle: 1.75em; /* size of circle */
    --circle-border-b: white;
    --circle-border-c: #1268B3;
    /*white;*/ /* circle border color*/
    --circle-border-w: 2px; /* circle border thickness*/
    --b: 3px; /* line thickness */
    --txt: black; /*white;*/ /*purple;*/

    display: flex;
    list-style: none;
    justify-content: space-between;
    background: linear-gradient(var(--default-line) 0 0) no-repeat 50% calc((var(--circle) - var(--b)))/95% var(--b);
    counter-reset: step;
    margin: 5px;
    padding: 0;
    font-size: 12px;
    font-weight: bold;
    overflow: hidden;
}

    ol.stepper li {
        display: grid;
        place-items: center;
        gap: 5px;
        /*font-family: sans-serif;*/
        position: relative;
        color: var(--txt);
        /*font-weight: normal;*/
    }

        /*Circle*/
        ol.stepper li::before {
            content: counter(step) " ";
            /*opacity: 0.4;*/
            counter-increment: step;
            display: grid;
            place-content: center;
            aspect-ratio: 1;
            height: var(--circle);
            border: var(--circle-border-w) solid var(--circle-border-b);
            box-sizing: border-box;
            background: var(--active-b);
            color: var(--active-c);
            border-radius: 50%;
            font-family: monospace;
            font-size: 22px;
            z-index: 1;
        }

        ol.stepper li.active ~ li::before {
            background: var(--default-b);
            color: var(--default-c);
            border: var(--circle-border-w) solid var(--circle-border-c);
        }

        /*Active line*/
        ol.stepper li.active::after {
            content: "";
            position: absolute;
            height: var(--b);
            right: 50%;
            top: calc((var(--circle) - var(--b)));
            width: 100vw;
            background: var(--active-line);
        }

.items-left {
    place-items: start !important;
}

/*.step-btn {
    width: auto;
}
*/
/*@media (max-width: 350px) {
    ol.stepper {
        display: grid;
        gap: 20px;
        background: linear-gradient(var(--default-line) 0 0) no-repeat calc((var(--circle) - var(--b))) 50%/ var(--b) 100%;
    }

        ol.stepper li {
            display: flex;
        }

            ol.stepper li.active::after {
                content: "";
                position: absolute;
                width: var(--b);
                bottom: 100%;
                left: calc((var(--circle) - var(--b)));
                top: auto;
                right: auto;
                height: 100vw;
                background: var(--active-line);
            }
}
*/
.button-container {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px; /* Space between buttons */
    width: 100%;
}

    .button-container button {
        flex: 1;
        max-width: 48%; /* Ensures consistent width */
    }

.selfie-image-container {
    /*width: 100%;
    display: inline-block;
    place-items: center;
    position: relative;*/
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center;*/
    position: relative;
}

.selfie-image {
    /*border: 1px solid grey;*/
    /*box-shadow: 2px 2px 3px black;*/
    width: 300px;
    height: 240px;
}

.img-div {
    max-width: 100%;
    height: 100%;
}

.selfie-table {
    width: 100%;
}

.video-outer-container {
    top: 100px;
    left: 0;
    /*position: absolute;*/
    width: 100%;
    height: calc(100% - 100px);
    padding: 5px 10px; /*5% 30%;*/
    /*border: 1px solid red;*/
}

.video-inner-container {
    width: 100%;
    height: 100vw;
    border: 1px solid blue;
}

.video-stream-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    display: inline-block;
    place-items: center;
    border: 1px solid green;
}

#video {
    /*border: 1px solid grey;*/
    width: 100%;
    max-width: 640px;
    height: auto;
    max-height: 90vh;
    /*-webkit-transform: scaleX(-1);*/
    /*transform: scaleX(-1);*/
    border-top-left-radius: 1.0em;
    border-top-right-radius: 1.0em;
}

/*#loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;*/
    /*font-size: 1.5rem;*/
    /*font-weight: bold;*/
    /*background: rgba(0, 0, 0, 0.6);*/
    /*padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    display: block;
}*/

#canvas {
    display: none;
}

.centered_container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.centered_tablecell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align:center;
    vertical-align: middle;
    justify-content: center;
    position: relative;
    height: 100%;
}

.tablecell {
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    justify-content: center;
    position: relative;
    height: 100%;
}

.errorhr {
    width: 90%;
    height: 2px;
    border: none;
    background-color: black;
    display: block;
}

.text-small {
    /*color: #black !important;*/
    font-size: 12px;
}

.text-xsmall {
    /*color: #black !important;*/
    font-size: 10px;
}

.centered-2x2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px; /* Space between items */
    justify-items: center; /* Centers items horizontally */
    text-align: center; /* Centers text below images */
}

.grid-cell {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers image and text */
}

.selfie-overlay {
    /*border: 1px solid blue;*/
    position: absolute;
    /*top: calc(50% + 30px);*/
    top: calc(50% + 60px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 850px; /*800px;*/ /*475px;*/ /*80vw*/
    /*max-width: 100%;*/
    height: 850px;
    max-height: 140vw;
    background-image: url('../selfie-overlay.png');
    background-size: contain; /* Ensure the image is fully visible */
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.rectangle-overlay {
    position: absolute;
    width: 70px;
    height: 5px;
    background-color: red;
    left: 50%;
    transform: translateX(-50%);
    top: 40%;
}

.selfie-overlay1 {
    position: absolute;
    width: 475px;
    height: 475px;
    background-image: url('../selfie-overlay.png');
    background-size: contain; /* Ensure the image is fully visible */
    background-repeat: no-repeat;
    background-position: center;
    top: 75%; /* Move to the vertical center of the video */
    left: 50%; /* Move to the horizontal center of the video */
    transform: translate(-50%, -60%); /* Shift it back by half its width & height */
    pointer-events: none; /* Prevent it from blocking interactions */
}

.busy-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 60vh;
    width: 100%;
    margin-top: 1em;
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*background-color: rgba(255, 255, 255, 0.8);*/ /* Light overlay effect */
}

.locked-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.fs-20 {
    font-size: 20px !important;
}

.busy-image {
    width: 50px; /* Adjust as needed */
    height: 50px;
    margin-bottom: 10px;
}

.zi-10 {
    z-index: 10;
}

.error-msg {
    color: red;
    /*font-size: 1.5rem;*/
}

.centre-text {
    text-align: center;
}

.rounded-white-container {
    background-color: white;
    border-radius: 1.0em;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 10px;
    padding: 10px 5px;
}