* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    background: transparent;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Layout */
#container {
    position: relative;
    width: 100%;
    height: 100%;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

/* JOINT PANEL */
.joint-panel {
    position: absolute;
    right: 16px;
    top: 100px;
    bottom: 100px;
    width: 160px;
    background: rgba(0, 0, 0, 0);
    border-radius: 20px;
    padding: 18px 14px;
    z-index: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.joint-panel::-webkit-scrollbar {
    width: 6px;
}

.joint-panel::-webkit-scrollbar-track {
    background: transparent;
}

.joint-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, .5);
    border-radius: 3px;
}

.joint-panel::-webkit-scrollbar-thumb:hover {
    background: #0f0;
}

.joint-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.joint-label {
    color: #0f0;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    letter-spacing: .6px;
    text-shadow: 0 0 4px rgba(0, 255, 0, .4);
}

.joint-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .15);
    outline: none;
    cursor: pointer;
}

.joint-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0f0;
    box-shadow: 0 0 10px #0f0, 0 0 16px rgba(0, 255, 0, .5);
    cursor: grab;
    transition: all .15s;
}

.joint-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: 0 0 20px #0f0, 0 0 28px rgba(0, 255, 0, .7);
}

.joint-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0f0;
    border: none;
    box-shadow: 0 0 10px #0f0;
    cursor: grab;
}

.joint-value {
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    text-align: center;
    text-shadow: 0 0 4px rgba(0, 255, 0, .4);
}

/* CAMERA */
#camera-feed-container {
    display: none;
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 240px;
    height: 180px;
    background: rgba(0, 0, 0, .75);
    border-radius: 12px;
    overflow: hidden;
    z-index: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, .25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
    flex-direction: column;
}

#camera-feed {
    width: 100%;
    height: calc(100% - 26px);
    object-fit: cover;
    background: #000;
}

#camera-label {
    color: #0f0;
    font: bold 11px 'Courier New', monospace;
    text-align: center;
    padding: 4px 0;
    background: rgba(0, 0, 0, .6);
    text-shadow: 0 0 4px rgba(0, 255, 0, .4);
}