/*
* National mode = whole map with controls on the left panel
* Local mode = no map, only the dropdown list helping the user to get to the local pages
*/
.national-mode {
    /* height: 800px; e16 height*/ 
    height: 900px;
    width: 1170px;
    margin: 0 auto;
    position: relative;
    background-color: white;
}

/* #mapdata-widget-container {
    margin-top: 20px;
} */
#mapdata-widget-container .preloader {
    line-height: 700px;
}
div#mapdata-widget-container > img {
    position: absolute;
    left: 310px;
    z-index: 2;
    top: 5px;
    width: 77px;
    height: 77px;
}
#highmaps-main-container {
    line-height: 800px;
    min-height: 800px;
    margin: 0 auto;
    min-width: 870px;
    position: absolute;
    right: 1px;
    text-align: center;
}
/*.highcharts-container {
    margin-left: -120px;
}*/

.map-tooltip {
    color: green;
}
.er-map-controls hr {
    border: 1px solid #999999;
    margin: 0px auto 10px auto;
    width: 97%;
}
.er-map-controls {
    background-color: #d9d9d9;
    width: 300px;
    float: left;
    padding: 15px 2px 15px 10px;
    font-family: 'Montserrat', sans-serif;
    /*    position: absolute;
    z-index: 1;*/
}
.er-map-controls > div {
    font-family: "Lato", Arial, sans-serif;
}
.er-filter-position {
    line-height: 12px;
}
.er-search-results-for {
    height: 50px;
    margin-bottom: 45px;
}
#er-positions-container {
    margin-bottom: 40px;
}
.er-controls-label {
    line-height: 20px;
    padding: 5px;
    font-weight: bold;
    font-size: 16px;
    vertical-align: middle;
}
.er-controls-label.location {
    margin-top: 40px;
}
.er-search-results-for li:before {
    content: '\00b7';
    font-size: 80px;
    line-height: 24px;
    vertical-align: middle;
}
.er-search-results-for li {
    float: left;
    list-style: none;
    width: 40%;
    vertical-align: bottom;
    cursor: pointer;
}
.er-selections {
    height: 30px;
    border: none;
    background-color: inherit !important;
    width: 100%;
    font-size: 16px;
}
.er-candidates-selections {
    height: 30px;
    border: none;
    background-color: inherit !important;
    width: 100%;
    padding-right: 30px;
    font-family: 'Montserrat', sans-serif;
    /* font-weight: bold; */
    font-size: 16px;
}
.er-candidates-rows {
    text-align: center;
    height: 90px;
}
.er-candidate-icon {
    width: 85px;
    display: inline-block;
    margin-left: 5px;
    position: relative;
}
.er-candidate-icon > div:nth-of-type(1) {
    height: 60px;
    overflow: hidden;
    position: relative;
    width: 50px;
    display: inline-block;
    line-height: 60px;
}
.er-candidate-name {
    min-height: 40px;
    text-align: center;
    font-size: 12px;
    height: 40px;
    position: absolute;
    width: 100%;
    line-height: 14px;
}
.er-candidate-icon > div > img {
    height: auto;
    border-radius: 100%;
    width: 100%;
}
.er-candidate-icon > div > span {
    background-color: inherit;
    border-radius: 100%;
    display: inline-block;
    height: 20px;
    position: absolute;
    bottom: 0px;
    right: 0px;
    vertical-align: bottom;
    width: 20px;
}
.map-buttons-box {
    width: 90%;
    height: 80px;
    margin: auto;
    margin-top: 40px;
}
.map-buttons-box > div {
    display: inline-block;
    margin: 2px;
}
/*
E6
.map-controls-button { 
    font-family: "Lato", Arial, sans-serif;
    width: 121px;
    color: black;
    font-size: 15px;
    background: #d9d9d9;
    padding: 10px 20px 10px 20px;
    border: solid #9c979c 2px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
} */
.map-controls-button:hover {
    background: #d9d9d9;
    background-image: -webkit-linear-gradient(top, #d9d9d9, #a1aeb5);
    background-image: -moz-linear-gradient(top, #d9d9d9, #a1aeb5);
    background-image: -ms-linear-gradient(top, #d9d9d9, #a1aeb5);
    background-image: -o-linear-gradient(top, #d9d9d9, #a1aeb5);
    background-image: linear-gradient(to bottom, #d9d9d9, #a1aeb5);
    text-decoration: none;
}
.local-widget-search {
    border: 2px solid gray;
    margin: 35px auto;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    width: 50%;
    cursor: pointer;
    font-family: "Lato", Arial, sans-serif;
}
.armm-results {
    text-decoration: underline;
    margin-top: 20px;
}

/** Styles for floating count box **/

#er-countbox-container {
    min-height: 130px;
    position: absolute;
    right: 10px;
    top: 55px;
    -webkit-box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.32);
    -moz-box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.32);
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.32);
    border-radius: 0;
    z-index: 2;
}
.er-countbox-header span {
    color: white;
}
#er-countbox-container.national {
    width: 300px;
    background-color: white;
}
#er-countbox-container.national > div:nth-child(2) {
    /* countbox-body*/
    background-color: white;
    padding: 5px 0px;
    border-radius: 0px 0px 10px 10px;
    -moz-border-radius: 0px 0px 10px 10px;
    border: 0px solid #000000;
}
#er-countbox-container.candidate {
    width: 250px;
    min-height: 200px;
}
#er-countbox-date {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 12px;
    padding-bottom: 7px;
}
#er-countbox-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    vertical-align: middle;
    line-height: 30px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    padding: 0px 2px;
}

/*#er-countbox-container.national > div > div:nth-child(1){  date as of
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 12px;
    padding-bottom: 7px;
}*/


/*#er-countbox-container.national > div > div:nth-child(2){  location
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    vertical-align: middle;
    line-height: 40px;
    text-transform: uppercase;
    font-weight: bold;
}*/


/*#er-countbox-container.candidate > div > div:nth-child(1){
    text-align: center;
    font-family: 'Lato Thin';
    padding-top: 8px;
}*/

#er-countbox-container > div:nth-child(1) {
    /*countbox header*/
    background-color: #004E72;
    line-height: 40px;
    border-radius: 0;
    color: white;
    font-family: 'Montserrat', sans-serif;
    vertical-align: middle;
    text-transform: uppercase;
}
#er-countbox-container.national > div:nth-child(1) {
    /*countbox header*/
    font-size: 20px;
    text-align: center;
    width: 100%;
    font-weight: bold;
}
#er-countbox-container.candidate > div:nth-child(1) {
    /*countbox header*/
    font-size: 15px;
    font-weight: 900;
    padding-left: 10%;
}
#er-countbox-container.candidate > div:nth-child(2) {
    /* countbox body */
    background-color: #d9d9d9;
}
#er-countbox-container .er-countbox-row {
    height: auto;
    margin: 5px 0px 2px 0px;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    text-align: left;
}
#er-cand-rows {
    /* width: 300px; */
    text-align: center;
    max-height: 250px;
    overflow: auto;
}
#er-cand-rows span.preloader {
    margin: auto;
    width: 300px;
    height: 200px;
    line-height: 200px;
}

/*#er-countbox-container.national .er-countbox-row{  countbox rows
    width: 280px;
}*/

#er-countbox-container.candidate .er-countbox-row {
    /* countbox rows */
    width: 250px;
}
#er-countbox-container .er-countbox-row div {
    /* countbox rows */
    float: left;
    line-height: 12px;
}
#er-countbox-container .er-countbox-row div:nth-child(1) {
    font-size: 11pt;
    width: 40px;
    text-align: center;
}
#er-countbox-container.candidate .er-countbox-row div:nth-child(1) {
    font-size: 12pt;
    width: 25px;
    text-align: center;
}
#er-countbox-container .er-countbox-row div:nth-child(2) {
    width: 160px;
    font-size: 12px;
    text-overflow: ellipsis;
    font-weight: bold;
    /* white-space: nowrap; */
    overflow: hidden;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    margin-right: 10px;
}
#er-countbox-container.candidate .er-countbox-row div:nth-child(2) {
    width: 145px;
}
#er-countbox-container .er-countbox-row div:nth-child(3) {
    position: relative;
    width: 80px;
    text-align: right;
    font-size: 14px;
    /* padding-right: 10px; */
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}
#er-countbox-container.candidate .er-countbox-row div:nth-child(3) {
    width: 70px;
}
#er-countbox-seemore {
    display: none;
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
    padding-bottom: 8px;
    font-weight: bold;
}

/* css for location controls widget */

.location-controls-container {
    -webkit-box-shadow: 0px 0px 5px 0px rgba(38, 34, 38, 1);
    -moz-box-shadow: 0px 0px 5px 0px rgba(38, 34, 38, 1);
    box-shadow: 0px 0px 5px 0px rgba(38, 34, 38, 1);
    height: 400px;
    width: 200px;
}
.location-controls {
    background-color: white;
    height: auto;
    width: 200px;
}
#location-controls #reset-filter {
    border: 1px solid black;
}

/* css for location controls widget */


/* social media */

.social-share-container {
    width: 75px;
    position: absolute;
    right: 5px;
    top: 5px;
}



/*
Eleksyon 2019 mapdata design
*/
.mapdata-container.e19 * {
    font-family: 'Montserrat', sans-serif;
}

#mapdata-widget-container.e19 * {
    font-family: 'Montserrat', sans-serif;
}

#mapdata-widget-container.e19 .map-controls-button {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    color: #FFF;
    font-size: 15px;
    padding: 4px;
    /* border: 2px solid #004E72; */
    text-align: center;
    cursor: pointer;
    height: 30px;
    border-radius: 8px;
    background-color: #004E72;
}
#mapdata-widget-container.e19 #reset-filter.map-controls-button {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    color: #004E72;
    font-size: 15px;
    padding: 2px;
    border: 2px solid #004E72;
    text-align: center;
    cursor: pointer;
    height: 29px;
    border-radius: 8px;
    background-color: transparent;
}

#mapdata-widget-container.e19 .map-controls-button:hover,
#mapdata-widget-container.e19 .map-controls-button:active,
#mapdata-widget-container.e19 .map-controls-button:focus {
    transition: all .33s ease-in;
    -moz-transition: all .33s ease-in;
    -webkit-transition: all .33s ease-in;
    -o-transition: all .33s ease-in;
    -ms-transition: all .33s ease-in;
    background: #006999;
}
#mapdata-widget-container.e19 #reset-filter.map-controls-button:hover,
#mapdata-widget-container.e19 #reset-filter.map-controls-button:active,
#mapdata-widget-container.e19 #reset-filter.map-controls-button:focus {
    transition: all .33s ease-in;
    -moz-transition: all .33s ease-in;
    -webkit-transition: all .33s ease-in;
    -o-transition: all .33s ease-in;
    -ms-transition: all .33s ease-in;
    background: #006999;
    border: 2px solid #006999;
    color: #FFF;
}
/* .map-buttons-box > div {
    display: inline-block;
    margin: 2px;
} */
#mapdata-widget-container.e19 .map-buttons-box {
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 30px;
}
#mapdata-widget-container.e19 .map-buttons-box #search-filter {
    margin-bottom: 10px;
}
#mapdata-widget-container.e19 .er-search-results-for {
    color: #004E72;
    font-size: 18px;
    margin-top: 20px;
    /*margin-bottom: 150px;*/
}
#mapdata-widget-container.e19 .er-map-controls .er-controls-label.candidate {
    margin-top: 40px;
}

#mapdata-widget-container.e19 .er-map-controls {
    height: inherit; /* 900px map container - 30px map toggles */
}
#mapdata-widget-container.e19 .er-map-controls > div {
    padding-right: 10px;
    padding-left: 5px;
}
/* disabled because of creative review */
/*
#mapdata-widget-container.e19 .er-selections:disabled {
    font-style: italic;
}
*/

/* map toggle is outside map-widget-container */
.mapdata-container.e19 .mapdata-toggles {
    min-width: 800px;
    padding-top: 10px;
}
.mapdata-container.e19 .mapdata-toggles ul {
    list-style: none;
    padding-left: 0px;
    height: 20px;
    margin-bottom: 10px;
}
.mapdata-container.e19 .mapdata-toggles li {
    /* font-family: 'Montserrat', sans-serif; */
    font-weight: bold;
    font-size: 16px;
    border-right: 2px solid #FF6D10;
    height: 20px;
    display: inline-block;
    padding: 1px 11px 1px 12px;
}
.mapdata-container.e19 .mapdata-toggles li a {
    color: #868686;
}
.mapdata-container.e19 .mapdata-toggles li:last-child {
    border-right-width: 0px;
}

.mapdata-container.e19 .mapdata-toggles li a:active, .mapdata-toggles li a:focus, .mapdata-toggles li a:visited, .mapdata-toggles li a:hover {
    color: #004E72;
}
.mapdata-container[data-with="election_returns"] li a[data-mode="election_returns"] {
    color: #004E72;
}
.mapdata-container[data-with="heatmaps"] li a[data-mode="heatmaps"] {
    color: #004E72;
}

.er-map-controls-border {
    background: #FF6D10;
    height: inherit; /* 900px map container - 30px map toggles */
    width: 2px;
    position: absolute;
    left: 299px;
    z-index: 1;
}

/* SINGLE CANDIDATE CLASS MODE */
.single-candidate .er-map-controls {
    padding: 0;
}
.single-candidate#mapdata-widget-container.e19 .er-map-controls > div {
    padding-right: 0;
}
.single-candidate .sc-candidate-thumb {
    width: 200px;
    height: 205px;
    border-radius: 100%;
    margin: auto;
    margin-top: 70px;
}
.single-candidate .sc-candidate-rank {
    color: #fff;
    background-color: #AD2828;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7em;
    font-weight: bold;
    border-radius: 50px;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 1.9;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.46);
    margin: 0 0 0 0;
}
.single-candidate .sc-candidate-rank.-default {
    color: #000;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7em;
    font-weight: bold;
    border-radius: 50px;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 1.9;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.46);
    margin: 0 0 0 0;
}
.single-candidate .sc-candidate-name {
    color: #004E72;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1.2;
    width: 225px;
    margin: auto;
    margin-top: 15px;
}
.single-candidate .sc-candidate-party {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: #2D2D2D;
    width: 225px;
    margin: auto;
}
.single-candidate .sc-candidate-vote-stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    color: #2D2D2D;
    width: 225px;
    margin: auto;
    margin-top: 30px;
}
.single-candidate .sc-candidate-vote-as-of {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8em;
    color: #2D2D2D;
    width: 225px;
    margin: auto;    
}
.single-candidate .sc-candidate-vote-total {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    color: #2D2D2D;
    width: 225px;
    margin: auto;
    margin-top: 5px; 
}
.single-candidate .sc-candidate-view-profile,
.single-candidate .sc-candidate-view-results {
    color: #fff;
    background: #004E72;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: bold;
    line-height: 2.2;
    width: 265px;
    border-radius: 10px;
    text-align: center;
    margin: auto;
    cursor: pointer;
}
.single-candidate .sc-candidate-view-profile {
    margin-top: 155px;
}
.single-candidate .sc-candidate-view-results {
    margin-top: 15px;
}
.single-candidate .sc-candidate-view-profile:hover,
.single-candidate .sc-candidate-view-results:hover {
    background: #006999;
    transition: all .33s ease-in;
    -moz-transition: all .33s ease-in;
    -webkit-transition: all .33s ease-in;
    -o-transition: all .33s ease-in;
    -ms-transition: all .33s ease-in;
}

.er-map-controls select,
#er-positions-container select {
    -moz-appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 2;
}

.er-map-controls .selection-box,
#er-positions-container {
    position: relative;
}

.er-map-controls #er-undefined-list {
    display: none;
}

.er-map-controls .selection-box:not(#er-INDEPENDENT_CITIES-list):after,
#er-positions-container:after {
    content: '\f0d7';
    position: absolute;
    top: 5%;
    right: 15px;
    font-family: "FontAwesome";
    font-style: normal;
    font-weight: normal;
    speak: none;
    color: #606264;
    font-size: 23px;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    z-index: 1;
}

#er-INDEPENDENT_CITIES-list .list-label{
    line-height: 20px;
    padding: 5px 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

#er-INDEPENDENT_CITIES-list ul {
    list-style: none;
    padding: 0;
    max-height: 275px;
}

#er-INDEPENDENT_CITIES-list ul li {
    font-size: 17px;
    line-height: 1.8;
}

#er-INDEPENDENT_CITIES-list ul li a:hover,
#er-INDEPENDENT_CITIES-list ul li a:active,
#er-INDEPENDENT_CITIES-list ul li a:focus {
    font-weight: 600;
    color: #004E72;
}

#er-INDEPENDENT_CITIES-list ul .jspDrag{
    background-color: #004E72;
}

#er-INDEPENDENT_CITIES-list ul .jspTrack {
    background-color: #DFDFDF;
}

.mapdata-container.e19 .er-smart-search-map input{
    height: 35px;
    width: 270px;
    border: 0.5px solid #4D4D4D;
    background-color: #EBEBEB;
    box-shadow: 0 0 4px NaNpx rgba(0,0,0,0.75);
    padding-left: 25px;
    padding-right: 30px;
}

.smart-search-container[data-mode="mapdata"] .smart-search-box .search-input:after {
    font-size: 17px;
    top: 13%;
    right: 12px;
    color: #acadae;
}

.smart-search-container[data-mode="mapdata"] .smart-search-box .search-input:before {
    top: 26%;
    left: 8px;
    font-size: 12px;
}

@keyframes highlightfade {
    from {
      background: #FFBD99;
    }
    to {
        background: transparent;
    }
}

.highlighted-item {
    animation: highlightfade 4s;
}

/* DESKTOP SMALLER SIZE */
@media only screen and (max-width: 1200px) {
    .mapdata-container.e19 .national-mode {
        width: 100%;
    }
    .mapdata-container.e19 #highmaps-main-container {
        min-width: 640px;
    }
}

/*.view-btn.based-view a{
    position: absolute;
    display: inline-block;
    *display: inline;
    zoom: 1;
    top: 12%;
    left: 21px;
    cursor: pointer;
    text-transform: uppercase;
    color: #fff;
    background-color: #004E72;
    padding: 3px 35px 2px;
    line-height: 1.5;
    border-radius: 3px;
    font-weight: 600;
    -webkit-transition: all 400ms ease;
    -moz-transition: all 400ms ease;
    -ms-transition: all 400ms ease;
    -o-transition: all 400ms ease;
    transition: all 400ms ease;
}
.view-btn.based-view a:hover {
    background-color: #006999;

}
.custom-label-map {
    position: absolute;
    width: 100%;
        top: 6%;
    line-height: 1.5;

    text-transform: uppercase;
    font-size: 20px;
    font-weight: 600;
    color: #004E72;
}*/

.based-view-dropdown {
    position: absolute;
    line-height: 1;
    top: 55px;
    text-align: center;
    width: 100%;
}

.based-view-holder {
    position: relative;
    display: inline-block;
    *display: inline;
    zoom: 1;
    background-color: #fff;
    padding: 0 25px;
}

.based-view-holder:after {
    content: '\f0d7';
    position: absolute;
    top: 5%;
    right: 8px;
    font-family: "FontAwesome";
    font-style: normal;
    font-weight: normal;
    speak: none;
    color: #004E72;
    line-height: 0.6;
    font-size: 23px;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    z-index: 1;
}

.based-view-holder select {
    color: #004E72;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid transparent;
    text-transform: uppercase;
    width: 115%;
    background-color: transparent;

    -moz-appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 2;
}