body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    margin: 0;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.video-container {
    position: relative;
    margin: 20px auto;
    width: 640px;
    height: 480px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.register-section {
    display: flex;
    gap: 10px;
}

input, button {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

button:disabled {
    background-color: #a0c4ff;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #0056b3;
}

#clearBtn {
    background-color: #dc3545;
}

#clearBtn:hover:not(:disabled) {
    background-color: #a71d2a;
}

.status {
    font-weight: bold;
    color: #e67e22;
}