* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden; /* Prevent scrolling */
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

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

#webcam {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#drawing-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    background-color: transparent;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: rgba(20, 20, 20, 0.75);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    overflow-x: auto;
    color: white;
}

h3 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #f0f0f0;
}

/* Color Picker Styles */
.color-picker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#color-wheel {
    border-radius: 50%;
    border: 2px solid #444;
    cursor: pointer;
    margin-bottom: 10px;
}

.current-color-display {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 3px;
    background-color: #444;
}

#current-color-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #000000;
}

/* Brush Controls */
.brush-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.brush-size, .opacity-control {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100px;
    height: 8px;
    border-radius: 4px;
    background: #444;
    outline: none;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

#size-value, #opacity-value {
    font-size: 14px;
    color: #f0f0f0;
}

/* Actions */
.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.actions button {
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.actions button:hover {
    background-color: #45a049;
}

#clear-btn {
    background-color: #f44336;
}

#clear-btn:hover {
    background-color: #d32f2f;
}

/* Instructions */
.instructions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.instructions p {
    margin-top: 5px;
    font-size: 14px;
    color: #f0f0f0;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        gap: 15px;
        max-width: 85%;
        align-items: center;
    }
    
    .color-wheel-container {
        margin: 0 auto;
    }
}
