body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

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

h1 {
    color: #2c3e50;
}

.camera-container {
    position: relative;
    width: 100%;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
video, canvas {
    width: 100%;
    display: block;
    background-color: #000;
    transform: scaleX(-1); /* Mirror effect */
}
canvas {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    z-index: 2;
}

#threeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.controls {
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}
#status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    background-color: #ecf0f1;
}
.gesture-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    background-color: #e8f4f8;
    border: 1px solid #3498db;
}

.keypoint-info {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    background-color: #f8e8e8;
    border: 1px solid #e74c3c;
}

.keypoint-info p {
    margin: 5px 0;
    font-weight: bold;
}
.gesture-status p {
    margin: 5px 0;
    font-weight: bold;
}

.gesture-status span {
    font-weight: normal;
}
