article {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}
article h1 {
	font-size: 48px;
	padding: 5px;
}
article h2 {
	font-size: 16px;
	font-weight: lighter;
	padding: 8px;
}
article h3 {
	font-size: 24px;
	font-weight: 400;
	margin-top: 12px;
	margin-bottom: 12px;
	padding-top: 5px;
	padding-bottom: 5px;
}
article p {
	font-size: 14px;
	font-weight: normal;
	line-height: 20px;
	margin-bottom: 12px;
	padding-top: 5px;
	padding-bottom: 5px;
}
article a {
	text-decoration: none;
	color: darkblue;
}
.copyright {
	opacity: .7;
	font-size: 12px;
}

.article-text-block {
	margin-top: 20px;
	margin-bottom: 20px;
	text-align: left;
	align-self: center;
	width: 650px;
}
.election-caption {
	text-align: right;
	align-self: center;
	max-width: 900px;
	width: 100%;
	padding-right: 10px;
	padding-left: 10px;
	opacity: .8;
}
.election-caption p {
	font-size: 9px;
	margin: 0;
	padding: 0;
	line-height: 11px;
}
.election-caption.bars {
	max-width: 900px;
}
.election-wrapper {
	display: flex;
	flex-direction: column;
}
.graphic-title {
	max-width: 900px;
	width: 100%;
	text-align: left;
	align-self: center;
	display: flex;
	flex-wrap: wrap;
}
.graphic-title h4 {
	font-weight: 900;
	margin-right: 5px;
}
.graphic-title h5 {
	font-size: 14px;
	opacity: 0.7;
}
svg text {
	font-size: 12px;
	stroke-width: 0;
	fill: black;
}
/* Sankey diagram styles */
#chart {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 12px;
	margin: 5px;
	margin-bottom: 10px;
}
#bars-tv-all-svg {
	overflow: visible;
}
#bars-tv-all,
#bars-categories,
#bars-summary {
	margin-top: 10px;
	margin-bottom: 5px;
}
.sankey {
	overflow: visible;
}
.sankey .node rect {
/*	cursor: move; */
	/*fill-opacity: .9;*/
	/*shape-rendering: crispEdges;*/
}
.sankey .node text {
	pointer-events: none;
	/*text-shadow: 0 1px 0 #fff;*/
}
.sankey .link {
	fill: none;
	stroke: #000;
	stroke-opacity: .2;
}
.sankey .link:hover {
	stroke-opacity: .4;
}
.tick {
	pointer-events:none;
}
rect.dem {
	fill: #3366ff;
	stroke: #3366ff;
}
rect.dem:hover {
	fill: #0040ff;
	stroke: #0040ff;
}
rect.rep {
	fill: #ff0000;
	stroke: #ff0000;
}
rect.rep:hover {
	fill: #cc0000;
	stroke: #cc0000;
}
rect.none {
	fill: #669999;
	stroke: #669999;
}
rect.none:hover {
	fill: #527a7a;
	stroke: #527a7a;
}
rect.bar.bar--positive.none {
	fill: rgb(102, 153, 153);
	stroke: rgb(102, 153, 153);
	fill-opacity: 0.01;
	stroke-dasharray: 3;
}
rect.bar.bar--positive.none:hover {
	fill-opacity: 0.1;
}
rect.bar.bar--negative.dem {
	fill: #99b3ff;
	stroke: #99b3ff;
}
rect.dem.bar--negative:hover {
	fill: #668cff;
	stroke: #668cff;
}
rect.rep.bar--negative {
	fill: #ff6666;
	stroke: #ff6666;
}
rect.rep.bar--negative:hover {
	fill: #ff3333;
	stroke: #ff3333;
}
rect.none.bar--negative {
	fill: rgb(102, 153, 153);
	stroke: rgb(102, 153, 153);
	fill-opacity: 0.01;
	stroke-dasharray: 3;
}
rect.none.bar--negative:hover {
	fill-opacity: 0.1;
}
.bar--positive.other {
	fill: #669999;
	stroke: #669999;
}
.bar--positive.other:hover {
	fill: #527a7a;
	stroke: #527a7a;
}
.bar--negative.other {
	fill: #c2d6d6;
	stroke: #c2d6d6;
}
.bar--negative.other:hover {
	fill: #a3c2c2;
	stroke: #a3c2c2;
}
.candidate-spending {
	fill: black;
	opacity: 0.5;
	pointer-events: none;
}
/* tooltip styles */
.d3-tip h1 {
	font-weight: 500;
	font-size: 14px;
	padding: 0;
	margin-bottom: 5px;
	width: 100%;
}
.d3-tip h2 {
	font-weight: bold;
	font-size: 12px;
	padding-right: inherit;
	padding-left: inherit;
	padding-top: 2px;
	padding-bottom: 2px;
	margin: 0px;
}
.d3-tip h3 {
	font-weight: normal;
	font-size: 8px;
	margin: 0;
	padding: 0;
}
.d3-tip table {
	font-weight: normal;
	font-size: 12px;
	padding: none;
	margin: 0;
	width: 100%;
	border: none;
	border-collapse: collapse;
}
.d3-tip td {
	padding-top: 2px;
	padding-bottom: 2px;
}
.d3-tip .col-left {
	padding-right: 8px;
}
.d3-tip .table-wrapper {
	margin: 0;
	padding: inherit;
	border: none;
}
.d3-tip {
	line-height: 1;
	font-weight: normal;
	padding: 4px;
	background: white;
	color: black;
	border-radius: 2px;
	pointer-events: none;
	background:  white;
	box-shadow: 1px 1px 4px grey;
	white-space: nowrap;
}
#sankey-labels {
	display: flex;
	flex-direction: row;
	align-self: center;
	max-width: 900px;
	justify-content: flex-start;
	/*margin-top: 20px;*/
	font-weight: bold;
	font-size: 12px;
	color: grey;
	width: 100%;
	margin-top: 8px;
	margin-bottom: 8px;
	margin-right: 20px;
	margin-left: 20px;
}
.sankey-label {
	flex: 1;
	max-width: 80px;
	color: #999;
	font-size: 14px;
	cursor: pointer;
	float: left;
	padding: 10px 18px;
	border-top: solid 1px #CCC;
	border-bottom: solid 1px #CCC;
	border-left: solid 1px #CCC;
	background: #f9f9f9;
	margin: 0 0;
}
.sankey-label.clicked {
	color: #000;
	background: #e9e9e9;
	border-color: #AAA;
	box-shadow: inset 0px 0px 4px rgba(0,0,0,0.2);
}
.sankey-label.first {
	border-radius: 4px 0 0 4px;
}
.sankey-label.last {
	border-right: solid 1px #CCC;
	border-radius: 0 4px 4px 0;
}
/* Styles for bar charts */
.axis text {
	font: 10px sans-serif;
}
.axis path,
.axis line {
	fill: none;
	stroke: #000;
	shape-rendering: crispEdges;
	pointer-events: none;
}
/*Styles for smaller screens*/
@media screen and (min-width: 280px) and (max-width: 767px) {
	article h1 {
		font-size: 36px;
	}
	.article-text-block {
		margin-top: 12px;
		margin-bottom: 12px;
		text-align: left;
		align-self: center;
		width: 650px;
	}
	.article-text-block {
		width: 100%;
	}
	.election-caption {
		width: 100%;
	}
	.sankey-label {
		max-width: none;
	}
	.sankey text {
		font-size: 11px;
	}
}