body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 10px;
}

h2 {
    color: #555;
    margin-bottom: 15px;
}

h3 {
    color: #444;
    margin-top: 0;
}

#status {
    padding: 15px;
    margin: 15px 0;
    background-color: #e0e0e0;
    border-radius: 5px;
    font-weight: bold;
}

#main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#camera-section {
    width: 100%;
    margin-bottom: 20px;
}

#camera-container {
    position: relative;
    margin: 0 auto 20px;
    width: 640px;
    height: 480px;
    border: 3px solid #333;
    background-color: #000;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#camera-feed {
    position: relative;
    width: 100%;
    height: 100%;
}

#webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#controls {
    margin: 15px 0;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#start-btn {
    background-color: #4CAF50;
    color: white;
}

#start-btn:hover {
    background-color: #45a049;
}

#start-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#stop-btn {
    background-color: #f44336;
    color: white;
}

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

#stop-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#data-display {
    margin: 20px 0;
    padding: 20px;
    background-color: #e9e9e9;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#data-display p {
    margin: 12px 0;
    font-size: 16px;
    text-align: left;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

#instructions {
    margin: 20px 0;
    padding: 20px;
    background-color: #e3f2fd;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    text-align: left;
}

#instructions ol {
    padding-left: 20px;
}

#instructions li {
    margin: 10px 0;
    line-height: 1.5;
}
