:root {
    --control-bg: rgba(0, 0, 0, 0.8);
    --button-primary: #2196F3;
    --button-hover: #1976D2;
    --button-disabled: #cccccc;
    --animation-name: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
}

.container {
    max-width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    background-color: transparent;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.container.hidden {
    opacity: 0;
    visibility: hidden;
}

model-viewer {
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: none;
}

.controls {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--control-bg);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    flex-direction: row;
    align-items: center;
    transition: all 0.3s ease;
    visibility: visible;
    opacity: 1;
}

.controls.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.toggle-button {
    position: absolute;
    top: 110px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    border-radius: 10px 10px 10px 10px;
    padding: 8px 16px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.toggle-menu {
    left: 50%;
    transform: translateX(calc(-100% - 5px));
    top: 50px;
}

.toggle-lock {
    left: 50%;
    transform: translateX(5px);
    top: 50px;
}

.toggle-button:hover {
    background: rgba(0, 0, 0, 0.4);
}

.toggle-lock.locked {
    background: rgba(255, 0, 0, 0.2);
}

.toggle-lock.locked:hover {
    background: rgba(0, 255, 0, 0.4);
}

.toggle-lock:not(.locked) {
    background: rgba(0, 255, 0, 0.2);
}

.toggle-lock:not(.locked):hover {
    background: rgba(255, 0, 0, 0.4);
}

.control-group {
    display: flex;
    gap: 10px;
    margin: 5px 0;
}

button {
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background: var(--button-primary);
    color: white;
    font-weight: bold;
    min-width: 80px;
    transition: background 0.2s ease;
}

button:hover:not(:disabled) {
    background: var(--button-hover);
}

button:disabled {
    background: var(--button-disabled);
    cursor: not-allowed;
    opacity: 0.7;
}

.info {
    color: white;
    text-align: center;
    margin: 5px 0;
    font-size: 14px;
}

.animation-name {
    color: var(--animation-name);
    font-weight: bold;
}