﻿/* Container settings for responsiveness */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box; /* Ensures padding is within 100% width */
}

/* Overlay at the top left with responsive adjustments */
.overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive CameraStreamer component */
.camera-stream {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.hidden-camera-stream {
    display:none;
}

/* Center buttons and make them responsive */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

/* Styling for buttons */
.btn {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    background-color: #007bff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .overlay {
        top: 10px;
        left: 10px;
        font-size: 0.9rem;
        padding: 8px;
    }

    .camera-stream {
        margin: 15px 0;
    }

    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* Additional adjustments for extra-small screens */
@media (max-width: 480px) {
    .overlay {
        top: 5px;
        left: 5px;
        font-size: 0.8rem;
        padding: 6px;
    }

    .button-group {
        gap: 5px;
    }

    .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}





#videoContainer {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: 0%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 500;
}

#videoOutput {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
}


#video_overlays {
    position: absolute;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: 0%;
    left: 0;
    right: 0;
    text-align: center;
    /*border: 10px solid rgb(236, 79, 79);*/
    border-radius: 8px;
    /*margin: 1.5rem 1.5rem;*/
    box-shadow: 0 0 0px 5px #74c699;
    z-index: 2147483646;
    width: 70%;
    /*background-color: rgba(147, 235, 47, 0.4);*/
}

#videoMessage {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: 1%;
    left: 0;
    right: 0;
    width: inherit;
    top: 87%;
    height: 12.4%; /* total of top and height must be 99.4% so we don't have the video message background stickingout of the borders around the camera */
    background-color: white;
    color: #74c699;
    text-align: center;
    z-index: 2147483646;
}

.spinnerDiv {
    display: block;
    position: fixed;
    z-index: 1031; /* High z-index so it is on top of the page */
    top: 0%;
    right: 0%; /* or: left: 50%; */
}

.spinner {
    display: block;
    position: absolute;
    z-index: 1031; /* High z-index so it is on top of the page */
    top: 50%;
    right: 50%; /* or: left: 50%; */
}


