body, html {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

a-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensures the scene is behind the overlay */
}

.overlay-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    width:70%;
    align-items: center;
    z-index: 10; /* Ensures the container is above the a-scene */
}

.overlay-textbox,
.overlay-button {
    opacity: 0.6; /* Semi-translucent by default */
    transition: opacity 0.3s ease; /* Smooth transition for opacity change */
}

.overlay-textbox:focus,
.overlay-button:focus,
.overlay-textbox:hover,
.overlay-button:hover {
    opacity: 1; /* Fully opaque when focused or hovered */
}

.overlay-textbox {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #FF5733;
    border-radius: 5px;
    margin-right: 10px;
    outline: none;
    width: 100%;
    z-index: 11; /* Ensures the textbox is above the a-scene */
    background-color: rgba(255, 255, 255, 0.8); /* Slightly translucent background */
}

.overlay-button {
    padding: 10px 20px;
    background-color: #FF5733;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 11; /* Ensures the button is above the a-scene */
}

.overlay-button:hover {
    background-color: #C70039;
}

