/*
Sets style for dataSideBar container and
form elements that are normally used within it
*/
.dataSideBar {
    float:left;
    width:20%;
    height: 90%;
    padding: 0;
    margin: 0;
    z-index: 10;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
    /*background-color: #042331;#063146*/
    background-color: #EEEEEE;
}

.dataSideBarContent {
    margin: 0;
    padding: 1em;
    font-family: roboto;
    font-size: 1em;
    font-weight: 300;
    /*background: #f4f4f4;*/
    color: black;
}

.dataSideBar h2 {
    padding: 0.5em;
    margin:0;
    font-size: 1.25em;
    font-weight: 400;
    text-align: center;
    color: white;
    background-color: #393E46;
}

.dataSideBarHeader {
    padding: 0;
    margin: 0;
    top: 0;
    font-family: 'Oswald', sans-serif;
    background: #008CBA;
    color: white;
}

.dataSideBarHeader h1 {
    margin-block: auto;
    font-family: 'Oswald', sans-serif;
    text-align: center;
    color: white;
}

.dataSideBarHeader a {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.dataSideBarHighlight {
    background-color: #E3E4E4;
}

.dataSideBarHighlight table {
    width: 100%;
}

#mapLegend table, #mapLegend th, #mapLegend td {
    border: none;
    border-collapse: collapse;
    padding: 0;
    margin: none;
    text-align: center;
    width: 90%;
    table-layout: fixed;
}

#tileLegend {
    background-color: #858585;
    margin-top: 1em;
}

/*
Checkbox Style
---
Usage:
<label class="checkContainer">US Drought Monitor
    <input type="checkbox" id="layerUSDM" name="layerUSDM">
    <span class="checkmark"></span>
</label>
*/
.checkContainer {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 0.5em;
    cursor: pointer;
    font-size: 1em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkContainer input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.25em;
    width: 1.25em;
    background-color: #393E46;
}

/* On mouse-over, add a grey background color */
.checkContainer:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkContainer input:checked ~ .checkmark {
    background-color: #00ADB5;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkContainer input:checked ~ .checkmark:after {
    display: block;
}
  
/* Style the checkmark/indicator */
.checkContainer .checkmark:after {
    left: 0.35em;
    top: 0.2em;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

@media only screen and (max-width: 1500px) {
    .dataSideBarHeader {
        font-size: 1em;
    }
    .dataSideBar h2 {
        font-size: 1em;
    }

    .dataSideBar {
        font-size: 0.75em;
    }
}