body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #fff;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

#video-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

#webcam {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: hidden; /* Hide the actual video element */
}

#output-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.controls {
    width: 300px;
    padding: 20px;
    background-color: #222;
    overflow-y: auto;
}

.control-group {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

h2 {
    margin-top: 0;
    color: #ff6c00;
}

h3 {
    font-size: 16px;
    margin: 10px 0;
    color: #ffde00;
}

label {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
}

.sub-controls {
    margin-left: 20px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dotted #444;
}

button {
    background-color: #ff1e00;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff6c00;
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.slider-control {
    margin-top: 10px;
}

input[type="range"] {
    width: 100%;
    margin-top: 5px;
}
