#preloader{
  width: 100%;
 height: 100%;
 position: absolute;
 z-index:100000;
 background: rgba(255,255,255,0.4);
}
#preloader span{
  display: block;
  width: 60px;
  height: 60px;
  position: absolute;
  top:10%; left: 50%;

  transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);

  animation: spin 0.8s infinite linear;
  border: 3px solid #ccc;
  border-right: 3px solid #000;
  border-radius: 50%;
}

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


h1.entry-title.full-width{
  width: 100%;
  max-width: 960px;
}

.lead{
  text-align: center;
  line-height: 1.4;
  font-family: 'Lato', sans-serif !important;
  font-size: 1.8rem;
}

.interactive{
  font-family: 'Lato', sans-serif !important;
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 10rem auto 10rem auto;
  /*overflow: hidden;*/
  padding: 0 20px;
  min-height: 200px;
}

.interactive *{
  box-sizing: border-box;
}

.interactive-filters{
  margin-bottom: 50px;
  text-align: center;
  font-size:0;
  line-height: 3.2rem;
  overflow: hidden;
  display: none;
}

.interactive-filters > *{
  /*display: inline-block;
  vertical-align: top;
  margin-right: 20px;*/
}
.interactive-filters > *:last-child{
  margin-right: 0;
}

.one-column{
  width: 100%;
  max-width: calc(900px / 4);
}
.two-columns{
  width: 100%;
  max-width: calc(((900px / 4)*2) + 20px);
}
.three-columns{
  width: 100%;
  max-width: calc(((900px / 4)*3) + 40px);
}
.filters-floated{
  font-size:0;
  float: left;
}
.filters-floated-right{
  font-size:0;
  float: right;
}
.filters-floated > *,
.filters-floated-right > *{
  display: inline-block;
  vertical-align: top;
  margin-right: 20px;
}

#year-select{
  margin-bottom: 1rem;
  margin-right: 0;
}

/* custom select */
.select-style {
    padding: 0;
    border: 1px solid #c5c5c5;
    border-radius: 1px;
    overflow: hidden;
    background-color: #fff;
    background: #fff url("../img/arrowdown.svg") no-repeat calc(100% - 15px) center;
    background-size: 18px;
    font-size: 1.4rem;
    line-height: 3.2rem;
    margin-bottom: 1rem;
}

.select-style#search-list{
  background: #fff url("../img/search.svg") no-repeat calc(100% - 5px) center;
  background-size: 25px auto;
  margin-right: 0;
}


.select-style select,
.select-style input,
.select-style datalist {
    font-family: 'Lato', sans-serif !important;
    font-size: 1.4rem;
    padding: 5px 8px;
    width: calc(100% + 25px);
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: none;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}
#party-select.select-style select {
    font-size: 2.1rem;
}
.select-style input{
  width: 100%;
  padding: 0 8px;
  line-height: 3.2rem;
}
.select-style input::-webkit-calendar-picker-indicator {
  display: none;
}

.select-style select:focus,
.select-style input:focus {
    outline: none;
}

.interactive-filters .select-style{
  height: 3.6rem;
  line-height: 3.6rem;
  white-space: nowrap;
}


.interactive-filters .select-style select{
  height: 3.6rem;
  line-height: 3.6rem;
  padding-top: 0;
  white-space: nowrap;
}

button.year-button{
  width: 50%;
  height: 3.6rem;
  border: 1px solid #c5c5c5;
  background: #e8e8e8;
  color: #aaa;
  cursor: pointer;
  font-size: 1.5rem;
  font-family: 'Lato', sans-serif !important;
}

button.year-button.active{
  border: 1px solid #5c869c;
  background: #5c869c;
  color: #fff;
}

button.year-button:hover{
  background: #d8d8d8;
}
button.year-button.active:hover{
  background: #2e6988;
}

button.year-button:focus{
  box-shadow: none;
  outline: none;
}

.list-holder{
  position: absolute;
  left: 0; top:0;
  z-index:100;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 50px;
}
.list-holder .lists{
  white-space: nowrap;
  width: 1200px;
}

.list-holder .lists > div{
  white-space: normal;
  float: left;
}

.list-title{
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

#map-back{
  position: absolute;
  height: 3.2rem;
  background: transparent;
  border:0;
  border-radius: 0;
  line-height: 3.2rem;
  color: #999999;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 1.4rem;
  right: 0;
  display: none;
}

#map-back:hover{
  color: #2e6988;
}
#map-back:focus{
  outline:none;
  color: #2e6988;
}
#map-back span.icon{
  width: 1.8rem;
  height: 1.8rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  background: transparent url('../img/back.svg');
  background-size: auto 1.8rem;
  background-position: left center;
}
#map-back:hover span.icon{
  background-position: -1.8rem center;
}

.side-list ul:not(.pagination){
  list-style: none;
  display: block;
  margin: 0;
  padding:0;
}
#list-nav{
  display: none;
}
.side-list ul:not(.pagination) li{
  display: block;
  line-height: 1.4rem;
  font-size: 0;
  margin: 0;
  padding:0;
  white-space: nowrap;
  cursor: pointer;
}
.side-list ul:not(.pagination) li.hidden-item{
  display: block;
}
.side-list ul:not(.pagination) li div{
  font-size: 1.4rem;
  line-height: 1.4rem;
  min-height: 1.4rem;
  display: inline-block;
  padding: 0.6rem 0;
  white-space: normal;
}

.side-list ul:not(.pagination) li div.name{
  width: 5rem;
  text-align: center;
  font-size: 1.4rem;
  background: #779dad;
  color: #ededed;/*
  color: #5c869c;*/
  border-bottom: 1px solid #fff;
}

.side-list ul:not(.pagination) li div.column{
  width: calc(100% - 12rem);
  padding-left: 1rem;
  text-align: left;
  background: #ededed;
  border-bottom: 1px solid #fff;
  letter-spacing: 0.05rem;
}

.side-list ul:not(.pagination) li div.column1{
  width: 7rem;
  padding-left: 0;
  background: #fff;
  text-align: center;
}
#list-state ul:not(.pagination) li div.column2{
  text-align: center;
}

.side-list ul:not(.pagination) li.selected div.name,
.side-list ul:not(.pagination) li:hover div.name{
  background: #5c869c;
}
.side-list ul:not(.pagination) li.selected div.column2,
.side-list ul:not(.pagination) li:hover div.column2{
  background: #dedede;
}
.side-list ul:not(.pagination) li.selected div.column1,
.side-list ul:not(.pagination) li:hover div.column1{
  background: #ededed;
}

.side-list ul:not(.pagination) li#columnsTitle div.name,
.side-list ul:not(.pagination) li#columnsTitle div.column1,
.side-list ul:not(.pagination) li#columnsTitle div.column2{
  background: transparent;
  text-align: center;
  padding-left: 0;
  font-size: 1.1rem;
}

.side-list ul:not(.pagination) li#columnsTitle:hover div.name,
.side-list ul:not(.pagination) li#columnsTitle:hover div.column1,
.side-list ul:not(.pagination) li#columnsTitle:hover div.column2{
  background: transparent;
}

.pagination {
  list-style-type: none;
  margin: 0 4px;
  padding:0;
  float: left;
  text-align: center;
  width: calc(100% - 170px);
  /*display: none;*/
}
.pagination li {
  display: inline-block;
  padding: 0 3px;
  color: #999;
  font-size: 1.3rem;
}
.pagination li:not(:last-child):after {
  content: " .";
  margin-left: 0.3rem;
  font-size: 1rem;
}
.pagination li a {
  color: #d3d3d3;
}
.pagination li.active a {
  color: #5c869c;
}
.list-nav{
  line-height: 2.7rem;
  text-align: center;
  margin: 1rem 0;
}
.list-nav a.nav-last,
.list-nav a.nav-next{
  font-size: 1.3rem;
  display: block;
  width: 75px;
  height: 2.7rem;
  line-height: 2.7rem;
  /*background: #e8e8e8;*/
  text-align: left;
  cursor: pointer;
}
.list-nav a.nav-last{
  float: left;
  text-align: left;
}
.list-nav a.nav-next{
  text-align: right;
  float: right;
}

.list-nav a{
  font-size: 1.4rem;
  text-decoration: none;
  color: #5c869c;
}
.list-nav a:hover{
  color: #000;
}
/**/
.side-list{
  width: 100%;
  max-width: calc(900px / 4);
}
.side-list ul#city-stats li{
  display: block;
  width: 100%;
  margin-bottom: 1.6rem;
  position: relative;
  opacity: 0.75;
}
.side-list ul#city-stats li div.bar-name{
  font-size: 1.4rem;
  line-height: 1.6rem;
  width: 100%;
  text-align: left;
  display: block;
  clear:both;
  float: none;
  padding:0.4rem 0;
}
.side-list ul#city-stats li div.bar-name span{
  font-weight: bold;
  text-align: left;
  margin-right: 4px;
  padding: 0;
}
.side-list ul#city-stats li div.bar{
  width: calc(100% - 4.5rem);
  display: block;
  font-size: 1.4rem;
  min-height: 1.2rem;
  line-height: 1.2rem;
  padding: 0;
  background: #e8e8e8;
  overflow: visible;
  position: relative;
}
.side-list ul#city-stats li div.bar span.percent{
  height: 1.2rem;
  width: 50%;
  display: block;
  float:left;
  background: #999;
  overflow: visible;
}
.side-list ul#city-stats li div.bar span.number{
  display: block;
  width: 4rem;
  background: #fff;
  padding: 0;
  right: -4.5rem;
  bottom: 0;
  top: 0.6rem;
  text-align: right;
  font-size: 1.4rem;
  position: absolute;
}

.side-list ul#city-stats li.highlight{
  opacity: 1;
}
.side-list ul#city-stats li.highlight div.bar span.percent{
  background: #5c869c;
}


.map-holder{
  display: none;
  position: relative;
  margin-bottom: 20px;
}
.map-title{
  display: block;
  font-size: 1.4rem;
  text-align: center;
  min-height: 1.4rem;
}
.map{
  position: relative;
  padding-left: calc(900px / 4 + 20px);
}

.map .leg-img{
  position: absolute;
  bottom: 20px;
  right: 0;
  height: 28%;
}

.map svg{
  /*position: absolute;*/
  top:0; left: 0;
  display: block;
  width: 100%;
  height:auto;
  /*height: 100%;*/
  /*border: 1px solid #dedede;*/
}
.map-holder svg .mun{
  cursor: pointer;
}
.map-holder svg .state {
  fill: #ddc;
  fill-opacity: 0.1;
}
.map-holder svg .statesContour {
  fill: none;
  /*stroke: #fff;
  stroke-linejoin: round;*/
}

#list-nav{

}

#info-box{
  min-width: 100px;
  position: absolute;
  top:0;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1.8rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  white-space: nowrap;
  display: none;
  z-index:1000;
}
#info-box .mun-name{
  font-weight: bold;
  background: #e8e8e8;
  /*text-transform: uppercase;*/
  padding: 7px 10px;
}
#info-box .mun-candidate,
#info-box .mun-votes{
  padding: 1px 10px 7px 10px;
}
#info-box .mun-candidate{
  font-weight: bold;
  padding: 7px 10px 1px 10px;
}
#info-box span.small{
  font-size: 1.2rem;
  color: #ccc;
}

@media all and (max-width: 1024px){
  .side-list ul li.hidden-item{
    display: none;
  }
  #list-nav{
    display: block;
  }
  .two-columns{
    max-width: 100%;
  }
}


@media all and (max-width: 840px) {
  h1.entry-title{
    font-size: 3.2rem;
    line-height: 1.4;
    padding: 0 3rem;
  }
  .lead {
    font-size: 1.5rem;
  }
  .map{
    width: 100%;
    position: relative;
    padding-left: 0;
    display: block;
  }
  .list-title{
    text-align: center;
    white-space: normal;
  }
  .list-holder{
    /*width: 100%;
    max-width: 420px;*/
    position: relative;
    padding-left: 0;
    display: block;
    margin: 0 auto;
  }

  .side-list ul li div.name{
    width: 20%;
    min-width: 4rem;
  }

  .side-list ul li div.column{
    width: 50%;
  }

  .side-list ul li div.column1{
    width: 30%;
    min-width: 7rem;
  }
}

@media all and (max-width: 540px) {
  .interactive{
    margin-top: 40px;
  }
  .interactive-filters{
    margin-bottom: 15px;
  }

  .interactive-filters .one-column{
    max-width: 100%;
  }

  .filters-floated > *,
  .filters-floated-right > *{
    margin-right: 0;
  }
  /*
  .list-holder.one-column,
  .list-holder.two-columns,
  .list-holder.three-columns{
    max-width: 261px;
  }*/
}
@media all and (max-width: 480px) {

  .interactive-filters .one-column{
    max-width: 100%;
  }
}
