
 .access-panel {
    text-align: center;
    height: auto;
    max-width: 450px;
    width: 95%;
    background-color: #fff;
    border-radius: 15px;
    position: fixed;
    top: 50%;
    left: 50%;
    /* bring your own prefixes */
    transform: translate(-50%, -50%);
    -webkit-box-shadow: 0px 10px 29px -1px rgba(199,199,199,1);
    -moz-box-shadow: 0px 10px 29px -1px rgba(199,199,199,1);
    box-shadow: 0px 10px 29px -1px rgba(199,199,199,1);
}

     .access-panel .cover-image {
        width: 100%;
        height: 0;
        padding-bottom: 37.03703703703704%;
        position: relative;
        overflow: hidden;
    }

         .access-panel .cover-image img {
            width: 100%;
            height: auto;
            border-radius: 15px 15px 0 0;
        }

     .access-panel .access-group {
        border-top: 1px solid #dedede;
        padding: 15px 25px;
        position: relative;
    }

         .access-panel .access-group p {
            color: rgb(62, 82, 100);
        }

         .access-panel .access-group hr {
            margin: 12px 0;
            border-top: 1px solid #dedede;
        }

         .access-panel .access-group p.enter-id {
            font-size: 15px;
        }

         .access-panel .access-group p.zipevent-color {
            font-size: 18px;
            text-align: left;
            margin: 0;
        }

         .access-panel .access-group p.date {
            font-size: 13px;
            text-align: left;
            margin: 0;
        }

         .access-panel .access-group input {
            border: 1px solid rgb(208, 208, 208);
            border-radius: 49px;
            text-indent: 15px;
            box-shadow: none !important;
            transition: 0.2s all;
            text-transform: uppercase;
            width: 100%;
            margin-bottom: 12px;
        }

         .access-panel .access-group .btn {
            outline: none !important;
            padding: 4px;
        }

footer {
    display: none;
}

#bg {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    transform: translate(-50%, -50%);
}

body, html {
    background-color: transparent !important;
    background: transparent !important;
}

#page-wrapper {
    background-color: transparent !important;
    background: transparent !important;
}

    #page-wrapper.wrapper-no-subtitle {
        background-color: transparent;
        min-height: calc(100vh - 65px) !important;
    }

    .access-panel .access-group .btn.scanner{
        width: 55px;
        margin-bottom: 12px;
        border-radius: 49px;
    }

    .access-panel .access-group .code-input-group{
        gap: 10px;
    }


    /* Container for the video */
/* Force the library container to be full width */
#reader {
    width: 100% !important;
    background: #000 !important;
    border: none !important;
}

/* Force the video element to fill the container width */
#reader video {
    width: 100% !important;
    height: auto !important;
    object-fit: cover; /* Ensures video fills space without distortion */
}

/* Hide the library's internal UI buttons if they appear */
#reader img { display: none !important; }
#reader button { display: none !important; }


/* The Container for the scan area */
.scanner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4); /* Dim the area outside the frame */
}

/* The Animated Frame with Min-Width */
.scanner-frame {
    /* Uses 50% of the width, but stops shrinking at 250px and stops growing at 400px */
    width: clamp(250px, 50%, 400px);
    aspect-ratio: 1 / 1; /* Keeps it a perfect square */
    position: relative;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5); /* Creates the 'cutout' effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}
#qr-shaded-region {
    display: none !important;
}

/* Glowing Corners (Increased size for the larger frame) */
.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 4px solid var(--zipevent-color);
}

.top-left { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.top-right { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.bottom-left { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.bottom-right { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

/* The Scan Line */
.scan-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--zipevent-color);
    box-shadow: 0 0 15px var(--zipevent-color);
    animation: scan 2.5s ease-in-out infinite;
}

@keyframes scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.scan-text {
    z-index: 11;
    margin-top: 30px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
}

.camera-action{
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* Important: allow clicks on the button */
    cursor: pointer;
    z-index: 110;
}

.torch-button {
    bottom: 10px;
    /* right: 10px; */
    left: 10px;
}

.torch-button.active {
    background: #ffcc00;
    color: #000;
    border-color: #ffcc00;
}

.control-button {
    bottom: 10px;
    right: 10px;
}

.control-button:active {
    transform: scale(0.9);
    background: #00d1b2;
}

.camera-options{
    position: absolute;
    bottom: 16px;
    font-size: 0.85rem;
    left: 50%;
    transform: translate(-50%, 0);
    font-style: italic;
    z-index: 111;
    background-color: #9f9f9ff7;
    border: none;
    padding: 1px 12px;
    border-radius: 3px;
}
video.flip {
    transform: scaleX(-1);
}