/** 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 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;
}

.voting-bar {
  position: relative;
  display: inline-block;
  height: 3em;
  width: calc(100% - 3em);
  margin-left: 1.5em;
  margin-bottom: 10px;
  margin-top: 1em;
  background: #e41919;
}

.voting-bar .percentage.yes,
.voting-bar .percentage.no {
  color: white;
  height: 100%;
  line-height: 3em;
  letter-spacing: 0.1em;
  font-size: 1.1em;
  display: inline-block;
}

.voting-bar .percentage.yes {
  background: #40a736;
  padding-left: 1.7em;
}

.voting-bar .percentage.no {
  position: absolute;
  right: 1.7em;
}

.voting-bar::before,
.voting-bar::after {
  color: white;
  width: 40px;
  height: 40px;
  text-align: center;
  position: absolute;
  background: #212121;
  border-radius: 50%;
  line-height: 2.8em;
  top: 50%;
  transform: translateY(-50%);
}

.voting-bar::before {
  left: -20px;
  content: "YES";
}

.voting-bar::after {
  right: -20px;
  content: "NO";
}

.voting-bar.yes {
  background: #40a736;
}

.voting-bar.no {
  background: #e41919;
}

.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-top: 2.5em;
  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;
}

.referendum-header {
  padding: 1em;
  font-family: sans-serif;
  font-size: 1.3em;
  text-transform: uppercase;
  background-color: #fffbf9;
  margin-bottom: .5em;
}

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