/* General
–––––––––––––––––––––––––––––––––––––––––––––––––– */
* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.hidden {
	display: none!important;
}

.cf {
  clear: both;
}

#debug {
	position: fixed;
	top: 3px;
	left: 3px;
	color: #F00;
	opacity: 0.1;
	font-family: sans-serif;
	font-size: 0.8rem;
	z-index: 1;
}

/* Viz
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz {
  max-width: 750px;
  margin: 0 auto;
	position: relative;
	font-size: 16px;
}

#viz h1, #viz h2, #viz h3, #viz h4, #viz h5, #viz h6 {
	font-family: 'DharmaGothicE', sans-serif;
	margin: 0;
	padding: 0;
	line-height: 1.35;
}

#viz p {
	font-family: "Droid Serif", serif;
	margin: 0;
	margin-bottom: 1rem;
	padding: 0;
	line-height: 1.35;
}

#viz .header {
  margin-bottom: 30px;
}

#viz .header h1 {
  font-size: 3.5rem;
}

#viz .header p {
  font-size: 1.2rem;
}

#viz .card {
}

#viz .card:not(:last-child) {
  background: #FFF;
  margin-bottom: 20px;
}

#viz .card .header {
  background: #383838;
  color: #FFF;
  text-align: center;
  padding: 7px;
  border-bottom: 10px solid #E25632;
  margin-bottom: 0;
  
  background: #333;
  border-bottom-color: #000;
}

#viz .card .header * {
  line-height: 1;
}

#viz .card .cell {
  float: left;
  font-size: 0;
  position: relative;
  text-align: center;
  background: #444;
  width: calc(100%/5);
  padding: calc(100%/10) 0;
}

#viz .card .cell.darker {
  background: #333;
}

#viz .card#c-1 .cell { background: hsla(18,100%,50%,1); }
#viz .card#c-1 .cell.darker { background: hsla(18,100%,40%,1); }
#viz .card#c-2 .cell { background: hsla(78,100%,35%,1); }
#viz .card#c-2 .cell.darker { background: hsla(78,100%,25%,1); }
#viz .card#c-3 .cell { background: hsla(188,92%,35%,1); }
#viz .card#c-3 .cell.darker { background: hsla(188,92%,25%,1); }

#viz .card .cell .contents {
  color: #FFF;
  font-family: "DharmaGothicE", sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 0.93;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  -moz-transform: translate(-50%,-50%);
}

/* Larger than mobile
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (min-width: 360px) {
  #viz .card .cell .contents {
    font-size: 0.8rem;
  }
}

/* Larger than phablet */
@media (min-width: 550px) {
#viz .card .header {
  padding: 10px;
  border-bottom: 15px solid #000;
}
  #viz .card .cell .contents {
    font-size: 1.2rem;
    font-weight: 300;
  }
}

/* Larger than tablet */
@media (min-width: 750px) {
  #viz .header {
    margin-bottom: 20px;
    padding: 15px 0;
  }
  #viz .header h1 {
    font-size: 5rem;
  }
  #viz .card .header {
    padding: 25px;
  }
  #viz .card .cell .contents {
    font-size: 1.2rem;
  }
}

/* Larger than desktop */
@media (min-width: 1000px) {
}

/* Larger than Desktop HD */
@media (min-width: 1200px) {}


/* Print
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media print {
  .element-embed {
    display: inherit!important;
    width: auto!important;
    height:  auto!important;
  }
  
  #viz .card {
    page-break-inside: avoid!important;
    page-break-before: always!important;
    page-break-after: always!important;
  }

  #viz .card .header {
    background: #FFF!important;
    color: #000!important;
    border: 1px solid #333!important;
    border-bottom-width: 0;
  }

  #viz .card .cell {
    background: #FFF!important;
    border: 1px solid #000!important;
  }

  #viz .card .cell .contents {
    color: #000!important;
  }
}
