body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: monospace;
    background: #000;
}

#glCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

#canvas-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 320px;
    height: 240px;
    border: 2px solid #00ff00;
    pointer-events: none;
    z-index: 100;
}

#isometric-debug {
    position: absolute;
    bottom: 10px;
    right: 10px;
    border: 1px solid #00ff00;
    background: rgba(0, 0, 0, 0.8);
    z-index: 101;
    transition: opacity 0.3s ease;
}

#controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #00ff00;
    padding: 15px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    font-size: 12px;
    max-width: 300px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 102;
    transition: all 0.3s ease;
}

/* Minimized state styles for all devices */
#controls.minimized {
    padding: 10px;
    overflow: hidden;
    cursor: pointer;
}

#controls.minimized .control-group,
#controls.minimized h4 {
    display: none;
}

#controls.minimized h3::after {
    content: " (click to expand)";
    font-size: 10px;
    color: #ffff00;
}

/* Mobile styles - portrait and landscape */
@media (max-width: 768px), (max-height: 500px) {
    #controls {
        max-width: 90vw;
    }

    #controls.minimized h3::after {
        content: " (tap to expand)";
    }

    #canvas-overlay {
        width: 160px;
        height: 120px;
    }

    #isometric-debug {
        width: 200px;
        height: 200px;
        display: none;
    }
}

#controls h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #00ffff;
    text-align: center;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 5px;
    cursor: pointer;
    user-select: none;
}

#controls h4 {
    color: #ffff00;
    margin: 10px 0 5px 0;
}

.control-group {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #004400;
    border-radius: 3px;
}

#controls button {
    background: #002200;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 5px 10px;
    cursor: pointer;
    margin: 5px 0;
    border-radius: 3px;
    width: 100%;
}

#controls button:hover {
    background: #004400;
}

#controls input[type="checkbox"] {
    margin-right: 5px;
}

#controls input[type="range"] {
    width: 150px;
    vertical-align: middle;
}

#controls input[type="file"] {
    width: 100%;
    margin: 5px 0;
}

#controls label {
    display: block;
    margin: 5px 0;
}

#controls span {
    color: #ffff00;
}

#modelStatus {
    color: #00ffff;
    font-size: 10px;
    margin-top: 5px;
    font-style: italic;
}

#trackingStatus,
#faceDetected {
    font-weight: bold;
}

/* Scrollbar styling for controls */
#controls::-webkit-scrollbar {
    width: 8px;
}

#controls::-webkit-scrollbar-track {
    background: #001100;
}

#controls::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

#controls::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}