body {
    margin: 0;
    padding: 0;
}

#menu {
    position: relative;
    background: #227ba6;
    padding: 10px;
    font-family: 'Open Sans', sans-serif;
    left: 34vw;
    border-radius: 6px;
    top: 0;
    width: 465px;
    text-align: center;
}

#menu input {
    margin: 5px;
}

#menu label {
    font-weight: 600;
    margin: 4px;
}

.mapboxgl-popup {
    font:
        12px/20px 'Helvetica Neue',
        Arial,
        Helvetica,
        sans-serif;
}

.mapboxgl-popup-content h3 {
    background-color: #aeafb0;
    padding: 5px 7px;
    color: white;
    margin: 3px;
}

.map-overlay {
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
    position: absolute;
    width: 25%;
    top: 0;
    right: 22.6vw;
    padding: 10px;
}

#time_series_gsp.map-overlay {
    width: 982px;
    z-index: 600;
    overflow: hidden;
    max-height: 566px;
    top: -4px;
}

.search-container,
#lsoa-select-elec,
#lsoa-select-gas {
    width: 54%;
}

#lsoa-select-elec,
#lsoa-select-gas {
    height: 100px;
    overflow-y: auto;
}

#clear-selections-elec,
#clear-selections-gas {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #337ab7;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    top: -7px;
}

#clear-selections-elec:hover,
#clear-selections-gas:hover {
    background-color: #214d73;
}

#year-label-elec,
#year-label-gas {
    top: -4px;
    position: relative;
}

#year-slider-elec,
#year-slider-gas {
    accent-color: #af42ec;
    margin: 20px;
    top: 0;
    height: 10px;
    left: -17px;
}

.noUi-horizontal .noUi-handle {
    height: 20px !important;
    width: 18px !important;
}

.noUi-handle::before {
    left: 10px !important;
    top: 2px !important;
}

.noUi-handle::after {
    left: 6px !important;
    top: 2px !important;
}

.map-overlay h2 {
    line-height: 24px;
    display: block;
    margin: 0 0 10px;
}

.map-overlay input {
    background-color: transparent;
    display: inline-block;
    width: 100%;
    position: relative;
    margin: 0;
    cursor: ew-resize;
}

#time_series_elec,
#time_series_gas {
    top: -3px;
}

#data-display-type-elec,
#data-display-type-gas {
    height: 24px;
}

#data-value-type-elec,
#data-value-type-gas {
    position: relative;
    top: -3px;
}

.map-overlay input.radio-button-data-type {
    float: left;
    width: 30px;
}

#data-display-type-elec div label,
#data-display-type-gas div label {
    float: left;
}

#legend-elec.consumption .bar,
#legend-gas.consumption .bar {
    width: 100%;
    background: linear-gradient(to right, #04aeae, #04ae66, #00ce2a, #5ece00, #c5ee00, #eebe00, #ee7b00, #ee4e00, #e80606, #990303, #6a0202);
    height: 18px;
}

#legend-elec.difference .bar,
#legend-gas.difference .bar {
    width: 100%;
    background: linear-gradient(to right, #04aeae, #04ae66, #00ce2a, #5ece00, #c5ee00, #eebe00, #ee7b00, #ee4e00, #e80606, #990303, #6a0202);
    height: 18px;
}

#min-value-elec,
#min-value-gas {
    color: white;
    padding: 4px;
    width: 45%;
    display: inline-block;
    top: -4px;
    position: relative;
}

#max-value-elec,
#max-value-gas {
    color: white;
    padding: 0 4px;
    float: right;
}

#avg-value-elec,
#avg-value-gas {
    left: 4%;
    position: relative;
    color: white;
    top: -4px;
    text-align: center;
}

.map-overlay.nopanel {
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
    position: absolute;
    width: 25%;
    top: 0;
    right: 4.6vw;
    padding: 10px;
}

.map-overlay .map-overlay-inner {
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 10px;
}

#loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #227ba6;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -100px;
    margin-left: -100px;
    z-index: 2;
    visibility: hidden;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.epc-info {
    position: absolute;
    font-family: sans-serif;
    padding: 5px;
    width: 80%;
    border: 1px solid black;
    font-size: 14px;
    color: #222;
    background-color: #fff;
    border-radius: 6px;
    bottom: -66vh;
}

.responsive {
    width: 100%;
    height: auto;
}

.epc_a {
    color: #02895d;
}

.epc_b {
    color: #1bb359;
}

.epc_c {
    color: #8cc637;
}

.epc_d {
    color: #f0c713;
}

.epc_e {
    color: #f8b368;
}

.epc_f {
    color: #f18421;
}

.epc_g {
    color: #d4340d;
}

.mapboxgl-ctrl-geocoder:first-child {
    z-index: 1001;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar a {
    text-decoration: none;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #187b64;
}

.sidebar .closebtn {
    position: absolute;
    top: -1.6vh;
    left: 1.4vh;
    font-size: 36px;
    margin-right: 50px;
    color: #187b64;
}

.closegspbtn,
.closegspbtn:hover {
    position: absolute;
    top: 4%;
    left: 96%;
    z-index: 100000;
    font-size: 25px;
    color: #0060df;
    text-decoration: none;
}

#collapse3 > div:nth-child(1) {
    height: 300px;
    display: block;
}

.panel-heading {
    padding: 8px 12px;
}

.open_panel {
    font-size: 20px;
    cursor: pointer;
    background-color: #fff;
    color: #333;
    padding: 10px 15px;
    border: #ccc 1px solid;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    border-radius: 3px;
}

.open_panel:hover {
    background-color: #dadde0;
}

.panel-group .panel + .panel {
    margin-top: 0;
}

#info-pane {
    display: block;
    position: absolute;
    bottom: 7vh;
    left: 1vw;
    height: 168px;
    width: 156px;
    padding: 5px 10px 10px 10px;
    border: #ccc 1px solid;
    background-color: white;
    border-radius: 6px;
    z-index: 3;
}

#values-pane {
    display: block;
    position: absolute;
    top: 58px;
    left: 50px;
    height: 93px;
    width: 231px;
    padding: 5px 10px 10px 10px;
    border: #ccc 1px solid;
    background-color: white;
    border-radius: 6px;
    z-index: 1;
}

#info-pane-btn {
    display: block;
    position: absolute;
    bottom: 7vh;
    left: 1vw;
    height: 36px;
    width: 36px;
    z-index: 2;
    background: url("../images/epc_info.ac7d9090b03c.png") #fff no-repeat 2px 2px;
    border-radius: 6px;
    border: transparent;
}

#aboutinfo-btn {
    width: 36px;
    background-color: white;
    z-index: 500;
    position: fixed;
    top: 10px;
    left: 426px;
    height: 36px;
    color: white;
    text-align: center;
    background: url("../images/info-icon.486786260f4a.svg") #fff no-repeat 8px 8px;
    background-size: 50%;
    border-radius: 5px;
    border: 1px;
}

#values-pane-btn {
    display: block;
    position: absolute;
    top: 58px;
    left: 50px;
    height: 36px;
    width: 36px;
    z-index: 1;
    background: url("../images/map-pin.18724f5729c5.png") #ffffff no-repeat 6px 6px;
    background-size: 66%;
    border-radius: 6px;
    border: #dcd7cd 1px solid;
}

#filter-group-layers input[type="checkbox"]:checked + label {
    color: black;
}

.hidden {
    visibility: hidden;
}

.float-right {
    float: right;
}

#lightlevel {
    width: 150px;
    background-color: white;
    z-index: 500;
    position: fixed;
    top: 10px;
    left: 262px;
    height: 36px;
    color: white;
    text-align: center;
    border-radius: 5px;
}

#lightlevel button {
    position: relative;
    padding: 0 2px;
    border: none;
    background: white;
    top: 3.5px;
}

#lightlevel button:hover {
    background-color: #e7e8e5;
    border-radius: 4px;
}

#lightlevel button img {
    padding: 2px;
    margin: 2px;
}

#hist_options,
#epc_rating_options {
    padding: 0 10px 10px 0;
}

#hist_options > label,
#epc_rating_options > label {
    padding: 0 5px;
}

gmp-map-3d {
    z-index: 1;
}

.mapboxgl-popup-content {
    padding: 20px 10px 15px;
    width: fit-content;
}

.mapboxgl-popup-content .tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

.div-flex-row {
    float: left;
    padding: 0 10px 7px 0
}

#data-opts {
    padding: 15px;
    height: 148px;
}

.data-opt-holder {
    width: 100%;
    height: 32px;
}

#data-display-opts {
    height: 12px;
}

.date-holder {
    float: left;
    padding: 0 16px 0 0;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .control-panel {padding-top: 15px;}
  .control-panel a {font-size: 18px;}
}
