/*
  File: sitemap-search-overlay.css
  Version: 3.9
  Nickname: Overlay Styles (Streamlined + Scrollbar Fix + Very High Content + Percentage Layout + Calc Input Width + Overlay Padding + Em Units)
  Timestamp: 2025-04-05 09:36 UTC (London, Ontario is UTC-4 during Daylight Saving Time)
*/

/* Base font size (you might want to adjust this) */
html {
    font-size: 16px; /* Default browser font size */
}

/* Overlay container */
#searchOverlay.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    transition: opacity 0.4s ease-in-out;
    padding: 3vw; padding-bottom: 5em;
    box-sizing: border-box;
}

@media only screen and (max-width: 1200px) {
  #searchOverlay.search-overlay {
	  padding: 2vw; }
  }

@media only screen and (max-width: 600px) {
  #searchOverlay.search-overlay {
	  padding: 1vw; }
  }

/* Content within the overlay */
#searchOverlay .search-overlay-content {
    position: relative;
    box-sizing: border-box;
    background-color: #fefefe;
    margin: 2% auto 10% auto;
    padding: 1.25em 3.25em 1.25em 3.25em; 
    border: 0.0625em solid #ccc;
    width: 85%;
    box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.15);
    border-radius: 0.5em;
    line-height: 1.6;
    max-height: 90vh;
    overflow-y: auto;
}

/* Close button */
#searchOverlay .close-btn {
    color: #888;
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
    width: 1.5em; 
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    border-radius: 0.25em;
    background-color: #f0f0f0;
}

#searchOverlay .close-btn:hover,
#searchOverlay .close-btn:focus {
    color: #333;
    opacity: 1;
    background-color: #e0e0e0;
}

/* Heading */
#searchOverlay .search-overlay-content h1 {
    margin-top: 0;
    margin-bottom: 0.9375em; 
	text-align: center;
    font-size: 2em;
    color: #333;
}

/* Instruction text */
#searchOverlay .search-overlay-content .instruction {
    text-align: center;
    color: #666;
    margin-bottom: 1.25em;
    font-size: 0.9375em;
}

/* Search box container */
#searchOverlay .search-overlay-content .search-box {
    margin-bottom: 1.5625em;
    display: flex;
    align-items: center;
    line-height: 1.7;
    padding: 0 2.5em; 
}

/* Search input field */
#searchOverlay .search-overlay-content #searchInputOverlay {
    flex-grow: 1;
    padding: 0.75em;
    border: 0.0625em solid #aaa;
    border-radius: 0.25em 0 0 0.25em;
    font-size: 1.0625em;
    margin-left: 0;
    box-sizing: border-box;
    width: calc(100% - 3.75em); /* Subtract an estimated width for the close button area (60px) */
}

/* Search button */
#searchOverlay .search-overlay-content #searchButtonOverlay {
    flex-grow: 0;
    width: auto;
    padding: 0.75em 1.125em;
    background-color: #0080d0;
    color: white;
    border: none;
    border-radius: 0 0.25em 0.25em 0; 
    cursor: pointer;
    font-size: 1.0625em;
    margin-left: 0.625em;
    box-sizing: border-box;
    text-align: center;
}

#searchOverlay .search-overlay-content #searchButtonOverlay:hover {
    background-color: #0066a3;
}

/* Results container */
#searchOverlay .search-overlay-content #resultsOverlay {
    margin-top: 0.625em !important;
    border-top: 0.0625em solid #ddd;
    padding-top: 0.9375em !important; 
    line-height: 1.6;
}

/* Result links */
#searchOverlay .search-overlay-content #resultsOverlay a {
    display: block;
    margin-bottom: 0;
    color: blue;
    text-decoration: none;
    font-size: 1.05em; /* Approximation of previous value */
    transition: color 0.3s ease-in-out;
}

#searchOverlay .search-overlay-content #resultsOverlay a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Results list */
#searchOverlay .search-overlay-content #resultsOverlay ul {
    list-style-type: disc;
    padding-left: 0; /* 25px */
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Result list items */
#searchOverlay .search-overlay-content #resultsOverlay li {
    margin-bottom: 0.375em;
}

/* Result title text */
#searchOverlay .search-overlay-content #resultsOverlay li span.title-text {
    font-size: 0.9em; /* Approximation */
    color: #777;
    font-style: italic;
    display: block;
}

/* Error messages */
#searchOverlay .search-overlay-content .error-message {
    color: #cc0000;
    font-weight: bold;
    margin-top: 0.9375em;
    line-height: 1.7;
    text-align: center;
}

/* No results message */
#searchOverlay .search-overlay-content .no-results {
    font-style: italic;
    color: #777;
    line-height: 1.7;
    text-align: center;
}