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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #eee;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff6b35;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.privacy-notice {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin: 0 auto 2rem;
    max-width: 1280px;
    position: relative;
}

#webcam {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleX(-1); /* Mirror the video horizontally */
    /* Hide video - we'll display the canvas instead */
    visibility: hidden;
}

#canvas {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.controls {
    margin-top: 2rem;
}

button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

button:hover {
    background: #ff8555;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

button:active {
    transform: translateY(0);
}

#status {
    margin-top: 1rem;
    font-size: 1rem;
    color: #aaa;
}

/* Filter controls */
.filters {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.filters h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff6b35;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 107, 53, 0.5);
}

.filter-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.filter-btn.active:hover {
    background: #ff8555;
    transform: translateY(-2px);
}
