body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Slider styles */
input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#vr-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

#vr-button {
    padding: 12px 24px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.3s;
}

#vr-button:hover {
    background-color: #3367d6;
}

#vr-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#info {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    pointer-events: none;
}

#info p {
    margin: 5px 0;
}

#hand-tracking-status {
    font-weight: bold;
}

#hand-position-info {
    font-family: monospace;
    margin: 5px 0;
}

#pinch-status {
    font-weight: bold;
    font-family: monospace;
    margin: 5px 0;
    transition: color 0.3s ease;
}

.controls-info {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 10px;
}

.pinch-info {
    font-size: 0.9em;
    font-weight: bold;
    color: #ffff00;
    margin-top: 10px;
}

/* Floating menu styles */
#floating-menu {
    position: absolute;
    top: 50px;
    right: 20px;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    pointer-events: auto;
    user-select: none;
    max-height: 80vh;
    overflow-y: auto;
}

#floating-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    cursor: move;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#floating-menu h3 {
    margin: 0;
    font-size: 16px;
}

#floating-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

.slider-container {
    margin-bottom: 12px;
}

.slider-container label {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.slider-value {
    display: inline-block;
    width: 40px;
    text-align: right;
    font-family: monospace;
    margin-left: 8px;
}

.slider-row {
    display: flex;
    align-items: center;
}

.slider-row input[type="range"] {
    flex: 1;
}

.menu-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-section h4 {
    margin: 5px 0;
    font-size: 14px;
    color: #4285f4;
}

.menu-button {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    margin: 5px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.menu-button:hover {
    background-color: #3367d6;
}

.collapsed {
    height: 30px;
    overflow: hidden;
}
