
/* CSS */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Navbar Responsiveness */
.navbar {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping for smaller screens */
    align-items: center;
    background: #007cbc;
    padding: 10px;
    gap: 10px;
    position: relative;
}

/* Dropdowns & Search */
.navbar select, .navbar input {
    padding: 8px;
    font-size: 16px;
}

/* Search Results appear BELOW search box */
#searchResults {
    list-style: none;
    margin: 0; /* Removes any default margin */
    padding: 0; /* Removes default padding */
    background: #fff; /* Ensures a visible background */
    border: 1px solid #ccc; /* Adds a light border for distinction */
    position: absolute; /* Allows the results to overlay on top of other elements */
    width: calc(100% - 20px); /* Matches the search bar width, adjusting for padding */
    top: 100%; /* Positions the list directly below the search bar */
    left: 0; /* Aligns with the search bar's left edge */
    z-index: 9999; /* Overrides stacking issues */
    max-height: 200px; /* Adds a limit to height for better usability */
    overflow-y: auto; /* Enables scrolling if the results exceed max-height */
    display: block; /* Ensures it is visible */
    visibility: visible; /* Makes it display properly */
    opacity: 1; /* Fully opaque */
}

#searchResults li {
    padding: 10px; /* Adds some space within each list item */
    border-bottom: 1px solid #eee; /* Visually separates each result */
    cursor: pointer;
}

#searchResults li:hover {
    background: #f9f9f9; /* Adds hover feedback */
}

/* Content Layout */
.container {
    display: flex;
    height: calc(100vh - 60px); /* Adjust for navbar height */
}

.content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0; /* Only top and bottom padding */
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.textLayer {
    position: absolute;
    pointer-events: none; /* Prevent interaction with the text layer */
    z-index: 100;
}

.textLayer span {
    position: absolute;
    background: none;
    font-family: sans-serif;
    white-space: pre;
    transform-origin: 0 0;
}

/* Informational Message (Compact) */
.info-message {
    font-size: 12px;
    color: white;
    text-align: center;
    padding: 5px 0;
    margin: 0;
    line-height: 1.4;
}

/* Adjust layout for tablets and smaller screens */
@media (max-width: 768px) {
    .info-message {
        order: -1; /* Places the message above the other elements */
        width: 100%; /* Makes it span the full width */
        border-radius: 5px;
    }
    .navbar select, .navbar input {
        flex: 1; /* Expands these elements to fill space */
    }
}