/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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
   ========================================================================== */

html {
  color: #222;
  font-size: 1rem;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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;
}

/*!
 * Aspect-Ratio.css v0.5.0
 * Copyright 2016 Tom Lutzenberger
 * Licensed under the MIT license
 */
.ar {
  height: 0;
  overflow: hidden;
  position: relative;
}
.ar-content {
  display: table;
  height: 100%;
  position: absolute;
  top: 0;
  width: 100%;
}
.ar-content > .ar-center {
  display: table-cell;
  vertical-align: middle;
}
/* Standard ratios */
.ar-2-1 {
  padding-top: 50%;
}
.ar-1-2 {
  padding-top: 200%;
}
.ar-3-2 {
  padding-top: 66.66666667%;
}
.ar-2-3 {
  padding-top: 150%;
}
.ar-4-3 {
  padding-top: 75%;
}
.ar-3-4 {
  padding-top: 133.33333333%;
}
.ar-5-3 {
  padding-top: 60%;
}
.ar-3-5 {
  padding-top: 166.66666667%;
}
.ar-5-4 {
  padding-top: 80%;
}
.ar-4-5 {
  padding-top: 125%;
}
.ar-16-9 {
  padding-top: 56.25%;
}
.ar-9-16 {
  padding-top: 177.77777778%;
}
.ar-16-10 {
  padding-top: 62.5%;
}
.ar-10-16 {
  padding-top: 160%;
}
.ar-21-9 {
  padding-top: 42.85714286%;
}
.ar-9-21 {
  padding-top: 233.33333333%;
}
/* Special ratios */
.ar-1-1,
.ar-square {
  padding-top: 100%;
}
.ar-golden {
  padding-top: 61.80469716%;
}
.ar-golden-v {
  padding-top: 161.8%;
}

.center {
  text-align:center;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

  body {
    font-family: 'Lato', sans-serif;
  }

  h1, h2 {
    text-transform: uppercase;
    color:#80BA27;
    line-height: 1em;
    margin:0;
  }


  h2 {
    font-size: 2.2rem !important;
    line-height: 1em;
    margin:0;
  }

  h3 {
    font-size:1.5rem;
    color:#80BA27;
    font-weight: 400;
    margin:0;
  }

  h4 {
    font-size:1.5rem;
    color:#299941;
    font-weight: 600;
    margin:0
  }

  .p-t-40 {
    padding-top:40px;
  }

  .p-b-40 {
    padding-bottom:40px;
  }

  .p-t-20 {
    padding-top:20px;
  }

  .p-b-20 {
    padding-bottom:20px;
  }

  .m-t-20 {
    margin-top:20px;
  }
  .m-b-20 {
    margin-bottom:20px;
  }

  .white {
    color:#ffffff !important;
  }

  .bold {
    font-weight: 600 !important;
  }

  .loading {
    display:block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #80BA27;
    border-radius: 17px;
    padding:1.5rem;
    color:#fff;
    font-size: 1.2em;
    z-index: 99;
  }

  #the_background_anim, #the_study_anim, #the_results_anim {
  }

  #the_background_anim svg g.indicator {
    animation:fade-out 0.5s 1;
    -webkit-animation:fade-out 0.5s 1;
    animation-fill-mode: forwards;

    animation-delay:4s;
    -webkit-animation-delay:4s; /* Safari and Chrome */
    -webkit-animation-fill-mode: forwards;
  }

  #the_study_anim svg g.indicator {
    animation:fade-out 0.5s 1;
    -webkit-animation:fade-out 0.5s 1;
    animation-fill-mode: forwards;

    animation-delay:4s;
    -webkit-animation-delay:4s; /* Safari and Chrome */
    -webkit-animation-fill-mode: forwards;
  }

  #the_results_anim svg g.indicator {
    animation:fade-out 0.5s 1;
    -webkit-animation:fade-out 0.5s 1;
    animation-fill-mode: forwards;

    animation-delay:4s;
    -webkit-animation-delay:4s; /* Safari and Chrome */
    -webkit-animation-fill-mode: forwards;
  }

  @keyframes fade-out{
      from {opacity :1;}
      to {opacity :0;}
  }

  @-webkit-keyframes fade-out{
      from {opacity :1;}
      to {opacity :0;}
  }

  .separator img, .separator svg {
    display:block;
    max-width:75%;
    margin: 0 auto;
  }

  .separator svg circle {
    transition:fill 1s ease;
  }

  .question-box {
    max-width: 100%;
    background-color: #80BA27;
    border-radius: 17px;
    padding:1.5rem;
    color:#fff;
    font-size: 1.2em;
  }

  .green {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom:20px;
    color:#80BA27;
  }

  .dgreen {
    color:#02634f;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom:20px;
  }

  .container {
    display: flex;
    width: 100%;
    height: auto;
    flex-wrap: wrap;

  }

  .column {
    flex: 1;
    color: white;
  }

  .two-cols {
    padding:1.5em;
    columns:2;
    column-gap:1.5em;
  }

  .two-cols div {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  #study-tiles .column {
    /*min-height: 400px;*/
  }

  .page-title {
    padding-top:40px;
    text-align: center;
  }

  #study-tiles {
    width:100%;
    overflow: hidden;
    background: transparent linear-gradient(180deg, #EF7B100D 0%, #7B0B4301 100%, #730A3F00 100%) 0% 0% no-repeat padding-box;
    opacity: 1;
  }

  #details {
    /*background: transparent linear-gradient(0deg, #96D4F858 0%, #FFFFFF01 100%, #730A3F00 100%) 0% 0% no-repeat padding-box;*/
  }

  #details .column {
    color:#707070;
    text-align: justify;
  }

  #footnotes {
    background-color:#02634f40;
    overflow: hidden;
    color:#707070;
  }

  .shadow {
    -webkit-filter: drop-shadow( 0px 3px 6px rgba(0, 0, 0, .2));
    filter: drop-shadow( 0px 3px 6px rgba(0, 0, 0, .2));
    /* Similar syntax to box-shadow */
  }

#details ul {
  padding-left:20px;
  list-style: none;
}

#details ul li {
padding:0.25em 0;
}

#details ul li::before {
  content: "\2022";  /* Add content: \2022 is the CSS Code/unicode for a bullet */
  color: #F7A500; /* Change the color */
  font-weight: bold; /* If you want it to be bold */
  display: inline-block; /* Needed to add space between the bullet and the text */
  width: 1em; /* Also needed for space (tweak if needed) */
  margin-left: -1.5em; /* Also needed for space (tweak if needed) */
  font-size: 0.75em;
}

#charts-grid .barchart {
  background-color: #EDEDED;
}



.finding-box {
  width:auto;
}

#findings {
  background-color:#0c9491;
  padding-top:40px;
  padding-bottom:40px;
  /*border-bottom:#D1E8F8 40px solid;*/
  overflow: hidden;
}

#finding-boxes {
  display:grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows:auto;
  grid-gap:1.5em;
  padding-top:1.5em;
  align-content:center;
}

.finding-box-inner {
  background-color: rgba(255,255,255,0.86);
  max-width: 100%;
  border-radius: 17px;
  padding:1.5rem;
  color:#707070;
  font-size: 1.2em;
  height: 60px;
  position: relative;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
}

.finding-box-inner .finding-img {
  position: absolute;
  width:auto;
  height:140px;
  right:-70px;
  top:-20px;
}

.shadow {
  -webkit-filter: drop-shadow( 0px 3px 6px rgba(0, 0, 0, .2));
  filter: drop-shadow( 0px 3px 6px rgba(0, 0, 0, .2));
  /* Similar syntax to box-shadow */
}

#stems-graphic {
  width:100%;
  height:300px;
  background:#fff;
  position: relative;
}

img#stems {
  position: absolute;
  width:auto;
  height:400px;
  right:0px;
  bottom:0px;
  display:block;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  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: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

.wrap, .wrap-h {
  padding:0rem;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 1030px) and (max-width: 1600px) {
  .wrap-h {
    padding:0.5rem;
  }
  .wrap {
    padding:1.5rem;
  }
}

@media only screen and (min-width: 1030px) {
  /* Style adjustments for viewports that meet the condition */

  .wrap, .wrap-h {
    max-width: 1440px;
    margin:0 auto;
  }

  .column svg:hover {
    cursor:pointer;
  }

  .question-box {
    width:auto;
  }

  #details .column, #details-intro {
    padding:10px 20px;
  }

}


@media only screen and (max-width: 1029px) {
  .wrap, .wrap-h {
    padding:1em;
  }

  .two-cols {
    padding:1.5em;
    columns:1;
    column-gap:1.5em;
  }
}

@media only screen and (max-width: 1029px) {

  .container {
    flex-direction: column;
  }

  .question-box {
    width:auto;
  }

  .finding-box:nth-of-type(1){
    margin-right:0px;
  }
  .finding-box:nth-of-type(2){
    margin-left:0px;
  }

  .finding-box {
    width:auto;
    float:left;
    margin-top:20px;
  }

  .finding-box-inner {
    padding:40px 20px;
  }

}

@media only screen and (max-width: 760px) {


}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    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 {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

