body {
    margin: 0;
    padding: 0; 
    font-family: 'Work Sans', serif;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}



/* console styles */

#console h1 {
    font-size: 17px;
    line-height: 25px;
    text-align: left;
    margin-top: 0px;
}

#console h2 {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 10px;
    text-align: left;
} 

.subtitle {
    font-size: 16px;
    margin-top: 25px;
}

.legend {
    display: inline-block;
    margin-right: 10px;
}

#console {
    position: absolute;
    width: 300px;
    margin: 10px;
    padding: 10px 20px 10px 30px;
    background-color: #F0F0F1;
    border-radius: 5px;
    z-index: 15;
    transition: 0.3s ease-in-out;
    box-shadow: 0 1px 1px 0 rgba(66, 66, 66, 0.08), 0 1px 3px 1px rgba(66, 66, 66, 0.16);
}

.active {
    transform: translate3d(-280px, 0, 0);
    transition: 0.3s ease-in-out;
}

.itemWrapper {
    margin-top: -20px;
}

#toggleConsole {
    position: absolute;
    right: 5px;
    top: 0px;
}

#toggleConsole img {
    width: 16px;
    opacity: 0.7;
}

#toggleConsole img:hover {
    opacity: 0.5;
    transition: all .5s ease;
    cursor: pointer;
}

.toggle {
    position: relative;
    height: 14px;
    width: 35px;
    border-radius: 15px;
    background: #cfcfcf;
    margin: 8px 0;
}

.toggle input {
    opacity: 0;
    width: 100%;
    height: 200%;
    position: absolute;
    top: -7px;
    left: 0;
    z-index: 2;
    margin: 0
}

.toggle input:hover {
    cursor: pointer;
}

.toggle input:nth-child(2):checked {
    z-index: 1;
}

.toggle__pointer {
    position: absolute;
    top: -3.5px;
    left: 18px;
    width: 20px;
    height: 20px;   
    border-radius: 15px; 
    -webkit-transition: left .15s ease-out;
    transition: left .15s ease-out;
}

.op__pointer {
    background-color: #189B68;
}

.pr__pointer {
    background-color: #FB9159;
}

.av__pointer {
    background-color: #9573DE;
}

.toggle input:nth-child(2):checked+.toggle__pointer {
    left: 0px;
    background-color: #777777;
}

.circlesWrapper {
    position: relative;
    height: 14px;
    width: 14px;
    border-radius: 15px;
    margin: 20px 0 10px 0;
}

.circlesRegion {
    position: absolute;
    top: 0px;
    left: 15px;
    width: 20px;
    height: 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.circlesRegion.china {
    border: 3px solid black;
}

.circlesLegend {
    margin-top: 5px;
    margin-left: 16px;
}

.circlesRegion :hover,
.circlesLegend :hover {
    cursor: pointer;
}

.flip {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    opacity: 1;
}

.verticalLine {
    margin-right: 5px;
    border-right: 0.3px solid #ECE8E1;
}

#title {
    font-family: 'Enriqueta', serif;
    color: #0c1b34;
    font-weight: 700;
    margin-left: -10px;
    margin-bottom: 15px;
}

.filters {
    margin-top: 20px;
}

#instruction {
    margin-top: 20px;
}

.instruction {
    margin-left: -15px;
}

.instruction p {
    color: #007979;
    font-weight: 700;
    font-size: 12px;
}

.item {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.item2 {
    display: inline-block;
    font-size: 12px;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    margin-left: 14px;
    margin-bottom: 2px
}

.dataSource {
    font-size: 10px !important;
    color: #5a5a5a;
}

.sliderWrapper {
    padding-top: 11px;
}

.slider{
  -webkit-appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 15px;
  background: #cfcfcf;
  outline: none;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%; 
  background: #777777;
  cursor: pointer;
    
}
  
.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #777777;
  cursor: pointer;
}

.sliderWrapper p{
  padding-left: 8%;
  margin-bottom: -12px;
}

#minPower, #maxPower, #circleMin, #circleMax {
  position: relative;
  font-size: 0.8em;
}

#minPower {
  right: 8%;
}

#maxPower {
  left: 61%;
}

.powerLegend {
  margin-top: -13px;
}

#circleMin::before {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  margin-left: 8%;
  margin-right: 5px;
  content: "";
  background-color: #cfcfcf;
  display: inline-block
}

#circleMax::before {
  height: 50px;
  width: 50px;
  border-radius: 50%; 
  margin-left: 15%;
  margin-right: 5px;
  content: "";
  background-color: #cfcfcf;
  display: inline-block;
  vertical-align: middle;
}


/* mapbox styles */

.mapboxgl-popup {
    max-width: 300px !important;
    font-family: 'Work Sans', sans-serif;
    text-align: left;
    z-index: 20;
    border-radius: 5px;
}

.mapboxgl-popup-content {
    font-family: 'Work Sans', sans-serif;
    padding: 0;
}

.mapboxgl-popup-content h3 {
    text-align: center;
    font-size: 16px;
    margin: auto;
    display: block;
    padding: 10px;
    font-weight: 700;
    margin-top: -5px;
    color: #FFF9E0;
}

.mapboxgl-popup-content h4 {
    padding: 8px;
    font-size: 14px;
    line-height: 20px;
}

.mapboxgl-popup.Operational h3{
    background-color: #189B68;
}

.mapboxgl-popup.Project h3{
    background-color: #FB9159;
}

.mapboxgl-popup.Avaliable h3{
    background-color: #9573DE;
}

.mapboxgl-container {
    cursor: pointer;
}

.mapboxgl-popup-anchor-top>.mapboxgl-popup-content {
    margin-top: 3px;
}

.mapboxgl-popup-close-button {
    transform: scale(1.5);
    color: #e2e2e2;
    padding: 0px;
    padding-bottom: 20px;
    margin-right: 7px;   
}

.mapboxgl-popup-close-button:hover,
.mapboxgl-popup-close-button:active,
.mapboxgl-popup-close-button:target {
    background: none !important;
    border: none !important;
    outline: none !important;
    color: #ffffff;
    transition: all 0.5s ease;
}

/* search bar styles */


.search-input {
    position: absolute;
    margin-top: 620px;
    margin-left: 10px;
    background: #F0F0F1;
    border-radius: 5px;
    box-shadow: 0 1px 1px 0 rgba(66, 66, 66, 0.08), 0 1px 3px 1px rgba(66, 66, 66, 0.16);
    transition: 0.3s ease-in-out;
}

.search-input .autocomplete-box {
    padding: 0;
    opacity: 0;
    pointer-events: none;
    max-height: 280px;
    overflow-y: auto;
}

.search-input input {
    border: none;
    outline: none;
    padding: 5px 10px;
    width: 300px;
    background-color: #F0F0F1;
    border-radius: 5px;
    box-shadow: 0 1px 1px 0 rgba(66, 66, 66, 0.08), 0 1px 3px 1px rgba(66, 66, 66, 0.16);
}

.autocomplete-box li {
    list-style: none;
    padding: 8px 12px;
    display: none;
    width: 100%;
    cursor: default;
    border-radius: 3px;
}

.autocomplete-box li:hover {
    background-color: #cccccc;
    font-weight: 500;
}

.search-input.show .autocomplete-box {
    padding: 10px 8px;
    opacity: 1;
    pointer-events: auto;
    max-height: 200px;
}

.search-input.show .autocomplete-box li { 
    display: block;
}

.search-input .icon{
    position: absolute;
    right: 0px;
    top: 0px;
    height: 100%;
    text-align: center;
    padding: 2px 6px 0px 6px;
    font-size: 20px;
    color: #5a5a5a;
    cursor: pointer;
    background-color: #F0F0F1;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
  }


/* other */

#loading {
    top: 0;
    left: 0;
    position: fixed;
    display: block;
    opacity: .7;
    background-color: #fff;
    z-index: 99;
    width: 100%;
    height: 100%;
    text-align: center;
}

#loading-image {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(50vh - 80px);
    z-index: 100;
}

#logo {
    position: absolute;
    bottom: 22px;
    right: 0px;
    z-index: 5;
}

#logo img {
    width: 120px;
}


@media screen and (max-width: 800px) {

    /* console */
    
    #console {
        width: 250px;
        padding: 0px 20px;
    }

    .active {
        transform: translate3d(-230px, 0, 0);
    }

    #console h1 {
        font-size: 15px;
    }

    #console h2 {
        font-size: 11.5px;
    }

    .subtitle {
        font-size: 13px;
    }

    .legend {
        font-size: 13px;
    }

    #title {
        margin-top: -1px;
    }
    
    .circlesLegend {
        left: 16px;
    }
    
    .sliderWrapper p{
        font-size: 11.5px;
        margin-left: 5%;
    }


    
    /* mapbox */
    
    .mapboxgl-popup {
        max-width: 250px !important;
    }
    
    
    /* search bar */
    
    .search-input {
        top: -610px;
        left: 260px;
        font-size: 11.5px;
    }

    .search-input input {
        width: 250px;
    }

    .search-input .icon {
        font-size: 16px;
        padding-right: 8px;
    }

} 

@media screen and (max-width: 600px) {

    body {
        font-size: 11px !important;
    }

    
    /* console */
    
    #title {
        font-size: 13px;
    }

    .subtitle {
        font-size: 12px;
    }

    .legend {
        font-size: 12px;
        margin-left: 5px;
    }

    .item2 {
        width: 15px;
        height: 15px;
    }

    #console h1 {
        font-size: 14px;
    }

    .instruction p {
        font-size: 10px;
    }
    
    .circlesRegion {
        left: 12px;
    }
    
    .circlesLegend {
        margin-left: 10px;
    }
    
    .sliderWrapper p{
        font-size: 10px;
        margin-left: 7%;
    }

    
    /* other */
    
    #logo {
        position: absolute;
        bottom: 25px;
        right: 0px;
    }

    #logo img {
        width: 100px;
    }

}

@media screen and (max-width: 500px) {

    #console h2 {
        font-size: 10.5px;
    }
    
}
