body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }

#map-tooltip {
    position: absolute;
    background-color: #fff;
    color: black;
    padding: 10px;
    border-radius: 8px;
    font-family: "GT-America", sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;  /* Makes the tooltip click-through */
    z-index: 10;           /* Ensures the tooltip stays on top of other elements */
    display: none;         /* Start hidden */
    /* add opacity */
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

#map-tooltip table {
    margin-top: 5px;
    width: 100%;
}

#map-tooltip th, #map-tooltip td {
    text-align: left;
    padding: 2px;
}

#map-tooltip big {
    font-size: 1.2em;
}

.note-box {
    position: absolute;      /* Keeps the position relative to the viewport */
    bottom: 10px;            /* Sets distance from the bottom of the viewport */
    left: 50%;               /* Centers the box horizontally based on its left edge */
    transform: translateX(-50%); /* Moves the box back to the left by half its width */
    display: flex;           /* Continues to use flexbox for internal alignment */
    flex-direction: column;  /* Stacks children vertically */
    align-items: center;     /* Aligns children to the center of the flex container */
    /* padding: 16px;           /* Maintains padding around the content */
    /*background-color: #fff;  /* Keeps the white background */
    /*border: 1px solid #ccc;  /* Maintains the border */
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Keeps the shadow for depth */
    /*border-radius: 4px;      /* Keeps the corners rounded */
    font-family: "GT-America", sans-serif; /* Ensures font consistency */
    color: #444;             /* Keeps the text color */
    z-index: 9999;           /* Ensures it stays on top of other content */
    width: 30%;              /* You may adjust based on your design needs */
    max-width: 600px;        /* Adjust maximum width as needed */
    min-width: 165px;        /* Maintains minimum width */
}


#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

.note-box a {
    color: #7000FF;
    text-decoration: underline;
}

.button {
    font-family: "GT-America", sans-serif; /* Matching the paragraph font */
    font-size: 1rem; /* Slightly smaller than paragraph text for distinction */
    font-weight: 500; /* Making it bolder than the paragraph for emphasis */
    color: white; /* High contrast text color for readability */
    background-color: #7000FF; /* A vibrant color to make the button stand out */
    border: none; /* No border for a cleaner look */
    border-radius: 1px; /* Slightly rounded corners for a modern appearance */
    padding: 0.4rem .8rem; /* Adequate padding for a comfortable click area */
    text-align: center; /* Centering text inside the button */
    cursor: pointer; /* Cursor changes to pointer to indicate interactivity */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for 3D effect */
    margin-bottom: 1rem; /* Same bottom margin as paragraphs for consistent spacing */
    display: inline-block; /* Ensures the button doesn't take full width */
    border-radius: 10%;
}

.button:hover {
    background-color: #CDBDEF; /* Darker shade on hover for visual feedback */
}

.button:focus {
    outline: none; /* Removes outline on focus to maintain style */
    /* box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); /* Blue glow for accessibility */
}

#geocoder-container {
    width: 100%;
    font-family: "GT-America", sans-serif;
}

#buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* This spreads out the buttons evenly */
    gap: 2px; /* Adds space between buttons */
    padding: 2px 0; /* Optional: Adds some padding inside the buttons container */
    transition: background-color 0.3s ease, outline 0.3s ease; /* Smooth transitions */
    border-radius: 5%;
}


#resetMap {
    position: absolute;
    bottom: 6.5em;
    left: 50%;
    transform: translateX(-50%);
    /* padding: 10px 20px; */
    z-index: 10; /* Ensure it's above the map layers */
    cursor: pointer;
    display: none; /* Start hidden */
}

#year-filter {
    top: 20px;
    left: 20px;
    z-index: 1;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#allYearsCheckbox {
    margin-left: 10px;
    margin-right: 10px;
}

#yearSlider {
    width: 100%; /* Adjust the width as needed */
    flex-grow: 1; 
    margin-right: 5px;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.slider-labels span {
    position: relative;
    font-size: 12px;
}

/* Adjust the slider thumb to fit the labels if necessary */
input[type="range"] {
    width: 100%;
    -webkit-appearance: none; /* Overrides default appearance */
    appearance: none;
    height: 5px;
    background: #ddd;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]:hover::-webkit-slider-thumb {
    background: #CDBDEF; /* Color on hover */
}

input[type="range"]:hover::-moz-range-thumb {
    background: #CDBDEF; /* Color on hover */
}

/* Styling for WebKit browsers (Chrome, Safari, etc.) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Ensure width and height are the same for a perfect circle */
    background: #7000FF; /* Default thumb color */
    cursor: pointer;
    border-radius: 50%; /* Makes it circular */
    transition: background-color 0.3s ease; /* Smooth color transition */
}

/* Styling for Mozilla Firefox */
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #7000FF; /* Default thumb color */
    cursor: pointer;
    border-radius: 50%; /* Makes it circular */
    transition: background-color 0.3s ease; /* Smooth color transition */
}


input[type="range"]:disabled {
    background: #ccc; /* Gray out the slider track */
    cursor: not-allowed; /* Show that it's not interactive */
    opacity: 0.5; /* Make the slider look faded */
}

input[type="range"]:disabled::-webkit-slider-thumb {
    background: #888; /* Change thumb color to darker gray */
}

input[type="range"]:disabled::-moz-range-thumb {
    background: #888; /* Change thumb color to darker gray for Firefox */
}

.button.disabled, .button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

#sliderValue {
    font-size: 23px;
    margin-top: 5px;
}

.selectedText {
    font-size: .75em;
    color: grey;

}

.small-note-box {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
}

.info-icon {
    position: relative;
    display: inline-block;
    color: #2c3e50; /* Dark blue-grey for visibility */
    cursor: help;
}

.info-icon svg {
    fill: #2c3e50; /* SVG fill color, can adjust as needed */
}

.tooltip-text {
    visibility: hidden;
    width: 200px; /* Adjust width based on your content */
    background-color: #fff;
    font-family: "GT-America", sans-serif;
    font-size: 0.8em;
    color: #333;
    text-align: left;
    border-radius: 1em;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -18em; /* Use half of the width to center the tooltip */
    opacity: 0;
    transition: opacity 0.6s; 
    /* reduce the curvature of the box */
    border-radius: 10px;
    /* add padding */
    padding: 1.5em;
}

.info-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

#showAllYears {
    font-family: "GT-America", sans-serif;
    font-size: .6em;
    text-align: right;
}

#zoom-text-box {
    position: absolute;    /* Keeps the element positioned relative to the viewport */
    top: 10px;             /* Positions the box 10px from the top of the screen */
    left: 50%;             /* Positions the left edge of the box at the center of the screen */
    transform: translateX(-50%); /* Moves the box to the left by half its width, centering it */
    background-color: #fff; /* Sets the background color to white */
    padding: 10px;         /* Adds some padding inside the box for content spacing */
    border-radius: 8px;    /* Applies rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Adds a subtle shadow for depth */
    z-index: 100;          /* Ensures the box is above other content but below overlays */
    width: auto;           /* Adjust width automatically based on content */
    max-width: 400px;      /* Ensures the box does not exceed 400px width */
    border: 1px solid #ccc; /* Optional: adds a light border */
    font-family: "GT-America", sans-serif; /* Ensures font consistency */
    display: none;
}  
  .info-icon img {
    display: inline-block; /* Ensures the image is aligned correctly */
    vertical-align: middle; /* Aligns the icon vertically with the text */
  }

  .marker {
    background-color: #7000FF;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: block;
}

.legend {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Ensures the legend appears above other map layers */
    font-family: 'GT-America', sans-serif;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

/* Media query for devices with a max width of 600px */
@media (max-width: 600px) {
    .legend {
        top: 65px; /* Adjust this value based on the height of your search bar */
        left: auto; /* Resetting left to default */
        right: 10px; /* Align to the right under the search bar on mobile */
        padding: 5px;
        font-size: 12px; /* Smaller font size for mobile devices */
    }
    .legend-circle {
        width: 20px; /* Smaller circles for mobile */
        height: 20px;
    }
    .legend-item {
        margin-bottom: 3px; /* Less space between items for mobile */
    }
}

  