header.election-title {
  padding: 1em;
  font-family: sans-serif;
  font-size: 1.3em;
  text-transform: uppercase;
  background-color: #fffbf9;
}

header.election-title::after {
  content: '';
  display: block;
  margin-top: 0.5em;
  height: 2px;
  background-color: #ffc299;
}

.count-container {
  padding: 0 1em;
}

.count-container h2 {
  margin-bottom: 1.5em !important;
}

/** River **/
.new_river_header img {
  width: 100%;
}

.new_river_header {
  margin-bottom: 10px;
}

/** Count Widget **/
header.eight-banner {
  max-width: 100%;
}

header.eight-banner img {
  max-width: 100%;
}

.results-container {
  font-family: sans-serif;
  font-size: 15px;
  color: #212121;
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid #d4d4d4;
}

.results-top {
  background: #fffbf9;
  padding: 1em;
  padding-bottom: 1em;
}

.results-top h1 {
  font-family: sans-serif;
  font-size: 1.3em;
  text-transform: uppercase;
  position: relative;
  z-index: 0;
}

.results-top h2 {
  display: inline-block;
  cursor: pointer;
  margin-right: 1em;
}

.results-top h2 a {
  color: #aaa;
}

.results-top h2.active-count a {
  color: #333;
  font-weight: bold;
}

.results-top h1 span {
  background: #fffbf9;
  padding-right: 10px;
}

.results-top h1::after {
  content: '';
  width: 100%;
  height: 2px;
  background-color: #ffc299;
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  top: 40%;
  z-index: -1;
}

.results-top .declared {
  color: #333;
  padding: 0.8em;
  margin-top: 2.5em;
  margin-bottom: 1.5em;
  margin-left: 20px;
  margin-right: 20px;
  vertical-align: middle;
  text-align: center;
  border-top: 1px solid #f9dfcd;
  border-bottom: 1px solid #f9dfcd;
  clear: both;
  font-size: 1.3em;
}

.results-top .declared span {
  font-weight: bold;
}

.results-top .num {
  margin: 0;
  margin-right: 1.5em;
  font-weight: lighter;
  font-size: 1em;
  float: right;
}

.num:first-of-type {
  float: left;
  margin-left: 1.5em;
}

.constituency-select-container {
  background: white;
  padding: 1em;
}

.constituency-select-container p {
  margin: 0.8em 0 0 0;
}

.selectdiv {
  position: relative;
}

.selectdiv::after {
  content: '';
  box-sizing: border-box;
  height: 12px;
  width: 12px;
  border-style: solid;
  border-color: #959595;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translateY(-50%);
  top: 45%;
  position: absolute;
  right: 24px;
}

/* IE11 hide native button (thanks Matt!) */
select::-ms-expand {
  display: none;
}

.selectdiv label {
  width: 100%;

  /* reset desktop stylings */
  color: unset;
  font-size: unset;
  margin: unset;
  display: unset;
  font-weight: unset;
  cursor: unset;
  height: unset;
  line-height: unset;
  overflow: unset;
}

.selectdiv select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  margin: 5px 0;
  padding: 15px 12px 12px 12px;
  font-size: 16px;
  color: #212121;
  background-color: #fff;
  border: 1px solid #e1dfdc;
  border-radius: 0.2em;
}

.selectdiv select:focus {
  outline: none !important;
}

.selectdiv select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}

.constituency-results {
  border: 1px solid #f9dfcd;
  background-color: #fffcfb;
  width: 100%;
  border-radius: 0.2em;
  margin-bottom: 1.2em;
  clear: both;
}

.constituency-results td {
  padding: 0.5em 1em;
  border: none;
}

.constituency-results tr {
  padding-left: 0.5em;
  padding-right: 0.5em;
}

.constituency-results tr:first-child td {
  padding-top: 1.5em;
}

.constituency-results tr td:first-child {
  font-weight: bold;
  padding-left: 2em;
}

.constituency-results tr td:last-child {
  padding-right: 2em;
}

.constituency-results tr:last-child td {
  padding-bottom: 1.5em;
}

.constituency-results tr td:not(:first-child) {
  text-align: right;
}

.constituency-results .empty-state {
  text-align: center;
  margin: 0;
  padding: 1em;
}

.back-to {
  text-decoration: none;
  color: #777;
  position: relative;
  padding-left: 20px;
  margin-left: 1em;
}

.back-to:hover {
  text-decoration: none;
}

.back-to::before {
  content: '';
  box-sizing: border-box;
  height: 8px;
  width: 8px;
  border-style: solid;
  border-color: #959595;
  border-width: 0 3px 3px 0;
  transform: rotate(135deg) translateY(-50%);
  top: 0;
  left: 0;
  position: absolute;
}

.voting-bars {
  width: 100%;
  white-space: nowrap;
}

.voting-bars .percentage-bar {
  height: 35px;
  display: inline-block;
  vertical-align: middle;
  padding-left: 10px;
  margin-left: -10px;
}

.voting-bars .candidate-1 .percentage-bar {
  background: #ffff9d;
}

.voting-bars .candidate-2 .percentage-bar {
  background: #beeb9f;
}

.voting-bars .candidate-3 .percentage-bar {
  background: #79bd8f;
}

.voting-bars .candidate-4 .percentage-bar {
  background: #00a388;
}

.voting-bars .candidate-5 .percentage-bar {
  background: #3d7d76;
}

.voting-bars .candidate-6 .percentage-bar {
  background: #244a46;
}

.vote-bar {
  margin-bottom: 1em;
}

.vote-bar:last-of-type {
  margin-bottom: 2em;
}

.candidate-details {
  display: inline-block;
  vertical-align: top;
  width: 550px;
}

.candidate-details .candidate-name {
  letter-spacing: 0.02em;
}

.candidate-image {
  width: 70px;
  height: 70px;
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
  border-radius: 50%;
  z-index: 1;
  position: relative;
}

.candidate-1 .candidate-image img {
  width: 70px;
}

.candidate-2 .candidate-image img {
  height: 70px;
  margin-left: -3px;
}

.candidate-3 .candidate-image img {
  height: 70px;
  margin-left: -9px;
}

.candidate-4 .candidate-image img {
  height: 70px;
  margin-left: -20px;
}

.candidate-5 .candidate-image img {
  height: 70px;
  margin-left: -3px;
}

.candidate-6 .candidate-image img {
  height: 70px;
  margin-left: -11px;
}
