/* Some basic styles */
*,
*:before,
*:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
}
/*
body {
	margin: 0 auto;
	max-width: 640px;
	width: 90%;
}

body,
button {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

button {
  font-size: 100%;
}
*/
a:hover {
	text-decoration: none;
}

/* Not needed for tooltips to work */
header,
.content,
.content p {
	margin: 4em 0;
  text-align: center;
}

/* Add this class to the element that needs a tooltip */
.tooltip {
	position: relative;
	z-index: 2;
	cursor: pointer;
}

/* Hide the tooltip content by default */
.tooltip:before,
.tooltip:after {
	visibility: hidden;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	/* IE 5-7 */
	filter: alpha(opacity=0);
	/* Netscape */
	-moz-opacity: 0;
	/* Safari 1.x */
	-khtml-opacity: 0;
	/* Good browsers */
	opacity: 0;
  /*
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
	opacity: 0;
*/
	pointer-events: none;
}

/* Give tooltip some base styles */
.tooltip:before {
	position: absolute;
	padding: 7px;
	width: 160px;
	-webkit-border-radius: 3px;
	-moz-border-radius:    3px;
	border-radius:         3px;
	background-color: #000;
	background-color: hsla(0, 0%, 20%, 0.9);
	color: #fff;
	content: attr(data-tooltip);
	white-space: pre;
	text-align: center;
	font-size: 12px;
	line-height: 1.2;
}

/* Give the speech bubble triangle some base styles */
.tooltip:after {
	position: absolute;
	width: 0;
	content: " ";
	font-size: 0;
	line-height: 0;
}

/* Show the tooltip on hover */
.tooltip:hover:before,
.tooltip:hover:after {
	visibility: visible;

	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";

	  /* IE 5-7 */
	  filter: alpha(opacity=100);

	  /* Netscape */
	  -moz-opacity: 1;

	  /* Safari 1.x */
	  -khtml-opacity: 1;

	  /* Good browsers */
	  opacity: 1;
  /*
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
	opacity: 1;
*/
}

/* Position tooltip above the element */
.tooltip_top:before {
  bottom: 150%;
	left: 50%;
	margin-bottom: 5px;
	margin-left: -80px;
}

.tooltip_top:after {
  bottom: 150%;
  left: 50%;
  margin-left: -5px;
  border-top: 5px solid #000;
	border-top: 5px solid hsla(0, 0%, 20%, 0.9);
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
}

/* Position tooltip to the right of the element */
.tooltip_right:before {
  left: 110%;
  top: 50%;
  margin-top: -14px;
}

.tooltip_right:after {
  left: 110%;
  top: 5px;
  margin-left: -5px;
  border-right: 5px solid #000;
	border-right: 5px solid hsla(0, 0%, 20%, 0.9);
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}

/* Position tooltip underneath the element */
.tooltip_bottom:before {
  top: 150%;
	left: 50%;
	margin-top: 5px;
	margin-left: -80px;
}

.tooltip_bottom:after {
  top: 150%;
  left: 50%;
  margin-left: -5px;
  border-bottom: 5px solid #000;
	border-bottom: 5px solid hsla(0, 0%, 20%, 0.9);
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
}

/* Position tooltip to the left of the element */
.tooltip_left:before {
  right: 110%;
  top: 50%;
  margin-top: -14px;
}

.tooltip_left:after {
  right: 110%;
  top: 5px;
  margin-right: -5px;
  border-left: 5px solid #000;
	border-left: 5px solid hsla(0, 0%, 20%, 0.9);
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}