@import url('https://fonts.googleapis.com/css?family=Droid+Serif:400,700');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,800,700');

#table-results {
  margin: 0 auto;
}

.main-heading-election {
  margin: 25px;
  text-align: center;
}

.contest-container {
  border-bottom: 3px solid #96a3af;
  margin: auto;
  margin-top: 10px;
  margin-bottom: 30px;
  background-color: #fff;
  width: 100%;
}

.contest-exception {
  margin: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  background-color: #fff;
  width: 100%;
}

.race-title {
  border-bottom: 1px solid #96a3af;
  padding-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
  line-height: 20px;
  color: #0076b4;
  background-color: transparent;
  margin-bottom: 5px;
  display: block;
  font-family: 'Droid Serif';
}

.updated {
  font-family: 'Open Sans';
  font-size: 11px;
  margin-bottom: 20px;
  margin-top: -20px;
}

#locale-heading {
  font-size: 26px;
  font-weight: bold;
  color: #1b2a47;
  padding: 5px;
  text-align: center;
  line-height: normal;
}

.precinct-container {
  width: 100%;
  border-bottom: 3px solid #96a3af;
  padding-bottom: 10px;
  margin-top: 5px;
}

.precinct-heading {
  width: 33%;
  font-family: 'Open Sans';
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1c2b46;
  font-weight: 800;
}

.precinct-content {
  width: 33%;
  padding-left: 0;
  font-family: 'Open Sans';
  font-weight: 700;
  color: #0076b4;
}

#town-selector {
  width: 80%;
  display: block;
  margin: 15px auto;
  font-size: 16px;
  font-family: 'Open Sans';
  height: 30px;
}

#town-select-heading {
  font-family: 'Open Sans';
  font-weight: 700;
  margin: auto;
  position: relative;
  text-align: center;
  font-size: 16px;
}

.race-disclaimer {
  font-size: 15px;
  font-family: 'Open Sans';
}

.candidate-header {
  padding: 5px 10px 5px 0;
  font-weight: 800;
  margin-bottom: 0;
  margin-top: 0;
  font-family: 'Open Sans';
  color: #1c2b46;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 16px;
}

.candidate-row {
  border-top: 1px solid #96a3af;
}

.candidate-column {
  padding: 5px 10px 5px 0;
  font-family: 'Open Sans';
  font-weight: 700;
  font-size: 12px;
  color: #1c2b46;
}

.candidates-container {
  border-collapse: collapse;
  width: 100%;
}

.candidate-column.name {
  width: 50%;
}

.candidate-column.votes,
.candidate-column.pct {
  width: 25%;
  color: #0076b4;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
}

.checkbox-label {
  font-family: Open Sans;
  font-size: 15px;
}

.resp-container {
  position: relative;
  overflow: hidden;
  padding-top: 240%;
}

.resp-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
}

.btn-group-justified>.btn-group .btn {
  width: 99%;
}

#election-btn-group {
  padding: 0 10px 20px 10px;
}

.main-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

.content-container {
  float: left;
}

#tweets-container,
#tables-container {
  width: 30%;
  padding-left: 20px;
  padding-right: 20px;
}

#maps-container {
  width: 39%;
  padding-left: 0px;
  padding-right: 0px;
}

.clearfix {
  clear: both;
}

.content-container-heading {
  font-size: 21px;
  font-weight: bold;
  color: #1b2a47;
  padding: 5px;
  text-align: center;
}

.election-main-heading {
  font-size: 28px;
  font-weight: bold;
  color: #1b2a47;
  padding: 5px;
  text-align: center;
  line-height: normal;
  margin-bottom: 10px;
}

.fixed-top {
  position: static;
}

.banner {
  max-width: 100%;
  background-color: #000;
  display: flex;
  margin-bottom: 10px;
}

.banner-box {
  height: 73px;
  flex: 1 0 0%;
  margin: 0;
  padding: 0;
}

.banner-center {
  min-width: 200px;
  max-width: 200px;
  background-image: url('../images/primary-banner-200.png');
  background-repeat: no-repeat;
}

.banner-left {
  background-image: url('../images/primary-slice-left.png');
}

.banner-right {
  background-image: url('../images/primary-slice-right.png');
}

button#tweets-button.active,
button#tables-button.active,
button#maps-button.active {
  background-color: #344557 !important;
}

@media all and (max-width: 1000px) {
  .resp-container {
    padding-top: 240%;
  }

  #results-container,
  #tweets-container,
  #tables-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media all and (min-width: 768px) {
  #election-btn-group {
    display: none;
  }
}

@media all and (max-width: 900px) {
  .resp-container {
    padding-top: 240%;
  }
}

@media all and (max-width: 768px) {
  #election-btn-group {
    display: block;
  }

  #tweets-container,
  #tables-container,
  #maps-container {
    width: 100%;
  }

  #maps-container {
    padding: 0 10px;
  }

  .content-container {
    float: none;
  }

  .resp-container {
    padding-top: 220%;
  }

  .banner {
    display: none;
  }

  #maps-container .content-container-heading {
    display: none;
  }
}