/* styles.css */

#cameraDropdown {
    display: block;
    margin: 20px auto; /* Centers horizontally with a top margin of 20px */
    padding: 10px;
    font-size: 16px;
}

#webcamFeedContainer {
    overflow: hidden;
    position: relative;
    width: 80%;
    height: 0;
    padding-bottom: 65%; /* 4:3 Aspect Ratio */
    margin: 0 auto;
    background-color: black;
}

#webcamFeed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video fills the container while maintaining aspect ratio */
    transform-origin: center center;
}

#smallWebcamFeedContainer {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30%;
    max-width: 192px;
    aspect-ratio: 4 / 3;
    background-color: black;
    border: 2px solid red;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

#smallWebcamFeed {
    width: 100%;
    height: auto;
    background-color: black;
}

.control-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.button-container {
    margin: 5px;
}

.button {
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    display: inline-block;
}

#zoomSliderContainer {
    margin: 5px;
    display: flex;
    align-items: center;
}

#zoomSliderContainer label {
    margin-right: 10px;
}

#imageGallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    max-height: 200px; /* Adjust this value based on desired height */
    overflow-y: auto; /* Enables vertical scrolling */
}

.gallery-image {
    width: 100px;
    height: 75px;
    margin: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.flashing {
    border: 2px solid red;
    animation: flash 1s infinite;
}

@keyframes flash {
    0% { background-color: red; }
    50% { background-color: transparent; }
    100% { background-color: red; }
}
