@import url(http://fonts.googleapis.com/css?family=Roboto:400,300|Roboto+Condensed:400,300);


html, body {
    max-width: 100%;
    overflow-x: hidden;
}


body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

hr {
  border: 0;
  color: #aaa;
  background-color: #666;
  height: 1px;
}

#top-links {
  margin-left: auto;
  margin-right: auto;
  text-align: center;

}

.social-line {
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
text-align: justify;
max-width: 400px;
margin-bottom: -14px;
}

.social-line:after {
  content: '';
  width: 100%; /* Ensures there are at least 2 lines of text, so justification works */
  display: inline-block;
}

.icon-button {
  display: inline-block;
  vertical-align: middle;
}

.icon-button-img {
    border-radius: 50%;

-webkit-box-shadow: 10px 10px 25px -10px rgba(0,0,0,0.75);
-moz-box-shadow: 10px 10px 25px -10px rgba(0,0,0,0.75);
box-shadow: 10px 10px 25px -10px rgba(0,0,0,0.75);
}

#heading {
  font-size: 22px;
  font-weight: 300;
  text-shadow: 0 1px 0 #fff;
  margin-top: 26px;
  margin-left: 4px;
  margin-right: 4px;
  text-align: center;
  color: #333;
}

#pairs {
  display: block;
  margin-top:20px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  width: 100%;
}

#chart-section {
  margin-top: 30px;
}

#chart {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-family:'Roboto Condensed', sans-serif;
}

.social-share-btn {
  line-height: 10px;
  display: inline-block;
  vertical-align: middle;
}

.blue-link {
  color:#0000EE;
  font-style:italic;
}

.gray-link {
  color:555;
}

.node {
  cursor: pointer;
}

.node circle {
  fill: #fff;
}

.node path {
  fill: #fff;
}

.republican-arc {
  fill: #fff;
}

#chart-header {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#chart-info {
  font-style:italic;
  color: #999;
  font-size: 12px;
}

.democratic {
  font-weight: 400;
  color: #405497;
}

.republican {
  font-weight: 400;
  color: #b62e2d;
}

#boxed {
  display: inline-block;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;

  font-style:italic;

  color: #999;
  font-size: 12px;
  max-width: 600px;
}

#verdant {
  color: #333;
  font-style:normal;
  font-size: 12px;
  margin-top: 10px;
}

#key {
  margin-top: 20px;
  text-align: center;
  font-style:italic;
  color: #999;
  font-size: 12px;
}

.btn {
  background: #eee;
  background-image: -webkit-linear-gradient(top, #eee, #ddd);
  background-image: -moz-linear-gradient(top, #eee, #ddd);
  background-image: -ms-linear-gradient(top, #eee, #ddd);
  background-image: -o-linear-gradient(top, #eee, #ddd);
  background-image: linear-gradient(to bottom, #eee, #ddd);
  -webkit-border-radius: 5;
  -moz-border-radius: 5;
  border-radius: 5px;
  color: #666;
  font-size: 12px;
  padding: 5px 10px 5px 10px;
  text-decoration: none;

  border:none !important;

  margin: 0px 5px 0px 5px;
}

.heading-title {
  font-size: 27px;
}

#chart-title {
  font-size: 27px;
}

// Workaround for SVG scaling bug on some Android devices

#containingBlock {
  width:100%;
}

.svgWrapper {
  position: relative;
  padding-bottom: 290.9090%;
  padding-top: 0px;
  height: 0;
}

.svgWrapper object,
.svgWrapper embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

// -- Responsive --

@media only screen and (min-width: 400px) {
  .heading-title {
    font-size: 30px;
  }

  #chart-title {
    font-size: 30px;
  }
}

@media only screen and (min-width: 500px) {
  .heading-title {
    font-size: 32px;
  }

  #chart-title {
    font-size: 32px;
  }
}

@media only screen and (min-width: 640px) {
  .heading-title {
    font-size: 40px;
  }

  #chart-title {
    font-size: 40px;
  }

  #chart {
    width: 640px;
    font-weight: 300;
  }

  #pairs {
    width: 640px;
  }
}

@media only screen and (min-width: 800px) {
  body {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}


.d3-tip {
  line-height: 1;
  padding: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 2px;
  font-family:'Roboto Condensed', sans-serif;
}

/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
font: 10px sans-serif;
  box-sizing: border-box;
  display: inline;
  font-size: 10px;
  width: 100%;
  line-height: 1;
  color: rgba(0, 0, 0, 0.8);
  content: "\25BC";
  position: absolute;
  text-align: center;
}

/* Style northward tooltips differently */
.d3-tip.n:after {
  margin: -1px 0 0 0;
  top: 100%;
  left: 0;
}