body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: auto; 
    box-sizing: border-box;
    scrollbar-color: #0B1528 !important;
    scrollbar-width: thin !important;
    display: flex;
    flex-direction: column;
    background-color: #b8ecfc;
}

::-webkit-scrollbar {
    width: 10px;
    background:#0B1528;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #93bdca;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background:#0B1528;
} 

table, th, td {
    border: 1px solid;
}

ol{
    padding-inline-start: 20px;
}

ul {
    padding-left: 20px;
}

#img-contents img{
    max-width: -webkit-fill-available;
}

#table-contents, #img-contents{
    text-align: -webkit-center;
}

#explanation{
    border: 2px solid black !important;
}

.help-info-map .help-info-graph {
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 5s ease; 
}

.help-info-map.visible .help-info-graph.visible {
    max-height: 1250px; 
}

header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 20px;
    background-color: #b8ecfc;
    color: #0B1528;
    width: 100%;
    box-sizing: border-box; 
    height: 100px; 
    z-index: 1000;
}

.quicksand-header {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: bold;
  }
  
 .quicksand-subheader {
     font-family: "Quicksand", sans-serif;
     font-optical-sizing: auto;
     font-weight: 570;
     font-style: medium;
 }

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%; 
}

.logo {
    height: 100%; 
    margin-right: 15px;
    transition: height 0.3s ease; 
}

.project-name {
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.project-name h1 {
    margin: 0;
    font-size: 2rem;
    color: #0B1528;
}

.project-name p {
    margin: 0;
    font-size: 1.5rem;
    color: #0B1528; 
}

#map {
    flex-grow: 1; 
    width: 100%;
    position: relative;
}

#air-quality-scale {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 1001; 
    border-radius: 25px;
    overflow: hidden;
    width: 60%; 
}

.scale-section {
    flex: 1; 
    padding: 10px 0; 
    text-align: center;
    color: black; 
    font-size: 1rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.ccc-logo-overlay {
    position: absolute;
    bottom: 50px; 
    left: 20px;  
    width: 200px; 
    border-radius: 5px;
    padding: 5px;
    z-index: 1000; 
}

.modal {
    display: none; 
    justify-content: center; 
    align-items: center; 
    position: fixed; 
    z-index: 3000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.4); 
}

#mini-map {
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-right: 10px;
    max-width: 500px;
}

.dropdown {
    position: relative;
    display: block;
    width: 60%;
}

.button-disabled {
    background-color: grey;
    cursor: not-allowed;
}

.dropdown-button {
    background-color: #f9f9f9;
    color: #333;
    padding: 10px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-family: "Quicksand", sans-serif;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    z-index: 1;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
}

/* Style for each option */
.dropdown-content label {
    display: block;
    padding: 8px 12px;
    cursor: pointer;
}

/* Show the dropdown content when the button is clicked */
.dropdown.active .dropdown-content {
    display: block;
}

.modal-content {
    background: #b8ecfc; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 900px; 
    max-height: 80%;
    border-radius: 10px;
    z-index: 3010; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    overflow-y: auto;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}


nav .tabs {
    list-style: none;
    display: flex; 
    margin: 0;
    padding: 0;
}

nav .tabs li {
    margin-left: 20px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    white-space: nowrap; 
    font-size: 1.2rem;
}

nav .tabs li img {
    margin-right: 10px;
    max-height: 1.2rem;    
}

nav .tabs li.active {
    background-color: #67a1c8; 
}

.hamburger-menu {
    display: none; 
}

.leaflet-popup-content {
    margin: unset !important;
    background: none !important;
}

.tooltip-popup{
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 570;
    color: #0B1528;    
}

select {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 570;
    font-style: bold;    
    color: #333 !important;
}

select option {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 570;
    font-style: bold;
}

.text-icon {
    display: flex;
    text-align: justify;
    align-items: center; 
    gap: 15px; 
}

.leaflet-popup-content-wrapper{
    background: #b8ecfc !important;

}

.leaflet-popup-tip{
    background-color: #b8ecfc !important;
}

.leaflet-popup-close-button{
    font-size: 25px !important;
    color: #0B1528 !important;
    padding: 5px !important;
}

#graph{
    padding-bottom: 45px;
}

#air-quality-scale-location {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0; 
    display: flex; 
}

@media (min-width: 1320px) {
    #locations-tab-content {
        padding-left: 17%;
        padding-right: 17% !important; 
    }
    #graph_container {
        padding-left: 17%;
        padding-right: 17%; 
    }
}

@media (min-width: 0px) and (max-width: 1320px) {
    #graph_container {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-height: 700px) {
    header {
        padding-top: 3px;
        padding-bottom: 3px;
        max-height: 80px;
    }
    .ccc-logo-overlay {
        position: absolute;
        bottom: 10px;
    }
    #air-quality-scale {
        bottom: 10px;
    }
    .logo {
        height: 80%;
    }
    #locations{
        overflow-y: scroll;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 10px; 
    }
    .logo {
        height: 60px; 
    }
    #map {
        position: relative;
        flex-grow: 1; 
    }
    .ccc-logo-overlay {
        display: none; 
    }
    .hamburger-menu {
        display: inline-block; 
        font-size: 1.5rem;
        padding: 10px;
    }
    nav .tabs {
        display: none;
        flex-direction: column;        
        background: #b8ecfc;
        position: fixed; 
        top: 60px; 
        right: 3px;
        width: 200px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
        border-radius: 5px;
        padding: 0;
        z-index: 2000; 
    }
    nav .tabs li {
        margin: 0;
        padding: 15px 10px;
    }
    nav .tabs li:last-child {
        border-bottom: none; 
    }
    #air-quality-scale {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0; 
        display: flex; 
    }
    #air-quality-scale-location {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0; 
        display: flex; 
    }
    .scale-section {
        padding: 10px 5px; 
        font-size: 0.75rem; 
    }
    
    #mini-map {
        display: none;
        margin-block-start: 0.67em;
        margin-block-end: 0.67em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
    }
    #download-data-tab{
        display: none;
    }
}

@media (min-width: 1024px ) {
    .project-name h1{
        font-size: 1.2rem !important;
    }
    .project-name p{
        font-size: 1rem !important;
    }
}    

@media (max-width: 1024px) {
    .project-name h1{
        font-size: 0.8rem !important;
    }
    .project-name p{
        font-size: 0.8rem !important;
    }
    nav .tabs li {
        font-size: 0.9rem;
        margin-left: 0px;
    }
}    

@media (max-width: 768px) {
    .project-name h1{
        font-size: 1.2rem !important;
    }
    .project-name p{
        font-size: 1.2rem !important;
    }
    nav .tabs li {
        font-size: 1.2rem;
    }
}    

@media (max-width: 375px) {
    .project-name h1{
        font-size: 0.8rem !important;
    }
    .project-name p{
        font-size: 0.8rem !important;
    }
}    

#locations {
    display: none;
}

#locations-tab-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-right: 10px;
}

#control-section {
    display: flow;
    flex: 0 0 30%; 
    padding: 10px; 
    color: #0B1528;
}

#control-section h1{
    font-size: 1.2rem;
}

#control-section select {
    width: 60%;
}

#graph {
    flex: 0 0 69%; 
    width: 100%;
    max-width: inherit !important;
}

@media (max-width: 768px) {
    body, html {
        overflow: auto;
    }
    #locations-tab-content {
        flex-direction: column; 
    }
    #control-section {
        text-align: center;
    }
    #control-section, 
    #graph {
        flex: 0 0 100%; 
    }
    #graph_container{
        padding: 0%;
    }
}

#controls {
    margin: 20px 0;
}

#controls div {
    margin-bottom: 5px;
}

label {
    font-size: 1rem;
    margin-right: 5px;
}

select {
    padding: 5px;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

button.apply-button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #0B1528;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button.apply-button:hover {
    background-color: #0073e6;
}


.tooltip-icon {
    height: 1rem;
    cursor: pointer;
    vertical-align: middle;
}

.tooltip-icon:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.8rem;
    top: -25px;
    left: 20px;
    white-space: nowrap;
    min-width: 300px;
}

.custom-marker .pm-circle {
    width: 40px;
    height: 40px;
    background-color: #1e90ff; 
    color: white; 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid white; 
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3); 
}

.pm-circle, .good, #tb_good{
    background-color: #00bfff !important;
}

.pm-circle, .acceptable, #tb_acceptable{
    background-color: #1e90ff !important;
}

.pm-circle, .moderate, #tb_moderate{
    background-color: #ffd700 !important;
}

.pm-circle, .poor, #tb_poor{
    background-color: #ffa500 !important;
}

.pm-circle, .very-poor, #tb_vpoor{
    background-color: #d9543c !important;
}

.tooltip-popup {
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.tooltip-popup::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: #f9f9f9 transparent transparent transparent;
}