body {
    font-family: sans-serif;
    margin: 0;
    overflow: hidden; /* Prevent scrollbars from canvas */
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#controls {
    padding: 15px;
    background-color: #333;
    color: white;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

#controls label {
    margin-right: 10px;
}

#controls input[type="file"] {
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #555;
}

#instructions {
    font-size: 0.9em;
    margin-top: 8px;
    color: #ccc;
}

#viewer {
    display: flex;
    flex-grow: 1; /* Takes remaining vertical space */
    position: relative; /* For absolute positioning of selectedImageContainer */
}

#sphereCanvas {
    display: block;
    width: 75%; /* Adjust as needed */
    height: 100%;
}

#selectedImageContainer {
    width: 25%; /* Adjust as needed */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background-color: #e0e0e0;
    border-left: 2px solid #ccc;
}

#selectedImage {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    border: 1px solid #aaa;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: none; /* Hidden by default */
}

#noImageSelected {
    font-style: italic;
    color: #555;
}