/* GLOBAL STYLES
--------------------*/

body {
  padding: 20px 0px;
}

h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 25px;
  text-align: center;
}

h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: lighter;
  text-align: center;
}

h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  text-align: center;
}

p {
  font-family: 'Open Sans', sans-serif;
}

/* GRAPHIC TITLE
---------------------*/

.title {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

.legend {
  display: block;
  text-align: center;
}

.dem-title, .rep-title, .ind-title {
  display: inline-block;
  margin: 0 12px;
}

.swatch {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.label {
  font-family: 'Libre Franklin', sans-serif;
  display: inline-block;
}

.dem-title .swatch {
  background: rgb(53, 139, 184);
}

.rep-title .swatch {
  background: rgb(208, 71, 70);
}

.ind-title .swatch {
  background: rgb(169, 169, 169);
}

/* HOUSE SEATS CLICKABLE GRAPHIC
------------------------------------*/

.circle-democrats {
  fill: rgb(53, 139, 184);
  stroke: rgb(53, 139, 184);
}

.circle-republicans {
  fill: rgb(208, 71, 70);
  stroke: rgb(208, 71, 70);
}

.circle-independents {
  fill: rgb(169, 169, 169);
  stroke: rgb(169, 169, 169);
}

circle:hover {
  fill: gray;
  stroke: gray;
}


/* CANDIDATE INFO BOX
-----------------------*/

#info {
  background: #F5F5F5;
  max-width: 350px;
  display: block;
  margin: 0 auto;
}

#info h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 25px;
  font-weight: bold;
  padding-left: 15px;
  padding-right: 15px;
}

#info h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  padding-left: 15px;
  padding-right: 15px;
}

#info p {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 25px;
}

#info p a {
  text-decoration: none;
  color: blue;
  font-family: 'Libre Franklin', sans-serif;
}

img {
    margin-top: 5px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
}

.warning-image {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

/* MOBILE CODING
=========================*/


@media screen and (max-width: 849px) {
  #main-graphic-page {
    display: none;
  }
}

@media screen and (min-width: 850px ) {
  #main-graphic-page-warning {
    display: none;
  }
}








.ddimgtooltip{
box-shadow: 3px 3px 5px #818181; /*shadow for CSS3 capable browsers.*/
-webkit-box-shadow: 3px 3px 5px #818181;
-moz-box-shadow: 3px 3px 5px #818181;
display:none;
position:absolute;
border:1px solid lightgray;
background:white;
color: black;
z-index:2000;
padding: 10px;
}

.credits {
  margin-top: 30px;
  border:1px solid #DCDCDC;
  border-bottom: 3px solid #DCDCDC;
  background:white;
  color: black;
  padding: 20px;
}

.credits p {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
}

.kicker h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  text-align: center;
  color: #1955a5;
}

.byline p {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  text-align: center;
  font-weight: bold;
}

.byline p a {
  color: #1955a5;
  text-decoration: none;
}

article {
  width: 600px!important;
  padding: 0;
  margin: 0 auto;
}

article h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
}

article h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  text-align: left;
  padding-top: 20px;
}

article p {
  font-family: Georgia, serif;
  line-height: 1.8em;
  margin-bottom: 24px;
  font-size: 18px;
  margin-top: 0;
  color: #2a2a2a;
  text-shadow: 0 1px 0 #FFF;
  font-weight: normal;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.headline {
  margin-top: -45px;
}

.headline h2 {
  font-family: 'Open Sans', sans-serif;
   color: gray;
   font-size: 12px;
   text-transform: uppercase;
   border: 1px solid gray;
   padding: 10px;
   display: block;
   text-align: center;
}

.subhead {
  margin-top: -20px;
}

.subhead h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 22px;
  text-align: center;
  line-height: 2;
  color: #2a2a2a;
  text-shadow: 0 1px 0 #FFF;
  font-weight: normal;
}

.byline {
  margin: 50px 0px;
}

select {
  padding: 20px 20px 5px 20px;
  font-family: 'Playfair Display', serif;
  border-bottom: 5px solid green;
  border-top: none;
  border-left: none;
  border-right: none;
}


.graphic {
  margin: 50px auto 45px;
}

hr {
  max-width: 700px;
}

figure {
  padding: 0;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 50px;
  width: 800px;
}

figcaption {
 font-family: 'Open Sans', sans-serif;
  color: gray;
  font-size: 12px;
  margin-top: 10px;
  text-transform: uppercase;
}

.switch {
  text-align: center;
  margin: 0 auto;
  width: 800px;
}

.switch h1 {
  margin-top: 50px;
}


ul {

}

ul li {
  font-family: 'Libre Franklin', serif;
  font-size: 15px;
  font-weight: bold;
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid black;
}

#main-graphic-page-warning h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3em;
}

#main-graphic-page-warning h2 {
  line-height: 2;
}

.content-hide {
  display: none;
}

.button-toggle {
  margin: 75px 0px 50px 0px;
  text-align: center;
}
button {
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  text-align: center;
  width: 200px;
  text-align: center;
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid black;
  margin: 0;
  text-transform: uppercase;
}

button:hover {
  background: black;
  color: white;
}


button:focus {
  background: black;
  color: white;
}
