#backButton {
    display: block; /* Makes the button a block element */
    margin: 20px auto; /* Centers the button horizontally */
    padding: 10px 20px; /* Adjust padding as needed */
    background-color: #6f42c1; /* Background color */
    color: white; /* Text color */
    border: none; /* Removes the border */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Cursor changes to pointer on hover */
    text-decoration: none; /* Removes underline from text */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
    z-index: 10
}

#backButton:hover {
    background-color: #5a3590; /* Slightly darker shade on hover */
}

#hideButton {
    display: block; /* Makes the button a block element */
    margin: 20px auto; /* Centers the button horizontally */
    padding: 10px 20px; /* Adjust padding as needed */
    background-color: #6f42c1; /* Background color */
    color: white; /* Text color */
    border: none; /* Removes the border */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Cursor changes to pointer on hover */
    text-decoration: none; /* Removes underline from text */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
    z-index: 10
}

#hideButton:hover {
    background-color: #5a3590; /* Slightly darker shade on hover */
}


.modal {
    display: none; /* Initially hidden */
    position: fixed; /* Fixed position relative to the viewport */
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%); /* Center the modal */
    width: 60%; /* Adjust the width as needed */
    max-width: 600px; /* Maximum width */
    max-height: 500px;
    overflow: auto;
    height: auto; /* Auto height based on content */
    background-color: white; /* Background color for readability */
    padding: 20px; /* Padding inside the modal */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds shadow for depth */
    border-radius: 10px; /* Optional: Rounded corners */
    box-sizing: border-box; /* Include padding and border in the width and height */
    z-index: 1000; /* Ensure it's above other elements */
}

.modal-content {
    position: relative;
    padding-top: 20px;
    text-align: center; /* Center the text inside the modal */
    /* Add additional styling for the content as needed */
}

.site-background {
    background-color: grey;
}

.audio-controls {
    position: absolute;
    top: 10px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    z-index: 10
    /* Additional styling for controls */
}

.narrator-section {
    width: 1200px;
    background-color: white;
    margin: 0 auto;
    box-sizing: border-box; /* Include border in the width and height calculations */
    border-top: 4px solid #000000;
    border-bottom: 8px solid #000000;
    border-right: 8px solid #000000;
    border-left: 8px solid #000000;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    display: flex;
    align-items: start;
    justify-content: space-between;
    padding: 10px;
    max-height: 210px;
    overflow: auto;
    /* Additional styles for the narrator section */
}

.narrator-section.updated {
    /* Apply one of the animations */
    animation: pop 2s ease-in-out;
}

.narrator-image {
    /* Style as needed, fixed size recommended */
    flex-shrink: 0; /* Prevent the image from shrinking */
    padding: 5px; /* Optional padding around the image */
}

.narrator-text-container {
    flex-grow: 1; /* Allow the text container to take up remaining space */
    overflow-y: auto; /* Add a vertical scrollbar when content overflows */
    max-height: 200px; /* Adjust maximum height as needed */
    padding: 10px; /* Padding inside the text container */
}

.narrator-text-container p {
    margin: 0; /* Remove default paragraph margins */
    /* Additional styling for the text */
}

.room-container {
    position: relative;
    width: 1200px; /* This can be adjusted as needed */
    height: 800px;
    box-sizing: border-box; /* Include border in the width and height calculations */
    border-top: 8px solid #000000;
    border-bottom: 4px solid #000000;
    border-right: 8px solid #000000;
    border-left: 8px solid #000000;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: 0 auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px; /* Adjust size as needed */
    color: #000; /* Adjust color for visibility */
    z-index: 2; /* Ensure it's above other modal content */
}

@keyframes shrinkText {
    to {
        transform: scale(0);
        opacity: 0;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    z-index: 1000; /* Ensure it's on top of other page elements */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@keyframes unblur {
    to {
        transform: scale(0);
        opacity: 0;
    }
}

.shrink-fade {
    animation: shrinkText 1s forwards;
}

.unblur {
    animation: unblur 1s forwards;
}

.text-container {
    background: white; /* Or any color that matches your design */
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    z-index: 1001; /* Above the overlay */
}

.hidden {
    display: none;
    z-index: -1;
}