body {
    margin: 0;
    overflow: hidden; /* Prevent scrollbars */
    font-family: sans-serif;
    background-color: #000;
    color: #fff;
}

#museum-canvas {
    display: block; /* Remove extra space below canvas */
    width: 100%;
    height: 100%;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    text-align: center;
    padding: 20px;
    box-sizing: border-box; /* Include padding in width/height */
}

#loading-content {
    max-width: 600px;
}

#loading-content h1 {
    color: #eee;
}
#loading-content h2 {
    color: #ccc;
    margin-top: 20px;
}
#loading-content ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block; /* Center the list block */
}
#loading-content ul ul {
     padding-left: 20px;
}
#loading-content li {
    margin-bottom: 5px;
}
#loading-status {
    margin-top: 20px;
    font-style: italic;
    color: #aaa;
}


/* UI Elements */
#ui-container {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    gap: 10px; /* Spacing between elements */
    align-items: center; /* Align items vertically */
}

#search-controls {
    display: flex;
    gap: 5px;
}

#search-input {
    padding: 5px 8px;
    border: 1px solid #555;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 3px;
}

#search-button,
#random-button {
    padding: 5px 10px;
    background-color: #444;
    color: #fff;
    border: 1px solid #666;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#search-button:hover,
#random-button:hover {
    background-color: #555;
}

/* Mobile Controls */
#mobile-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 120px; /* Adjust size as needed */
    height: 120px;
    z-index: 10;
    display: none; /* Hidden by default */
}

#joystick-area {
    width: 100%;
    height: 100%;
    background-color: rgba(80, 80, 80, 0.5);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#joystick-handle {
    width: 50px; /* Size of the draggable handle */
    height: 50px;
    background-color: rgba(200, 200, 200, 0.7);
    border-radius: 50%;
    position: absolute; /* Positioned relative to joystick-area */
    cursor: grab;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}


/* Search Results Panel Style (example) */
#search-results-panel {
    position: fixed; /* Or absolutely positioned in 3D space via CSS3DRenderer */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    max-height: 60%;
    overflow-y: auto;
    background-color: rgba(30, 30, 30, 0.95);
    border: 1px solid #666;
    border-radius: 5px;
    padding: 15px;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    color: #eee;
}

#search-results-panel h3 {
    margin-top: 0;
    color: #fff;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

#search-results-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#search-results-panel li {
    padding: 8px 5px;
    cursor: pointer;
    border-bottom: 1px solid #444;
    transition: background-color 0.2s ease;
}
#search-results-panel li:last-child {
    border-bottom: none;
}

#search-results-panel li:hover {
    background-color: #555;
}

#close-search-button {
     position: absolute;
     top: 5px;
     right: 10px;
     background: none;
     border: none;
     color: #aaa;
     font-size: 20px;
     cursor: pointer;
}
#close-search-button:hover {
    color: #fff;
}