.container {
    display: flex;
    width: 90%;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.left-panel, .right-panel {
    flex: 1;
    background: rgba(231, 231, 231, 0.9);
    padding: 20px;
    border-radius: 5px;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 250px;
}


.info-section {
    margin: 20px auto;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

.info-section h1{
    text-decoration: underline;
    font-weight: unset;
}

.canvas-container {
    background: rgba(231, 231, 231, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 400px;
    padding: 20px;
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}


canvas {
    border: 1px solid #942f2f;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

output {
    border: 1px solid #942f2f;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.video-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 4/3;
    background-color: black;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
}

.settings {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}


button, select {
    padding: 8px 15px;
    border: 1px solid #3b5998;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
button:hover, select:hover {
    filter: brightness(1.2);
}



button:disabled {
    background-color: #666666;
    color: #dddddd;
    cursor: not-allowed;
    filter: brightness(0.8);
    border: 1px solid #3b5998;
    border-radius: 1px;
}

.camControl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0 15px 0;
    width: 100%;
    max-width: 400px;
}

.camControl button {
    border: 1px solid #3b5998;
    font-size: 15px;
    height: 40px;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
}

#startCamera {
    background-color: rgba(183, 232, 183, 0.82);
    color: #000000;
}

#stopCamera {
    background-color: #ff2c2c;
    color: #000000;
}

#flipButton {
    background-color: rgba(248, 248, 248, 0.53);
    color: #000000;
    font-size: 12px;
}

#saveButton {
    background-color: rgba(252, 225, 225, 0.94);
}

#cameraSelect {

}


/* Take Photo button styling */
.photo-button {
    background-color: #d9e5ff;
    border: 1px solid #3b5998;
    border-radius: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
}

.camera-icon {
    font-size: 16px;
}

/* Additional styles for sliders */
.slider-accent {
    accent-color: #88a4b3;
    background: #d3d3d3;
}

.slider-controls {
    font-family: 'IBM Plex Mono', monospace;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    max-width: 400px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 25px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #333333;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #333333;
    cursor: pointer;
}

label {
    margin-bottom: 5px;
    color: #666666;
    font-size: 14px;
}


/* Flash effect for the camera */
@keyframes cameraFlash {
    0% { background-color: rgba(255, 255, 255, 0); }
    50% { background-color: rgba(255, 255, 255, 0.8); }
    100% { background-color: rgba(255, 255, 255, 0); }
}

.flash {
    animation: cameraFlash 0.5s ease-out;
}

@media only screen and (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
        column-count: 1;
        align-items: center;
        gap: 10px;
    }
    .canvas-container {
        width: 100%;
    }
    /* Make slider containers full width */
    .right-panel {
        width: 100%;
    }

    .camControl button {
        font-size: 10px;
        height: 30px;
    }

    /* Improve control button layout on small screens */
    .controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    /*
    .info-section h1 {
        font-size: clamp(15px, 1.5vw, 19px);
        font-weight: bold;
    }
    .info-section p {
        font-size: clamp(10px, 1.5vw, 14px);
    }
    .settings {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }*/
}