body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden; /* Prevent scrollbars */
    font-family: Arial, sans-serif;
}
.header {
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.2);
    z-index: 40;
    position: relative;
    text-align: left;
    font-size: 28px;
    font-weight: normal;
    user-select: none;
}

.bannerClick{ /*id="topBannerLink"*/
    cursor: pointer;
}

/* */
/* Mouseover tooltip for planned projects */
/* */
/* */
.tooltip {
    position: fixed;
    background: rgba(250, 250, 250, 0.65);
    color: rgb(17, 17, 17);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    display: none;
    z-index: 9999;
    max-width: 300px

}

/* */
/* Download email submission form */
/* */
/* */
#emailOverlay {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    /*width: 100%; height: 100%;*/
    /*background: rgba(0, 0, 0, 0.6);*/
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}



/* Modal box */
#emailPopupForm {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

#accessSection{
    display: flex;
    cursor: pointer;
}

input[type="text"].downloadInput, input[type="email"].downloadInput {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    box-sizing: border-box;
}

button.downloadInput {
    padding: 8px 8px;
    margin-left: auto;
    display: block;
}

.emailFormMessage{
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: .85rem;
    max-width: 400px;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* */
/*Colored buttons by ID*/
/* */
/*
https://paletton.com/#uid=7500w0kllllaFw0g0qFqFg0w0aF

existTxButton layer-toggle2  navy blue #163F58 #28536C
subsButton layer-toggle2 navyblue #163F58 #28536C 
utilitiesButton layer-toggle2 lighter blue #154557 #27586B
naturalLandsButton layer-toggle2 green #4E9231 #76B75B
communitiesButton layer-toggle2 purple #7A296B #984C8A
*/
#existTxButton, #subsButton{
    /*background-color: #bbcefc;*/
    color: #3a5e75;
    font-weight: bold;
}   
#existTxButton .gearContainer svg, #subsButton .gearContainer svg{
    fill: #3a5e75;
}
#existTxButton.toggled .gearContainer svg, #subsButton.toggled .gearContainer svg{
    fill: white;
}
#existTxButton.toggled, #subsButton.toggled {
    background-color: #3a5e75;
    color: white;
}


#utilitiesButton{
    /*background-color: #a4cfe0;*/
    color: #15668c;
    font-weight: bold;
}
#utilitiesButton .gearContainer svg{
    fill: #15668c;
}
#utilitiesButton.toggled .gearContainer svg{
    fill: white;
}
#utilitiesButton.toggled{
    background-color: #15668c;
    color: white;
}

#generationButton{
    /*background-color: #a4cfe0;*/
    color: #15668c;
    font-weight: bold;
}
#generationButton .gearContainer svg{
    fill: #15668c;
}
#generationButton.toggled .gearContainer svg{
    fill: white;
}
#generationButton.toggled{
    background-color: #15668c;
    color: white;
}



#naturalLandsButton{
    /*background-color: #d0efc2;*/
    color: #73cd4c;
    font-weight: bold;
}
#naturalLandsButton .gearContainer svg{
    fill: #73cd4c;
}
#naturalLandsButton.toggled .gearContainer svg{
    fill: white;
}
#naturalLandsButton.toggled{
    background-color: #73cd4c;
    color: white;
}
#naturalLandsButton .gearContainer.toggled {
    background-color: #a7e18d;
    fill: white;
}

#communitiesButton{
    /*background-color: #e2b5da;*/
    color: #993c88;
    font-weight: bold;
}

#communitiesButton .gearContainer svg{
    fill: #993c88;
}
#communitiesButton.toggled .gearContainer svg{
    fill: white;
}
#communitiesButton.toggled{
    background-color: #993c88;
    color: white;
}
#communitiesButton .gearContainer.toggled {
    background-color: #b175a6;
    fill: white;
}

#communitiesButton.toggled .gearContainer svg{
    fill: white;
}

#infrastructureButton{
    /*background-color: #a4cfe0;*/
    color: #555555;
    font-weight: bold;
}
#infrastructureButton .gearContainer svg{
    fill: #555555;
}
#infrastructureButton.toggled .gearContainer svg{
    fill: white;
}
#infrastructureButton.toggled{
    background-color: #555555;
    color: white;
}

#infrastructureButton .gearContainer.toggled {
    background-color: #999;
    fill: white;
}

/* */
/*Horizon citation*/
/* */
.floating-citation {
    font-size: 14px;
    color: black;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    white-space: nowrap;
}
.horizon-citation {
    font-size: 10px;
    color: black;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 5px;
    text-align: left;
    white-space: nowrap;
    user-select: none;
    position: absolute;
    bottom: 20px;
    right: 70px;
    z-index: 29;
}

.loading-status {
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: black;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), -4px 0 8px rgba(0,0,0,0.1), 4px 0 8px rgba(0,0,0,0.1);
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
}

.overlay {
    position: absolute;
    top: 0;
    left: 270px;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    transition: background 1s ease;
    z-index: 50;
    pointer-events: auto;

}

.overlay.minimized {
    left: 70px;
}

.layer-group-label {
    font-size: 14px;
    color: black;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    white-space: nowrap;
    user-select: none;
}


td {
    width: auto;
}
.container {
    display: flex;
    flex: 1;
    position: relative;
}

.sidebar {
    background-color: white;
    width: 250px;
    padding: 10px;
    box-shadow: 2px 0px 4px -2px rgba(0, 0, 0, 0.2);
    position: absolute;
    z-index: 40;
    height: 100%;
    transition: width 0.3s ease;
    overflow: hidden;
}
.sidebar.minimized {
    width: 50px;
}

.sidebar .icon {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    gap: 10px;
}
.sidebar .icon div {
    display: flex;
    align-items: center;
    height: 40px; /* Ensure consistent height for icon divs */
    padding-left: 10px; /* Add spacing to the left */
    cursor: pointer; /* Pointer cursor on hover */
}
.sidebar .icon svg {
    width: 30px;
    height: 30px;
    fill: gray;
    flex-shrink: 0; /* Prevent shrinking */
    user-select: none;
}
.sidebar .icon span {
    margin-left: 10px;
    font-size: 16px;
    transition: opacity 0.3s ease;
    white-space: nowrap; /* Prevent width changes */
    user-select: none;
}
.sidebar.minimized .icon span {
    opacity: 0;
}

.tabButton {
    width: 100%;
}
.tabButton:hover {

}

.childSVG {
    user-select: none;
    user-drag: none;

}

.tabButton:hover .svg-container .childSVG  {
    
}
.tabButton:hover span  {
    /*font-weight: bold;*/
    color: blue;

}
.tabButton.toggled span  {
    /*color: blue;*/
}
.tabButton.toggled {
    background-color: lightdarkgray;
}

.map-wrapper {
    position: relative;
    flex: 1;
    height: 100%;
}

.map-container {
    height: 100%;
    z-index: 0; /* Send Leaflet map to lowest z-index */
    position: relative;
    display: flex;
}

#map {
    width: 100%;
    height: 100%;
    flex: 1; /* Ensure the map fully expands */
}

.top-left-controls {
    position: absolute;
    top: 10px;
    left: 270px; /* Ensure 5px space from the sidebar */
    z-index: 30; /* Ensure it stays on top */
    transition: left 0.3s ease;
    display: flex;
    flex-direction: row;
}

.plannedOptionsRow {
    display: none;
}

.plannedOptions.toggled {
    display: block;
}

.secondaryToggleRow {
    display: "none";
}

.secondaryToggleRow.toggled {
    display: inline-block;
}

#plannedOptions {
    margin-left: 0px;
}


.top-right-controls {
    position: absolute;
    top: 10px;
    right: 10px; /* Ensure 5px space from the sidebar */
    z-index: 30; /* Ensure it stays on top */
    transition: left 0.3s ease;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

#top-right-second-row{
    position: absolute;
    right: 60px;

}
.bottom-left-controls {
    position: absolute;
    bottom: 10px;
    left: 270px; /* Ensure 5px space from the sidebar */
    max-width: calc(100% - 200px);
    /*right:100px;*/
    z-index: 30; /* Ensure it stays on top */
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}
.bottom-right-controls {
    position: absolute;
    bottom: 10px;
    right: 10px; /* Ensure 5px space from the sidebar */
    z-index: 30; /* Ensure it stays on top */
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}
.top-left-controls.minimized {
    left: 70px;
}

.top-left-controls.minimized, .bottom-left-controls.minimized {
    left: 70px;
    max-width: calc(100% - 200px);
}

.share-control {
    background-color: white;
    border-radius: 50px; /* Updated border radius */
    padding: 5px 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-left: 5px;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.share-control:hover {
    background-color: #d3eaf2;
    cursor: pointer;
}
.share-control:active {
    background-color: blue;
    color: white;
}

 .map-control {
    background-color: white;
    border-radius: 50px; /* Updated border radius */
    padding: 5px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    margin-left: 5px;
    user-select: none;
    display: inline-block;
    align-items: center;
    cursor: pointer;
    border: solid white;
}
.map-control:hover, .zoom-in:hover, .zoom-out:hover, .home-button:hover, .location-button:hover {
    background-color: #d3eaf2;
    cursor: pointer;
}
.map-control:hover {
    /*background-color: lightblue;*/
    border: solid black;
}
.map-control.toggled {
    background-color: #40ABFD;;
    color: white;
}

.zoom-in, .zoom-out, .home-button, .location-button {
    background-color: white;
    border-radius: 50px; /* Updated border radius */
    padding: 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    margin-left: 10px;
    user-select: none;
}
.zoom-in:active, .zoom-out:active, .home-button:active, .location-button:active {
    background-color: blue;
    color: white;
}

.basemapPopup {
    display: none;
    padding: 10px;
    z-index: 35;
    user-select: none;
}

#bottom-left-secondRow {
    display: inline-block;
}

.mapThumb {
    background-color: white;
    padding: 5px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    cursor: pointer;
    border: solid white;
}
.mapThumb:hover {
    background-color: lightblue;
}
.mapThumbChild {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5px;

}
.basemapSelected {
    /*background-color: gray;*/
    border: solid black;
    background-color: lightblue;
}


/* */
/* Layer buttons */
/* */
#layerButtonContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.layer-toggle {
    display: inline-flex;
    padding: 5px 10px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border-radius: 15px;
    border: 2px solid white;
    color: black;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-left: 5px;
    font-size: 14px;
}

.layer-toggle:hover {
    border: 2px solid black;
    background-color: #d3eaf2
}

.layer-toggle.toggled {
    background-color: #40ABFD;
    color: white;
}

.layer-toggle.disabled {
    background-color: #f0f0f0;
    color: #e0e0e0;
    pointer-events: none;
    cursor: not-allowed;
}


.layer-toggle .layer-toggle-label{
    border-right: 1px solid #BBBBBB;
    margin-right: 3px;
    padding-right: 3px;
}

.layer-toggle.toggled .layer-toggle-label{
    border-right: 1px solid #FFFFFF;
}

.layer-toggle img {
    vertical-align: middle;
    height: 14px;
    width: 14px;
    object-fit: contain;
}

.layer-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #eee;
    color: #222;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

#infoPageAccessButton{
    background-color: #40ABFD;
    color: white;
}

#infoPageDownloadZipButton{
    background-color: #40ABFD;
    color: white;
    display: none;
}

#infoPageDownloadXLSButton{
    background-color: #40ABFD;
    color: white;
    display: none;
}

/* */
/* Layer button with options gear */
/* */
.layer-toggle2 {
    display: flex;
    padding: 0px 0px;
    justify-content: center;
    align-items: stretch;
    cursor: pointer;
    user-select: none;
    border-radius: 15px;
    border: 2px solid white;
    color: black;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-left: 5px;
    font-size: 14px;
}

.layer-toggle2:hover {
    border: 2px solid black;
    /*background-color: #d3eaf2*/
}

.layer-toggle2.toggled {
    background-color: #40ABFD;
    color: white;
}

.layer-toggle2.disabled {
    background-color: #f0f0f0;
    color: #e0e0e0;
    pointer-events: none;
    cursor: not-allowed;
}


.layer-toggle2 .layer-toggle-label{
    display: flex;
    align-items: center;
    border-right: 1px solid #BBBBBB;
    padding-right: 3px;
    border-radius: 15px 0 0 15px; /* Rounded only on the left */
    padding-left: 10px;
    padding-top:  5px;
    padding-bottom: 5px;
}

.layer-toggle2 .layer-toggle-label:hover{
    /*background-color: #d3eaf2*/
    /*color: #444;*/
}
.layer-toggle2.toggled .layer-toggle-label{
    border-right: 1px solid #FFFFFF;
}



.gearContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
    padding-left: 5px;
    padding-top:  0px;
    padding-bottom: 0px;
    /*height: 100%;*/
    border-radius: 0 15px 15px 0; /* Rounded only on the left */
}

.layer-toggle2.toggled .gearContainer svg{
    fill: white;
}

.gearContainer.toggled svg{
    fill: white;
}

.layer-toggle2 .gearContainer.toggled {
    background-color: #84b9e1;
    fill: white;
}

.layer-toggle2.toggled .gearContainer:hover svg{
    /*fill: #777777;*/
}

/* */
/* Stand alone gear toggle (e.g. planned tx options) */
/* */

.gear-toggle {
    display: inline-flex;
    padding: 5px 5px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border-radius: 15px;
    border: solid transparent;
    color: black;
    /*background-color: white;*/
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    margin-left: 5px;
    font-size: 14px;
    background-color: white;
}

.gear-toggle:hover {
    border: solid black;
    background-color: #d3eaf2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gear-toggle.toggled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #40ABFD;
    color: white;
    border: solid white;
}

.gear-toggle svg{
    stroke: #555555;
    stroke-width: 1px;
    fill: none;

}

.gear-toggle.toggled svg{
    stroke: white;
}

/* */
/* Stand alone search toggle (e.g. planned tx filters) */
/* */

.search-toggle {
    display: inline-flex;
    padding: 5px 5px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border-radius: 15px;
    border: solid transparent;
    color: black;
    /*background-color: white;*/
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    margin-left: 3px;
    font-size: 14px;
    background-color: white;
    vertical-align: middle;
}

.search-toggle:hover {
    border: solid black;
    background-color: #d3eaf2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-toggle.toggled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #40ABFD;
    color: white;
    border: solid white;
}

/*.gear-toggle svg{
    stroke: #555555;
    stroke-width: 1px;

}*/

.search-toggle.toggled svg{
    stroke: white;;

}

/* */
/* */
/* */
.popupTitle{
    font-weight: normal;
    font-size: 14px;
}
.tableCell{
    vertical-align: top;
    font-weight: bold;
}
.tableCellRight{
    padding-left: 10px;
    display: inline-block;
    vertical-align: top;
}


/* */
/* Info Pages */
/* */
.infoPage {
    background-color: rgba(255, 255, 255, .6);
    position: absolute;
    top: 0px;
    left: 0px; /* Ensure 5px space from the sidebar */
    width: 100%;
    height: 100%;
    z-index: 35; /* Ensure it stays on top */
    transition: left 0.3s ease;
    display: flex;
    flex-direction: row;
    display: none;
}

.infoPage.toggled {
    display: block;
}

.infoPageBody {
    position: absolute;
    background-color: white;
    border-radius: 15px;
    opacity: 100%;
    /*top: 10px;*/
    left: 230px; /* Ensure 5px space from the sidebar */
    /* Ensure it stays on top */
    transition: left 0.3s ease;
    margin-left: 50px;
    top: 10px;
    z-index: 36;
    right: 10px;
    bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    overflow-y: auto;



}
.infoPageBody.minimized {
    left: 30px;
}

.aboutBody, .projectsPageBody {
    font-size: 1.25rem;
    color: #222;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    margin-top: 30px;
    max-width: 600px;
    /*margin-bottom: 2rem;*/

}

.aboutBody strong, .projectsPageBody strong {
    font-weight: 500;
}

.orangeText {
    color: #E8AD11;
}
.darkblueText {
    color: #212935;
    display: inline-block;
}

/* */
/* Data sources table */
/* */
.closeButton{
    position: absolute;
    top: 0px;
    right: 0px;
    cursor: pointer;
    margin-right: 10px;
    user-select: none;
    color: rgb(157, 0, 0);
}

.closeButton span{
    font-size: 0.65em;
    color: rgb(157, 0, 0);

}
.tableBody {
    /*margin: 40px;*/
    /*margin-left: 150px;*/
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    color: #333;
    /*max-width: 1200px;*/
    overflow-y: auto;
    /*margin: auto;*/
}
.head1 {
    font-size: 36px;
    font-weight: 300;
    text-align: left;
    margin-bottom: 20px;
}
.head2 {
    font-size: 26px;
    font-weight: 300;
    margin-top: 20px;
    margin-left: 0px;
    margin-right: 0px;
    background-color: transparent;
}
.search-container {
    position: relative;
    width: 250px;
    margin-bottom: 20px;
}
#searchBar {
    width: 100%;
    padding: 8px 12px 8px 36px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 999px;
    outline: none;
    box-sizing: border-box;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    color: #888;
}
.clear-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    cursor: pointer;
    color: #888;
    display: none;
}
.clear-icon:hover {
    color: #555;
}

.sourcesTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    table-layout: auto;
}
.sourcesTable thead {
    position: sticky;
    z-index: 50;
    top: 0;
}


.sourcesTable th, .sourcesTable td {
    padding: 12px 20px; /* Only left/right padding */
    text-align: left;
    white-space: nowrap;
}
.sourcesTable th {
    background-color: #eaeaea;
    font-weight: 600;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    line-height: 48px;      /* Ensures text is vertically centered and fixes height */
    vertical-align: middle;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
}
.sourcesTable td.citation {
    min-width: 350px;
    max-width: 600px;
    white-space: normal;
    word-wrap: break-word;
    font-size: .75em;
}

.sourcesTable td.sourceName {
    max-width: 350px;
    white-space: normal;
    word-wrap: break-word;
}
.sourcesTable tr.data-row {
    background-color: #fafafa;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 0px;
}
.sourcesTable tr.data-row td {
    padding-bottom: 24px;
}
.sourcesTable td.layer-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    padding-right: 0px;
}
.sourcesTable a {
    color: #0077cc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.sourcesTable a:hover {
    text-decoration: underline;
}
.external-icon {
    width: 16px;
    height: 16px;
    margin-left: 4px;
}
.divider-row td {
    border-bottom: 1px solid #cccccc;
    height: 16px;
}

td.dataSourceHeader {
    padding-left: 6px;

}

/* */
/* Map legend section*/
/* */
/* */

/* Vertical "Legend" tab */
#legendTab {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%) rotate(-90deg);
    color: #AAA;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    cursor: pointer;
    z-index: 9999;
}
#legendTab:hover {
    color: #666;
}

.legendHeader, .legendSubHeader, .legendLabel, .legendTitle, .basemapCredit, .planTxLegendHorizontal {
    font-family: 'Poppins', sans-serif;
    color: #222;
}

tr.legendEntry {
    display: "";
}

.legendHeader {
    font-weight: 400;
    font-size: 1rem;
    display: "";
}

.legendHeader td{
  padding-top: 10px;
}

.legendTitle {
    font-weight: 400;
    font-size: 1rem;
    padding-top: 10px;
}

.legendSubHeader {
    font-weight: 300;
    font-size: .9rem;
}

.legendLabel {
    font-size: .9rem;
    line-height: 1.2;
    font-weight: 300;
    /*max-width: 200px;*/
    max-width: none;

    vertical-align: top;
    /*white-space: nowrap; */
    /*padding-bottom: 2rem;*/
    /*padding-top: 15px;*/
}

.legendIcon {
    vertical-align: top;
    white-space: normal;
    word-wrap: break-word; /* For legacy support */
    word-break: break-word; /* Helps with long strings */
    width: 24px;
}

.basemapCredit {
    font-size: .75rem;
}

#outerLegend {
    transition: right 0.4s ease;
    right: -300px; /* offscreen */
    width: 280px;
    position: absolute;
    /*right: 15px;*/
    top: 50%;
    transform: translateY(-50%);
    max-height: calc(100vh - 600px); /* max height from top to 100px above bottom */
    background-color: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 9999;
}

/* Visible when expanded */
#outerLegend.expanded {
    right: 15px;
}

#collapseTab {
  position: absolute;
  top: 0px;
  right: 15px;
  color: #AAA;
  padding: 5px 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  cursor: pointer;
  z-index: 9999;
  border-radius: 6px 6px 0 0;
  display: none;
  font-size: .75rem;
}

#outerLegend:hover #collapseTab {
  display: block;
}

#collapseTab:hover {
    color: #666;
}

#legend {
    padding-left: 5px;
    padding-bottom: 10px;
    max-height: calc(100vh - 600px);
    overflow-y: auto;
    box-sizing: border-box;
}

#legend table {
  
}

/* */
/* Planned Tx Horizontal Legend Classes */
/* */
/* */

.planTxLegendHorizontal{
    display: inline-block;
    font-size: .9rem;
    font-weight: 300;
    vertical-align: middle;
    padding-left: 5px;
}

.legendIconHorizontal{
    display: inline-block;
    padding-left: 10px;
    vertical-align: middle;
}


.legendHeaderHorizontal{
    display: inline-block;
    font-size: 1rem;
    font-weight: 300;
    vertical-align: middle;

}

.legendIconHorizontal img{
    vertical-align: middle;
}

.legendHorizontalWrapper{
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    border-radius: 10px;
    /*display: inline-block;*/
    margin-bottom: 10px;
    white-space: nowrap;
    user-select: none;
    position: absolute;
    bottom:100px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
    display: none;
}

.legendHorizontalWrapper.toggled{
    display: inline-block;
}

