.d3-tip {
  line-height: 1;
  font-weight: bold;
  padding: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 2px;
  pointer-events: none;
}

/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
  box-sizing: border-box;
  display: inline;
  font-size: 10px;
  width: 100%;
  line-height: 1;
  color: rgba(0, 0, 0, 0.8);
  position: absolute;
  pointer-events: none;
}

/* Northward tooltips */
.d3-tip.n:after {
  content: "\25BC";
  margin: -1px 0 0 0;
  top: 100%;
  left: 0;
  text-align: center;
}

/* Eastward tooltips */
.d3-tip.e:after {
  content: "\25C0";
  margin: -4px 0 0 0;
  top: 50%;
  left: -8px;
}

/* Southward tooltips */
.d3-tip.s:after {
  content: "\25B2";
  margin: 0 0 1px 0;
  top: -8px;
  left: 0;
  text-align: center;
}

/* Westward tooltips */
.d3-tip.w:after {
  content: "\25B6";
  margin: -4px 0 0 -1px;
  top: 50%;
  left: 100%;
}
/* BASE STYLESHEET */
body, html {
  height: 100%;
  overflow: hidden;
  background: #EDEDED;
}

.viz-container {
  height: 100%;
  overflow: hidden;
}

.sv-ui-container,
.viz-container text,
.viz-container {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.viz-container label {
  font-size: 0.6em;
  margin: 0;
  text-transform: uppercase;
  font-weight: 600;
}

.viz-container {
  background: #EDEDED;
  position: relative;
}

.viz-ui {
  float: left;
  margin: 0 8px 15px;
  padding: 0 10px;
  display: inline-block;
  height: 60px;
  background: #FEFEFE;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
}

.viz-ui button {
  display: inline-block;
  padding: 4px 4px;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background: #f6f6f6;
  color: #333;

  border-color: #ccc;
  border: 1px solid transparent;
  border-radius: 8px;

  -webkit-transition: background .3s;
  -moz-transition: background .3s;
  transition: background .3s;
}

.viz-ui button:hover {
  background: #f6f6f6;
}

.viz-ui button.selected {
  background: #336699;
  color: #fefefe;
}

.viz-ui .dbl-toggle button:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.viz-ui .dbl-toggle button:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.viz-ui .dbl-toggle button {
  position: relative;
  float: left;
}

.viz-overlay-tip {
  float: left;
  padding: 0px 10px 5px;
  height: 60px;
  display: none;
  background: #fefefe;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  color: #444;
}

.eq-ui,
.eq-overlay {
  height: 90px;
}

.eq-ui {
  padding: 25px 10px;
}

.viz-overlay-tip hr {
  height: 0;
  padding: 0;
  margin: 0;
}

.viz-overlay-tip h5 {
  font-size: .75em;
}

.viz-overlay-tip table {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  width: auto;
  table-layout: auto;
}

.viz-overlay-tip table td {
  border-bottom: none;
  padding: 2px 10px;
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
}

.viz-overlay-tip table td:first-child {
  padding: 2px 12px 0 0;
}

/* map styles */

.sv-mapbox {
  background: #ededed;
}

.sv-boundary {
  stroke: 0.2px;
  stroke-fill: #eee;
  fill: #d6d6d6;
}

.sv-ui-container {
  opacity: .95;
  height: 105px;
  position: absolute;
  top: 0;
  left: 8px;
}

.sv-ui-container h2 {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  font-weight: 600;
  text-align: left;
}

.sv-affected-labels {
  text-align: center;
}

.sv-affected-labels label,
.sv-affected-labels h2 {
  display: inline-block;
}

.sv-affected-labels label {
  font-size: .8em;
  font-weight: 400;
  text-transform: none;
}

.sv-control {
  display: inline-block;
}

.sv-slider-container { width: 250px; }

.sv-left-control {
  margin-right: 30px;
}

.sv-overlay-tip {
  position: absolute;
  top: 0;
  right: 8px;
  height: 100px;
  box-shadow: 0 0 5px rgba(0, 0, 0, .2);
}

.sv-overlay-tip h3,
.sv-control h3 {
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 2px;
  font-weight: 600;
  color: #333;
  -webkit-transition: color 400ms;
  -moz-transition: color 400ms;
  transition: color 400ms;
}

.sv-overlay-tip h4 {
  font-size: 12px;
  line-height: 14px;
  margin-bottom: 2px;
  font-weight: 600;
}

.sv-affected-true { color: #993333; }

.slider {
  width: 100%;
  margin-bottom: 6px;
  background: #993333;
  box-shadow: inset 0 2px 0 0 rgba(0,0,0,0.1);
  border-radius: 60em;
  border: none;
  cursor: pointer;
  height: 0.5em;
  transition: background 450ms;

  -webkit-transition: background 400ms;
  -moz-transition: background 400ms;
  transition: background 400ms;
}

.noUI-base {
  height: 0.5em;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.noUi-origin {
  left: 15%;

  border-radius: 60px;
  box-shadow: inset 0 2px 0 0 rgba(0,0,0,0.1);
  background: #c9c9c9;
  margin-right: -1px;
  position: absolute;
  right: 0;
  top: 0;
  left: 0;
  bottom: 0;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);

  -webkit-transition: background 400ms;
  -moz-transition: background 400ms;
  transition: background 400ms;
}

.noUi-handle {
  left: -0.75em;
  top: -0.5em;
  width: 1.5em;
  height: 1.5em;
  border: 0;

  background: #e5e5e5;
  box-shadow: inset 0 -2px 0 0 rgba(0,0,0,0.1);
  border-radius: 60em;
  -moz-transition: all 0.2s ease-in 0s;
  -webkit-transition: all 0.2s ease-in;
  -webkit-transition-delay: 0s;
  transition: all 0.2s ease-in 0s;
  transform: translate3d(0, 0, 0);

  box-sizing: border-box;

  position: relative;
  z-index: 1;
}

.sv-control-labels {
  position: relative;
  height: 12px;
  margin-bottom: 12px;
}

.sv-control-labels > label {
  position: absolute;
  top: 1px;
  color: #555;
  -webkit-transition: color 400ms;
  -moz-transition: color 400ms;
  transition: color 400ms;
}

.sv-control .left { left: 0px; }
.sv-control .right { right: 0px; }

.sv-control-ui {
  position: relative;
  height: 18px;
  margin-bottom: 8px;
  font-size: 0.8em;
}

.sv-control-ui > span {
  position: absolute;
  color: #444;
  font-weight: 600;
}

.sv-filter-indicator {
  color: #444;
  -webkit-transition: color 400ms;
  -moz-transition: color 400ms;
  transition: color 400ms;
}

.sv-control-ui .disable-toggle { cursor: pointer; }
.sv-control-ui .enable { display: none; }
.sv-disabled .disable { display: none; }
.sv-disabled .enable { display: block; }

.sv-disabled,
.sv-disabled label,
.sv-disabled .sv-filter-indicator,
.sv-disabled h3 { color: #999; }
.sv-disabled .noUi-origin,
.sv-disabled .slider { background: #999; }

.tally-legend {
  position: absolute;
  left: 5px;
  bottom: 5px;
}

.tally-legend label {
  padding: 4px;
  margin: 8px 0 0;
  border-radius: 6px;
  display: inline-block;
  box-shadow: inset 0 2px 0 0 rgba(255,255,255,0.1);
}

.sv-legend-true { background: #222222; color: #fefefe;}
.sv-legend-false { background: #909090; }
.sv-legend-na { background: #D6D6D6; }

.nn-rect-hover {
	opacity: 0.1;
	-webkit-transition: all 0.3s linear;
/*    transition: all 0.3s linear;
*/
}

.nn-rect-not-hover {
	opacity: 1;
	-webkit-transition: all 0.3s linear;
/*    transition: all 0.3s linear;
*/
}

.nn-svg > line {
	stroke-width: 0.5;
	stroke-opacity: 0.8;
}

#nn-tooltip-text {
	position: absolute;
	top: 60%;
	opacity: 0;
	left: 60%;
}

.nn-svg > text {
        font-size: 12px;
	text-transform: uppercase;
	font-weight: bold;
	color: #333;
}

.nn-svg {
	background: #EDEDED;
}

.nn-pos-dot {
	font-size: 20px;
	fill: rgb(153, 204, 51);
}

.nn-neg-dot {
	font-size: 20px;
	fill: rgb(153, 51, 51);
}

.eq-ui h5 {
  font-size: 14px;
  line-height: 14px;
  margin: 0;
  font-weight: 600;
}

.eq-country {
  fill: #336699;
  stroke: #fafafa;
  stroke-width: 0.1em;
  stroke-opacity: .6;
  cursor: pointer;
  opacity: .85;
  transition: all 0.3s linear;
}

.eq-country.hover-over {
  stroke-width: 0.5em;
}

.eq-hide {
  opacity: .2;
}

.eq-viz text {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: default;
}

.eq-country text {
  font-size: 1.2em;
  cursor: pointer;
}

.eq-divider {
  stroke: #aaa;
}

.eq-overlay td {
  position: relative;
  font-size: 10px;
}

.eq-ui-right {
  float: right;
  width: 255px;
  height: 65px;
  padding: 10px;
}

.eq-ui-right h5 {
  font-size: .75em;
  margin-left: 40px;
  margin-bottom: 4px;
  position: relative;
}

.eq-ui-right h5:before {
  content: '';
  height: 30px;
  width: 30px;
  border-radius: 30px;
  background: #336699;
  display: inline-block;
  position: absolute;
  left: -38px;
}

.gn-viz {
  background: #EDEDED;
}

.gn-viz text {
  font-weight: 200;
  cursor: pointer;
  fill: #111;
}

.gn-y-label text,
.gn-viz .gn-viz-label {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  fill: #444;
  text-anchor: middle;
  cursor: default;
}

.gn-viz-prosecution {
  fill: #eee;
  stroke: none;
}

.gn-viz-support {
  fill: #e5e5e5;
  stroke: none;
}

.gn-viz-range-path {
  stroke: #fff;
}

.gn-y-label line,
.gn-viz-divide {
  stroke: #b4b4b4;
}

.gn-y-label text {
  text-anchor: end;
}

.gn-score-low {
  color: #993333;
  text-align: center;
}

.gn-score-medium {
  color: #336699;
  text-align: center;
}

.gn-score-high {
  color: #99CC33;
  text-align: center;
}

.gn-ui-container label {
  margin-bottom: 4px !important;
}


@media (max-width: 500px) {
  .eq-ui-right { display: none; }
}

@media (min-width: 480px) and (max-width: 799px) {
  .eq-overlay {
    position: absolute;
    left: 185px;
    top: 0;
}

@media (min-width: 800px) {

  .viz-ui {
    margin: 0 8px 30px;
    padding: 20px 10px;
    height: 80px;
  }

  .sv-ui-container {
    height: 150px;
    left: 5%;
    margin: 0;
  }

  .viz-overlay-tip {
    padding: 10px 5px 10px;
    height: 80px;
  }

  .eq-ui,
  .eq-overlay {
    height: 110px;
  }

  .viz-overlay-tip table td { padding: 4px 10px 0; }

  .viz-ui button {
    padding: 6px 12px;
    font-size: 14px;
  }
  .sv-overlay-tip h3,
  .sv-control h3 {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 6px;
  }

  .sv-overlay-tip h4 {
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 6px;
  }

  .sv-slider-container { width: 355px; }
  .sv-ui-container button { padding: 12px; }
  .sv-ui-container h2 {
    font-size: 24px;
    line-height: 30px;
  }

  .sv-affected-labels label {
    font-size: .8em;
  }

  .sv-affected-labels { margin-top: 8px; }
  .slider { margin-bottom: 12px; }

  .sv-overlay-tip {
    right: 5%;
    height: 140px;
    padding: 10px 10px 20px;
  }

  .tally-legend {
    position: absolute;
    left: 2%;
    bottom: 2%;
  }
}
