html {
  font-size: 16px;
  height: 100%;
}

body {
  font-size: inherit;
  height: 100%;
  opacity: 0;
  overflow: hidden;
  -webkit-overflow-scrolling: none;
}

blockquote {
  font-size: 1.25em;
  margin-left: 0;
  margin-right: 0;
}

blockquote > p:first-of-type:before {
  content: "“";
  display: inline-block;
}

blockquote > p:last-of-type:after {
  content: "”";
  display: inline-block;
}

blockquote > cite {
  display: block;
  font-style: normal;
  text-align: right;
}

blockquote > cite:before {
  content: "\2014 ";
}

#navbuttons {
  left: 1em;
  opacity: .5;
  position: fixed;
  top: 1em;
  z-index: 1002;
  -moz-transition: opacity .5s;
  -webkit-transition: opacity .5s;
  transition: opacity .5s;
}

#navbuttons:hover {
  opacity: 1;
  -moz-transition: opacity .5s;
  -webkit-transition: opacity .5s;
  transition: opacity .5s;
}

#navbuttons .button {
  border-radius: 0 !important;
}

#navmenu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: none;
  background: rgba(255, 255, 255, 0.85);
  box-sizing: padding-box;
  padding: 2em;
}

#navmenu h2,
#navmenu h3,
#navmenu p {
  color: rgba(0, 0, 0, .87);
  text-shadow: none;
}

#navmenu .ui.card,
#navmenu .ui.cards > .card {
  border: none !important;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
}

#navmenu .card .image {
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
  border: none !important;
  max-height: 300px;
  overflow: hidden;
  width: 100%;
}

#navmenu .card.disabled .content {
  opacity: .7;
}

#navmenu .ui.card > *:first-child,
#navmenu .ui.cards > .card > *:first-child {
  -moz-border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  border-radius: 0 !important;
  border: none !important;
}

#navmenu .card .image .reveal {
  height: 100%;
  width: 100%;
}

#navmenu .card .image .reveal .content img {
  width: 100%;
}

#navmenu .card .extra.content {
  font-size: .875em;
  /* 14px / 16px */
}

#layernav {
  color: #ccc;
  height: 0;
  /* Set to 0 so it's not clickable */
  left: 0;
  position: absolute;
  top: 45%;
  width: 100%;
  z-index: 101;
}

#layernav > * {
  font-size: 40px;
  font-weight: 700;
  height: 100%;
  width: 40px;
}

#layernav .hidden {
  visibility: hidden;
}

#layernav a {
  background: rgba(255, 255, 255, .3);
  color: #ccc;
  cursor: pointer;
  display: block;
  height: 80px;
  line-height: 80px;
}

#layernav a i {
  display: block;
  height: 100%;
  margin: 0;
  width: 100%;
}

#layernav a:hover {
  background: rgba(255, 255, 255, .6);
}

#layernav a:hover i {
  color: rgba(0, 0, 0, .6);
}

#layernav .next {
  float: right;
  margin-right: .4em;
  /* 16px / 40px */
}

#layernav .prev {
  float: left;
  margin-left: .4em;
  /* 16px / 40px */
}

#progress {
  height: 5px;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

#progress .bar {
  background: rgba(255, 255, 255, .5);
  height: 100%;
  width: 0;
}

#layers {
  overflow: hidden;
}

.layer {
  background-color: rgb(95, 95, 95);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  position: relative;
}

.layer .fp-tableCell {
  width: 100%;
}

.layer .fp-tableCell {
  position: relative;
}

.layer_inner {
  background: rgba(0, 0, 0, .6);
  box-sizing: padding-box;
  color: white;
  margin: 0 auto;
  max-width: 960px;
  opacity: 0;
  padding: 2em;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .5);
  width: 70%;
}

.layer_inner > p:last-of-type {
  margin-bottom: .5em;
}

.layer_inner .toggle {
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
  float: right;
  font-size: .875em;
  /* 14 px */
}

.layer_inner .toggle .icon {
  font-size: 1.1428em;
  /* 16px */
}

.layer.lower .layer_inner {
  bottom: 5%;
  left: 15%;
  position: absolute;
}

.layer.image-upper {
  background-position: 50% 0%;
  background-size: auto 50%;
}

.layer.lower .viz {
  top: 5%;
  left: 15%;
  box-sizing: content-box;
  color: white;
  margin: 0 auto;
  max-width: 960px;
  overflow: hidden;
  position: absolute;
  padding: 2em 0;
  width: 70%;
}

.layer.centered-viz .viz svg {
  margin: 0 auto;
}

.viz .stats-right {
  float: right;
  max-width: 50%;
}

.viz .stats-right .ui.statistic {
  display: block;
  flex: none;
  margin-bottom: 1em;
  margin-left: 0;
}

.viz .stats-right .ui.statistic .label {
  font-weight: 300;
}

.layer.transparent .layer_inner {
  background: transparent;
}

.layer.lower.transparent .layer_inner {
  height: 45%;
}

.layer_inner p {
  font-size: 1.5em;
  /* 24px */
}

.layer_inner a {
  border-bottom: 1px dotted white;
  color: white;
}

.layer_credit {
  bottom: 1.333em;
  /* 20px */
  color: white !important;
  font-size: .75em;
  /* 12px */
  position: absolute;
  right: 1.333em;
  /* 20px */
  text-align: right;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, .5);
}

.layer_credit a {
  border-bottom: 1px dotted white;
  color: white;
}

.layer.slide h2 {
  font-size: 2em;
  font-weight: 400;
}

.layer.slide h3 {
  font-size: 1.75em;
  font-weight: 400;
}

.layer.slide h4 {
  font-size: 1.5em;
  font-weight: 400;
}

.layer.splash {
  color: white !important;
  text-align: center;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, .5);
}

.layer.splash .fp-tableCell > * {
  margin: 0 auto;
  width: 80%;
}

.layer.splash .layer_credit {
  max-width: none !important;
  width: 45% !important;
}

.layer.splash h1 {
  font-size: 4em;
  font-weight: 400;
  margin-bottom: .5em !important;
  text-transform: uppercase;
}

.layer.splash h2 {
  font-size: 2em;
  font-weight: 400;
  margin-bottom: 2em !important;
}

.layer.splash h3 {
  font-size: 1.5em;
  font-weight: 400;
  margin-bottom: 1em !important;
}

.layer.splash h4 {
  font-size: 1em;
  font-weight: 400;
}

.layer.splash .logos {
  bottom: 1.333em;
  font-size: .75em;
  height: 50px;
  position: absolute;
  left: 1.333em;
  max-width: none;
  width: 45%;
  text-align: left;
}

.layer.splash .logos img {
  margin-right: 5%;
  height: inherit;
}

.layer.splash .logos img.lab {
  height: 40px;
  position: relative;
  top: -6px;
}

span.hidden {
  visibility: hidden;
}

span.visible {
  visibility: visible;
}

#grid-sidebar .actions {
  color: white;
  margin: 0 auto;
  padding: 1em;
  max-width: 960px;
}

#grid-sidebar .content {
  color: white;
  font-size: 1.125em;
  margin: 0 auto;
  padding: 1em;
  max-width: 960px;
}

#grid-sidebar .ui.form .inline.field > label {
  color: white !important;
}


/* D3 */

svg {
  font-size: 10px sans-serif;
}

.axis path {
  display: none;
}

.axis line {
  shape-rendering: crispEdges;
  stroke: #ccc;
}

.axis text {
  fill: #ccc;
  font-size: 10px;
}

svg.grid .axis line,
svg .grid .axis line {
  stroke: #999;
}

svg .grid .axis text,
svg .axis.nolabels text {
  display: none;
}

svg .sac .axis path,
svg .scatterplot .axis path {
  display: block;
  fill: none;
  shape-rendering: crispEdges;
  stroke: #ccc;
}

.d3-tip {
  background-color: rgba(0, 0, 0, .9);
  color: white;
  font-size: 12px;
  line-height: 16px;
  max-width: 180px;
  padding: 6px 10px;
  z-index: 1001;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

.layer[data-anchor="measure-grid-viz-step1"] svg,
.layer[data-anchor="measure-grid-viz-step2"] svg,
.layer[data-anchor="measure-grid-viz-step3"] svg {
  background: rgba(255, 255, 255, .1);
}

.layer[data-anchor="measure-grid-viz-step6"] p.hidden {
  display: none;
}

.layer[data-anchor="measure-grid-viz-step6"] p.visible {
  display: block;
}

.layer[data-anchor="credits"] p {
  text-align: left;
}