/*customize ESRI popup next/previous nav buttons*/
.esri-popup__main-container h2 {
    padding: 0;
}

.esri-popup__feature-menu-button {
    color: white;
    font-size: 1.1em !important;
    font-weight: bolder !important;
}

.esri-popup__pagination-previous,
.esri-popup__pagination-next {
    color: white;
    font-size: 1.3em;
    font-weight: bolder;
}

.esri-popup__pagination-previous:hover,
.esri-popup__pagination-next:hover {
    color: #2e2e2e;
}

.esri-popup__feature-menu-button:focus {
    color: #2e2e2e;
}

.esri-popup__navigation {
    color: white;
    font-weight: bolder;
    font-size: 1.3em;
    background: #244f62;
}

/*styles for the popup icons showing center type.*/
.CC,
.CCC {
    height: 75px;
    width: 150px;
    float: right;
    background-size: contain;
    background-repeat: no-repeat;
}

.CC {
    background-image: url('/i/catchment_CC.png');
}

.CCC {
    background-image: url(/i/catchment_CCC.png);
}

#footnote {
    max-width: 90%;
    margin: auto;
    text-align: center;
}

#footnote div {
    display: none;
}

#footnote.Mortality .Mortality,
#footnote.Demographics .Demographic {
    display: block;
}

#hiddenDiv {
    display: none !important;
}

.esri-feature-table__menu {
    position: relative;
}

.esri-feature-content>div {
    padding: 8px 4px 0 4px;
}

.esri-popup__header button {
    background: white;
    border: 0;
}

html,
body,
#viewDiv {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    overflow-x: visible;
}


#viewDiv {
    min-height: 500px;
    max-width: 1200px;
    height: 80vh;
    /*margin: 0 15px;*/
    background: #d0cfd4;
}


.inlinelabel {
    display: inline;
}

@media only screen and (max-width: 1024px) {
    #viewDiv {
        width: 100vw;
    }
}

#rightControl {
    background: white;
    font-size: 16px;
    padding: 10px;
}

#rightControl label {
    margin-bottom: 0 !important;
    display: inline;
}

#rightControl div {
    width: 100%
}

#rightControl>div {
    display: inline-block;
    width: 200px;
}


#controlDiv {
    padding: 25px 20px;
    border: 1px black solid;
    border-radius: 5px;
    background: #f6f6ff;
    width: 100%;
    max-width: 800px;
    margin: auto;
    display: flex;
    gap: 2em;
}

@media only screen and (max-width: 800px) {
    #controlDiv {
        display: block;
        padding: 0;
    }

    #controlDiv select {
        width: 80%;
        margin: auto;
    }

    .input-group {
        width: 80%;
        margin: auto;
    }

    #controlDiv>* {
        margin: 10px auto;
    }

    #legendDiv {
        max-height: 150px;
    }
}

#controlDiv>* {
    width: 100%;
}


#controlDiv>div {
    text-align: center;
}

#controlDiv div label {
    width: 100%;
    margin-bottom: 0px;
    margin-top: .2rem;
}

#controlDiv div label.switch {
    margin-bottom: 0.3rem;
}

#areaClear {
    background: #29596f;
    color: white;
}

label.swtich {
    width: auto;
    margin: auto;
}



#bubblecontrols,
#barcontrols {
    margin: auto;
    padding: 25px 20px;
    border: 1px black solid;
    border-radius: 4px;
    background: #f6f6ff;
}

#bubblecontrols>div,
#barcontrols>div {
    display: block;
}

.padded {
    padding: 5px;
    margin: 5px;
    outline: 2px #a2a2a2 outset;
    background: #efefef;
}

.checkboxlabel {
    margin-left: 5px;
}



#controlDiv.stuck-controls {
    position: fixed;
    top: 0;
    z-index: 99;
    max-width: 1200px;
}

@media only screen and (max-width: 1024px) {
    #controlDiv.stuck-controls {
        width: 100vw;
    }
}



.checkcontrol {
    display: block;
}

.checkcontrol input {
    margin: 5px;
}

#descriptionDiv {
    max-width: 600px;
    width: 50%;
}

.myButton {
    box-shadow: inset 0px -3px 7px 0px #29bbff;
    background: linear-gradient(to bottom, #2dabf9 5%, #0688fa 100%);
    background-color: #2dabf9;
    border-radius: 8px;
    border: 2px solid #0b0e07;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: Arial;
    font-weight: bold;
    padding: 14px 21px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #263666;
}

.myButton:hover {
    background: linear-gradient(to bottom, #0688fa 5%, #2dabf9 100%);
    background-color: #0688fa;
}

.myButton:active {
    position: relative;
    top: 1px;
}

#mapTitle {
    flex: 1;
    text-align: center;
    font-size: 18pt;
}

#barcharttitle,
#bubblecharttitle,
#pageTitle {
    text-align: center;
    width: 100%;
}

#barchartdiv,
#bubblechartdiv {
    height: 100%;
    min-height: 400px;
    width: 100%;
    min-width: 100px;
    font-size: 14px;
}

#bubblechartdiv {
    height: 600px;
}

#barchartgeo,
#bubblechartgeo {
    margin: auto;
    display: none;
}

#barchartgeo.show,
#bubblechartgeo.show {
    display: block;
}

.chosen-container {
    min-width: 20em;
}

/*customize legend*/
#legendDiv {
    width: 100%;
    background: #ffffff;
    /*#ffffffdb;*/
    border-radius: 5px;
    border: 1px black solid;
}

.esri-basemap-gallery__item-title {
    font-size: 1rem;
    font-weight: bold;
}

.esri-basemap-gallery__item {
    border-bottom: 1px solid #c5c5c5;
}


.esri-legend__layer-caption {
    display: none;
}

div.esri-legend__service,
div.esri-legend__layer-row {
    border-bottom: 0;
    max-width: 200px;
    padding: 3px 10px;
}

.esri-legend__service h3 {
    padding: 0;
    margin: 0;
}

.esri-legend__layer-table {
    margin: 0;
}

optgroup {
    font-size: 1.1rem;
}

.subGroup {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3d4246;
}

.suboption span.extra {
    display: none;
}