/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.com/ */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}
/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}
::selection {
  background: #b3d4fc;
  text-shadow: none;
}
/*
 * A better looking default horizontal rule
 */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}
/*
 * Remove default fieldset styles.
 */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
/*
 * Allow only vertical resizing of textareas.
 */
textarea {
  resize: vertical;
}
/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */
.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}
/* ==========================================================================
   Author's custom styles
   ========================================================================== */
.eyebrow {
  padding: 1rem;
  background: white;
}
.eyebrow a {
  text-decoration: none;
}
.eyebrow .logo {
  width: 50px;
  display: inline-block;
}
.eyebrow .logo #logo__text {
  width: 100px;
  display: none;
}
.eyebrow .logo #logo__icon {
  width: 40px;
  display: inline-block;
}
.eyebrow h1 {
  display: inline-block;
  margin: 0;
  font-weight: 300;
  font-size: 1.8rem;
  float: right;
}
html,
body {
  font-family: "Roboto", sans-serif;
  background: #4193d0;
  position: relative;
  height: 100%;
  overflow: hidden;
}
header {
  position: relative;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
}
p a {
  color: #fdb93b;
  text-decoration: none;
  transition: all 0.15s ease-out;
}
p a:hover {
  color: #e39a25;
}
nav {
  position: relative;
  z-index: 5;
  width: 100%;
  background: #283041;
  text-align: center;
  padding: 1rem;
}
nav select {
  background: none;
  border: none;
  margin: 0 auto;
  color: white;
  position: relative;
  font-size: 1.25rem;
  font-weight: 300;
}
nav#desktop {
  float: left;
  display: none;
  width: 0;
  padding: 0;
  text-align: left;
  overflow: scroll;
}
nav#desktop a {
  color: #3e4555;
  font-weight: 300;
  text-decoration: none;
  height: 100%;
  display: block;
  padding: 1rem;
  transition: all 0.15s ease-out;
}
nav#desktop ul {
  position: relative;
  padding: 0;
  margin: 0;
}
nav#desktop ul li {
  position: relative;
  list-style: none;
  background: white;
  margin: 0;
  padding: 0;
}
nav#desktop ul li a {
  background: #f6f7f8;
}
nav#desktop ul li a.active {
  background: #207cbc;
  color: white;
}
nav#desktop ul li a.active:hover {
  background: #207cbc;
}
nav#desktop ul li a:hover {
  background: #5ea7db;
  color: white;
}
nav#desktop svg,
nav#desktop img {
  position: absolute;
  top: .6rem;
  right: 1rem;
  width: 50px;
  height: 33px;
}
.map-container {
  height: 100%;
  width: 100%;
  float: right;
  position: absolute;
  right: 0;
}
.map-container div.intro {
  position: absolute;
  padding: 2rem 3rem;
  background: rgba(24, 29, 39, 0.7);
  color: white;
}
.map-container div.intro h1 {
  font-weight: 400;
  color: white;
}
.map-container div.intro p {
  font-weight: 300;
  font-size: 1.125rem;
}
#world-map path {
  fill: white;
  opacity: 0.8;
}
#world-map rect.bg {
  fill: none;
  pointer-events: all;
}
#world-map .active {
  fill: #4193d0;
  stroke: white;
  opacity: 1;
  outline: none;
}
#world-map .continent {
  stroke: #186da6;
  fill: #186da6;
  transition: all 0.15s ease-out;
}
#world-map .country {
  fill: #186da6;
  transition: all 0.15s ease-out;
}
#world-map path[data-state='initial'] {
  opacity: 0.8;
}
#world-map path[data-state='initial'].country {
  opacity: 0;
}
#world-map path[data-state='active'] {
  opacity: 1.0;
}
#world-map path[data-state='inactive'] {
  opacity: 0.1;
}
.charts-overlay {
  background: rgba(0, 0, 0, 0.5);
  float: right;
  padding: 2rem;
  position: relative;
  color: white;
  font-weight: 300;
  overflow-y: scroll;
}
.charts-overlay h1 {
  margin-top: 0;
  font-weight: 300;
  display: inline-block;
  vertical-align: top;
}
.charts-overlay fieldset {
  margin: 0;
}
.charts-overlay fieldset legend {
  font-size: 1.25rem;
}
.charts-overlay fieldset input {
  margin-right: .5rem;
}
.charts-overlay fieldset label {
  margin-right: 1rem;
}
.charts-overlay .addthis_sharing_toolbox {
  display: inline-block;
  margin-left: 1rem;
  position: relative;
  top: .25rem;
}
.charts-overlay .text-cta {
  transition: all 0.15s ease-out;
  color: #fdb93b;
  font-weight: 400;
  text-decoration: none;
}
.charts-overlay .text-cta:hover {
  color: #e39a25;
}
.charts-overlay .text-cta:after {
  content: " ➞";
}
.charts-overlay a .icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  margin-left: 1rem;
  line-height: 2.8rem;
}
.charts-overlay a .icon svg {
  fill: #83bde7;
  transition: all 0.15s ease-out;
}
.charts-overlay a .icon svg:hover {
  fill: #4193d0;
}
.charts-overlay .chart-explanation p {
  display: none;
}
.charts-overlay .methodology-overlay {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow-y: scroll;
  padding: 2rem;
  z-index: 10;
  background: rgba(11, 50, 77, 0.95);
}
.charts-overlay .methodology-overlay p.bonus {
  display: none;
  color: #fdb93b;
}
.charts-overlay .methodology-overlay .methodology-close-link {
  transition: all 0.15s ease-out;
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fdb93b;
  cursor: pointer;
  text-decoration: none;
}
.charts-overlay .methodology-overlay .methodology-close-link:before {
  content: '✕ ';
}
.charts-overlay .methodology-overlay .methodology-close-link:hover {
  color: #e39a25;
}
.charts-overlay .methodology-link {
  transition: all 0.15s ease-out;
  z-index: 2;
  color: #fdb93b;
  cursor: pointer;
}
.charts-overlay .methodology-link:hover {
  color: #e39a25;
}
.charts-overlay .chart {
  height: 18.5rem;
  opacity: 0;
  text-align: center;
  background: white;
  margin: 0 auto 1rem auto;
  width: 100%;
  max-width: 20rem;
  padding: 1rem;
  float: none;
}
.charts-overlay .chart.half-height {
  height: auto;
}
.charts-overlay .chart small {
  display: inline-block;
  font-size: .625rem;
  line-height: 1.2;
  margin-top: 1rem;
}
.charts-overlay .chart#originality {
  color: #ed6d23;
}
.charts-overlay .chart#originality svg path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke: #f5a867;
}
.charts-overlay .chart#originality svg text {
  fill: #ed6d23;
  font-weight: 400;
}
.charts-overlay .chart#originality svg text.year-label {
  fill: #bfc1c6;
  font-weight: 300;
}
.charts-overlay .chart#grading {
  color: #4193d0;
}
.charts-overlay .chart#grading svg path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke: #70b2e2;
}
.charts-overlay .chart#grading svg text {
  fill: #4193d0;
  font-weight: 400;
}
.charts-overlay .chart#grading svg text.year-label {
  fill: #bfc1c6;
  font-weight: 300;
}
.charts-overlay .chart#matched-content {
  color: #69b36c;
  text-align: center;
}
.charts-overlay .chart#matched-content svg {
  margin: 0 auto;
}
.charts-overlay .chart#matched-content svg .background {
  fill: #d9eddb;
}
.charts-overlay .chart#matched-content svg .measured {
  fill: #7bbd7f;
}
.charts-overlay .chart#matched-content svg text {
  fill: #44a147;
  font-weight: 400;
}
.charts-overlay .chart#matched-content .stat-container {
  margin-bottom: 1rem;
}
.charts-overlay .chart#instructors {
  color: #f06796;
}
.charts-overlay .chart#submissions {
  color: #785ca7;
}
.charts-overlay .chart h2 {
  font-size: 2rem;
  margin: 0;
  line-height: 1;
}
.charts-overlay .chart p {
  margin-top: 0;
}
.charts-overlay .chart p.year-label {
  color: #bfc1c6;
  margin-bottom: 0;
  margin-top: 1rem;
  font-size: .8rem;
}
@media (max-width: 800px) {
  .eyebrow h1,
  h1 {
    font-size: 1.2rem;
  }
  .charts-overlay {
    padding-bottom: 6rem;
  }
  .charts-overlay a .icon {
    line-height: 2rem;
  }
  .charts-overlay .methodology-link {
    position: relative;
    bottom: 0;
    right: 0;
  }
}
/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */
.hidden {
  display: none !important;
  visibility: hidden;
}
/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}
/*
 * Hide visually and from screen readers, but maintain layout
 */
.invisible {
  visibility: hidden;
}
/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}
.clearfix:after {
  clear: both;
}
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 50em) {
  .eyebrow .logo {
    width: 150px;
  }
  .eyebrow .logo #logo__text {
    display: inline-block;
  }
  nav#desktop {
    display: block;
    width: 16rem;
  }
  nav#mobile {
    display: none;
  }
  .charts-overlay .chart {
    margin: 0 1rem 1rem 0;
    float: left;
  }
}
@media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  img {
    max-width: 100% !important;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}
