html,
head,
body,
#main-container {
    height: 100%;
    width: 100%;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #EE2536;
}

body {
    margin: 0;
    padding: 0;
}

#main-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

nav {
    padding: 1rem;
    border-bottom: 1px solid #000;
    display: flex;
}

.nav-links {
    flex-grow: 1;
    justify-content: end;
    display: flex;
}

.nav-link {
    display: inline-block;
    font-size: .9rem;
}

#content-container {
    flex-grow: 1;
    display: flex;
    min-height: 0;
}

#sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 348px;
    padding: 1rem;
    font-size: 0.9rem;
    overflow-y: scroll;
    box-sizing: border-box;
    background-color: #ffffff;
}

#sidebar>div:last-child {
    margin-top: auto;
}

h3 {
    margin-top: 1rem;
}

#map {
    height: 100%;
    flex-grow: 1;
}

.title {
    font-weight: 600;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid black;
    padding-top: 20px;
    padding-bottom: 10px;
    /* Add desired spacing */
}

.sidebar-header h3 {
    margin: 0;
}

.sidebar-header #selected-area-text {
    font-weight: bold;
    margin-left: 10px;
}

/* Default checkbox styling */
.metric-checkbox {
    display: none;
    /* Hide the default checkbox */
}

/* Custom checkbox styling */
.metric-checkbox+.metric-label {
    position: relative;
    padding-left: 35px;
    /* Adjust the padding as needed */
    cursor: pointer;
}

.metric-checkbox+.metric-label:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    /* Adjust the size of the checkbox */
    height: 16px;
    /* Adjust the size of the checkbox */
    border: 2px solid #ccc;
    /* Checkbox border color */
    border-radius: 50%;
    /* Make it circular */
    background-color: transparent;
    /* Checkbox background color */
}

.metric-checkbox:checked+.metric-label:before {
    background-color: #4188ff;
    /* Checkbox background color when checked */
}

.metric-checkbox:focus+.metric-label:before {
    outline: 2px solid #4188ff;
    /* Checkbox outline color when focused */
}

.metric-checkbox:disabled+.metric-label:before {
    background-color: #e9e9e9;
    /* Checkbox background color when disabled */
    border-color: #e9e9e9;
    /* Checkbox border color when disabled */
}

/* Hide metric details by default */
.metric-details {
    display: none;
    font-size: 12px;
    color: #9a9595;
}

/* Show metric details when checkbox is checked */
.metric-checkbox:checked+.metric-label+.metric-details {
    display: block;
}

#legend-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
}

@media only screen and (max-width: 800px) {
    #content-container {
        flex-direction: column-reverse;
    }

    #map {
        height: 60%;
        flex-shrink: 0;
    }

    #sidebar {
        width: 100%;
    }
}