body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: white;
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
}

#container {
    position: relative;
    width: 100%;
    max-width: 640px; /* Mobile friendly max width */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

#overlay {
    position: absolute;
    z-index: 3;
    pointer-events: none; /* Let clicks pass through to buttons if needed */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

#status-bar {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

#controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    pointer-events: auto;
    margin-bottom: 30px;
}

button {
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.1s, background-color 0.1s;
}

button:active {
    transform: scale(0.95);
}

button.secondary {
    background-color: #6c757d;
}

.hidden {
    display: none !important;
}
