@import url( "https://www.pewresearch.org/wp-content/plugins/pew-refactor-shim/assets/legacylib/chunks/addthis.css" );
@import url( "https://www.pewresearch.org/wp-content/plugins/pew-refactor-shim/assets/legacylib/chunks/singular.css" );
@import url( "https://www.pewresearch.org/wp-content/plugins/pew-refactor-shim/assets/legacylib/chunks/pagination.css" );
@import url( "https://www.pewresearch.org/wp-content/plugins/pew-refactor-shim/assets/legacylib/chunks/sidebar-widget.css" );
@import url( "https://www.pewresearch.org/wp-content/plugins/pew-refactor-shim/assets/legacylib/chunks/sidebar-related-material.css" );
@import url( "https://www.pewresearch.org/wp-content/plugins/pew-refactor-shim/assets/legacylib/chunks/interactives.css" );
@import url( "https://www.pewresearch.org/wp-content/plugins/pew-refactor-shim/assets/legacylib/chunks/toggle-buttons.css" );

#content{
	overflow:visible;
}

fieldset{
	display:inline;
}
      #wrapper {
          width: 960px;
          margin: -30px auto 0;
      }
      #map {
          width: 960px;
          height: 520px;
          position: relative;
      }

      .country {
          fill: steelblue;
          stroke: #7A7B7E;
          stroke-width:.5px;
      }
      #interactive table tr:nth-child(-n+2){
        display:none;
      }

      /*Please God forgive me for what I've done here */
      #interactive table tr:nth-child(3) td, #interactive table tr:nth-child(9) td{
        width:100%;
      }
      #interactive table tr:nth-child(3) td{
    		padding-top:10px;
    		padding-bottom:10px;
      }
      #interactive table tr:nth-child(9) td{
        padding-top:15px;
        padding-bottom:10px;
      }
      #interactive table tr:nth-child(n+4):nth-child(-n+8) td:last-of-type::after{
       	content:"%";
      }


      #interactive .global_table tr:nth-child(-n+2){
        display:block;
      }
.tooltip {
	/*position:absolute;*/
	z-index:10;
	background:white;
	padding:5px 5px;
	border-radius:5px;
	border:1px solid #333;
	font-family: "franklin-gothic-urw",Verdana,Geneva,sans-serif;
	font-size:1em;
	letter-spacing:0.1em;
	line-height:130%;
}
.tooltip h3{
	font-weight: bold;
	font-size:1.4em;
}
.tooltip table{
	width:100%;
	border:0px;
	text-align: left;
}
.tooltip table tr, .tooltip table td{
	border:0px;
	text-align: left
}

#percent_leg{
	display:none;
}

#staticMaps{
	display:none;
}
#static_legends{
	margin-top: 20px;
	margin-bottom: 20px;
}

.expl_var {
	background:#E2E2E2;
	padding:1px 10px;
}

#interactive {
position: inherit;
}

#map svg {
	margin: 0 auto;
	display: block;
}
#menu {
	padding-left:0;
	padding-bottom: 15px;
	border-bottom: 1px dotted #ccc;
	margin-bottom: 20px;
}
.explainer{
	width:100%;
	height:auto;
	/*display:none;*/
}
.explainer h2 {
	line-height:150%;
}
#interactive h3 {
	font-style: italic;
	font-weight: 400;
	color: #777;
}

#toggle2{
	margin-left:20px;
}

#select select {
	padding: 5px 10px;
	height: auto;
	width:100%;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	font-size: 13px;
	border: 1px solid #A8A8A8;
	margin-bottom:20px;
}
#menu li {
	list-style:none;
	float:left;
}
#menu li:not(.switch) {
	padding: 6px 0;
	color:#888;
	font-size: 13px;
	margin-right:10px;
}
#menu p {
	clear: left;
	color: #888;
	font-size: 13px;
	padding-top: 12px;
}
#interactive.w660 h2.sentFrom {
	font-weight: 100;
	text-align: center;
	font-size: 3em;
	margin-bottom: 15px;
}
#about p {
	font-size: 1.5em;
	line-height: 150%;
	margin-bottom:15px;
}

#about{
	width:50%;
	float:left;
}
#data {
	position:relative;
	width:100%;
	float:left;
}
#blurby {
	width:45%;
	float: right;
}
#interactive #data table {
	position:relative;
	overflow:auto;
	width:100%;
	margin-bottom:20px;
	font-family: "franklin-gothic-urw", Verdana, Geneva, sans-serif;
	border: 1px solid #999;
	table-layout:auto;
}
#data thead {

}
#data table th {
	cursor:pointer;
	width: 33%;
	background:#f2f3e9;
}
#data th.sorted {
	color: #fff;
	background: #B7B8AF;
}
#data th:not(.sorted):hover {
	background: #E5E2D2;
}
#data tbody {
	display: block;
	padding:10px;
}
#data tbody::-webkit-scrollbar {
    -webkit-appearance: none;
}
#data tbody::-webkit-scrollbar:vertical {
    width: 11px;
}
#data tbody::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 2px solid white;  /*should match background, can't be transparent */
    background-color: rgba(0, 0, 0, .5);
}
#data td{
	border-bottom:0px;
}
#data tr {
	display:block;
}
#data tbody tr:hover {
	background: rgba(0, 0, 0, .2);
}
#data tr:nth-child(even) {
	background: #eee;
}
#data th,
#data td {
	width:48%;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	display:inline-block;
	padding:4px 5px;
	font-size:1.4em;
}
#data td:nth-child(1){
	text-align:left;
}
/*#data tbody td:last-of-type {
	text-align:right;
}*/
#interactive .global_table td:nth-child(1){
	text-align:left;
}
#interactive #data .table #table td{
	padding:4px 5px;
	white-space:nowrap;
}

.source{
	clear:both;
}
#interactive #data .table table{
	padding-left:10px;
}
td .countyColor,
li .countyColor {
	width:10px;
	height:10px;
	border:1px solid #666;
	margin-right:6px;
	float:left;
	-moz-border-radius:50%;
	-webkit-border-radius:50%;
	border-radius:50%;
}

@media (max-width: 630px){
	#map {
	display:none;
	}
	#staticMaps{
	display:inline;
	}
	#static_legends{
		display:none;
	}
	.toggle label{
		font-size:.6em;
		padding: 5px 6px;

	}
	.toggle{
		float:left;
	}
	.explainer{
		float:left;
	}
	#about, #blurby{
		float:left;
		width:100%;
	}
	#data{
		width:100%;
	}
	select {
		margin-top:2em;
	}
	#menu {
	margin-top:0 !important;
	border-bottom:0px;
	}
	.switch {
	width: 100%;
	}
}
