html, body, #cesiumContainer { 
    width: 100%; 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    overflow: hidden; 
}

#controls {
    position: relative;
    margin: 10px auto;
    background: rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.7);
    padding: 8px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    text-align: center;
    max-width: 400px;
}

.controls-compact {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.key-combo {
    white-space: nowrap;
    padding: 2px 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

#speed { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: rgba(0,0,0,0.7); 
    color: white; 
    padding: 10px; 
}


.sticks-container {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    max-width: 600px;
    gap: 30px;
}

.stick-base {
    position: relative;
    width: 180px;
    height: 180px;
    border: 2px solid #333;
    border-radius: 50%;
    background: #2a2a2a;
    transition: all 0.3s ease;
}

.stick-crosshair {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.stick-crosshair::before,
.stick-crosshair::after {
    content: '';
    position: absolute;
    background: #444;
}

.stick-crosshair::before {
    left: 50%;
    top: 10%;
    bottom: 10%;
    width: 1px;
}

.stick-crosshair::after {
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
}

.stick-handle {
    width: 36px;
    height: 36px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stick-label {
    position: absolute;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.label-up { top: 5%; left: 50%; transform: translateX(-50%); }
.label-down { bottom: 5%; left: 50%; transform: translateX(-50%); }
.label-left { left: 5%; top: 50%; transform: translateY(-50%); }
.label-right { right: 5%; top: 50%; transform: translateY(-50%); }

.stick-base.highlight {
    border-color: #2196F3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

.stick-base.active {
    border-color: #00BCD4;
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.4);
}

.stick-arrow {
    position: absolute;
    width: 16px;
    height: 16px;
    border-right: 2px solid #2196F3;
    border-bottom: 2px solid #2196F3;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.arrow-up {
    top: 12%;
    left: 50%;
    transform: translateX(-50%) rotate(-135deg);
}

.arrow-down {
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.arrow-left {
    left: 12%;
    top: 50%;
    transform: translateY(-50%) rotate(135deg);
}

.arrow-right {
    right: 12%;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

@keyframes rotateArrows {
    0% { opacity: 0.2; }
    25% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 0.2; }
}

.stick-base.active .stick-arrow {
    animation: rotateArrows 2s infinite;
}

.stick-base.active .arrow-up { animation-delay: 0s; }
.stick-base.active .arrow-right { animation-delay: 0.5s; }
.stick-base.active .arrow-down { animation-delay: 1s; }
.stick-base.active .arrow-left { animation-delay: 1.5s; }

.target-zone {
    position: absolute;
    border: 2px dashed #ff0;
    border-radius: 50%;
    opacity: 0.5;
}

.calibration-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.calibration-header {
    margin-bottom: 15px;
}

.calibration-header h2 {
    margin: 10px 0;
    font-size: 1.5em;
}

.calibration-step-text {
    margin: 15px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.calibration-step {
    margin: 20px 0;
    font-size: 1.2em;
}

.calibration-progress {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #333;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.step-indicator.active {
    background: #00ff00;
    color: black;
}

.step-indicator.completed {
    background: #004400;
}

.next-button {
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
    min-width: 150px;
}

.next-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.next-button:disabled {
    background: #333;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Connection status indicator */
.connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    background: #666;
}

.status-dot.connected {
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Progress indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.progress-step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #2196F3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.progress-step.completed {
    background: #4CAF50;
} 

.cesium-viewer-bottom {
    display: none !important;
}
