body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

/* Custom header and link colors */
h3 {
    color: #a50f15;
}

a:link,
a:visited {
    color: #a50f15;
    text-decoration: none;
}

a:hover,
a:active {
    color: #fcae91;
    text-decoration: none;
}

/* Mapbox style */
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}


/* Atlas title top center */
.css-atlas-title {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
    width: 80%;
    /* Sets maximum width of the div to 80% of its parent */
    max-width: 600px;
    /* Logo will not stretch more than 600px */
}

.css-atlas-title img {
    width: 95%;
    /* Makes the image use all available space in the div */
    height: auto;
    /* Keeps the aspect ratio of the image */
}



/* Legend bottom left */
#legend {
    position: absolute;
    bottom: 23px;
    right: 5px;
    text-align: right;
    z-index: 999;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-size: 13px;
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
    width: 200px;
}

.color-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: linear-gradient(to right, #e6e6e5, #fee5d9, #fcae91, #fb6a4a, #de2d26, #a50f15);
    padding: 0 10px;
    box-sizing: border-box;
}

.color-description {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 3px 10px;
    color: #ffffff;
    font-weight: bold;
}

/* Information icon top left for methodology */
#info-icon:hover {
    opacity: 0.8;
}

#info-panel {
    display: none;
    position: absolute;
    top: 50px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    max-height: 800px;
    /* Maximum height of the panel */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: calc(10px + 0.2vw);
    /* Responsive font size */
    overflow-y: auto;
    /* Enables vertical scrolling if content is too tall */
}

/* Toggle DISASTER DATA */
#toggle-counties {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 14px;
    text-align: center;
    color: #de2d26;
}

/* Responsive styles for mobile devices */
@media (max-width: 480px) {
    .css-atlas-title {
        top: 5px; /* Adjusted for better visibility */
        width: 90%; /* More screen usage */
    }

}