* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	font-family: Helvetica, sans-serif;
	color: black;
	 -webkit-overflow-scrolling: touch;
	box-sizing: border-box;
	background: #f3f3f3;
}

a {
	text-decoration: none;
	color: #7b28e6;
}

a:hover {
	text-decoration: underline;
}

body #main-wrapper {
	width: 100%;
	padding: 20px;
}

body #content {
	color: #3f4245;
	width: 100%;
	padding: 10px 20px;
	max-width: 620px;
	margin: 0 auto;
	position: relative;
	background: white;
	border-top: 5px solid #b3b0b0;
}

#intro {
	margin: 0 auto;
}

#intro .byline {
	margin-right: 12px;
}

#intro .timestamp {
	color: #666;
	text-transform: uppercase;
	font-size: 0.8em;
}

#intro img {
	width: 100%;
}

body h1 {
	line-height: 1.3em;
	font-weight: 400;
	margin-bottom: -0.2em;
}

body h3 {
	font-weight: 400;
	line-height: 1.3em;
	margin-bottom: 0.5em;
}

.metadata {
	color: #999;
	font-size: 0.8em;
}

body p {
	font-size: 16px;
	line-height: 22px;
	font-weight: 400;
}

body li {
	font-size: 16px;
	line-height: 22px;
	font-weight: 400;
	margin-bottom: 4px;
}

#visualization-wrapper {
	position: relative;
	width: 100%;
}

#visualization-container {
	width: 100%;
	margin: 0 auto;
	max-width: 800px;
	position: relative;
	background: white;
}

.d3-tip {
  line-height: 1.2;
  font-weight: 100;
  padding: 12px;
  background: white;
  color: black;
  border-radius: 2px;
  font-size: 12px;
  border: 1px solid black;
  max-width: 300px;
}

.d3-tip:after {
  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: 0 0 0 0;
  top: 100%;
  left: 0;
}

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

.legend rect {
  fill:white;
  stroke:none;
  opacity:0.8;
}

@media (max-width: 680px) {
	body #main-wrapper {
		padding: 10px;
	}
}
