/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html,
button,
input,
select,
textarea {
  color: #222;
}

html {
  font-size: 1em;
  line-height: 1.4;
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
img,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

.browsehappy {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}


/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
  font: 16px Helvetica, Helvetica Neue, Arial;
}

p, li {
  line-height: 1.625em;
}

.wrapper {
  width: 90%;
  margin: 0 5%;
}

/* ===================
   ALL: Theme
   =================== */

.header-container {
  padding: 2% 0;
}

.footer-container h4 {
  text-align: center;
}

.title {
  color: white;
  text-align: center;
}

h1.title {
  clear: both;
}

h2.title {
  font-weight: normal;
}

/* ==============
   MOBILE: Menu
   ============== */

nav.textual ul {
  margin: 0;
  padding: 0;
}

nav.textual a {
  display: block;
  margin-bottom: 10px;
  padding: 15px 0;

  text-align: center;
  text-decoration: none;
  font-weight: bold;

  color: white;
  background: #cc0000;
  font-size: 14px;
}

nav.textual a:hover,
nav.textual a:visited {
  color: white;
}

nav.textual a:hover {
  text-decoration: underline;
}

nav.graphical {
  display: none;
  padding-bottom: 2em;
}

/* ==============
   MOBILE: Main
   ============== */

body {
  background-color: #888A8F;
}

.article-footer {
  background-color: whitesmoke;
  border: 1px solid lightgray;
  padding: .1em 1em;
  font-size: 15px;
}

article nav a.active {
  color: darkgray;
  cursor: default;
  text-decoration: none;
}

article nav ul {
  padding: 0;
}

article,
.main-container {
  display: none;
}

.main-container {
  background: white;
  border: 20px solid #777A7F;
  border-left: 0;
  border-right: 0;
}

.main {
  padding: 1em 0;
}

.main article h1 {
  font-size: 2em;
}

.main article h2 {
  color: gray;
  font-style: italic;
  font-weight: lighter;
}

.main article h2 strong {
  color: #cc0000;
  font-style: normal;
  font-weight: bold;
}

.main article h2:after {
  content: "…";
}

.main article header img {
  float: right;
  margin: 0 0 1em 1em;
  max-height: 350px;
  max-width: 25%;
}

.speech-bubble-wrapper {
  position: relative;
  max-width: 60%;
}

.speech-bubble {
  background-color: #666;
  box-sizing: border-box;
  color: white;
  padding: 1em;

  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}

.speech-bubble:after {
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 10px 0 10px 30px;
  border-color: transparent #666;
  display: block;
  width: 0;
  top: 15%;
  right: -30px;
}

.download,
.home {
  color: white;
  padding: 1em;
  text-decoration: none;
  top: .5em;
}

.home {
  float: left;
  left: 2%;
}

.download:hover,
.home:hover {
  text-decoration: underline;
}

.home img {
  height: 40px;
  width: 40px;
  margin-right: .5em;
}

.download {
  float: right;
  right: 2%;
}

.download img {
  height: 40px;
  width: 40px;
  margin-left: .5em;
}

.footer-container footer {
  padding: 20px 0;
}

.footer-container footer,
.footer-container footer a {
  color: white;
}

/* ===============
   ALL: IE Fixes
   =============== */

.ie7 .title {
  padding-top: 20px;
}

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

a {
  color: blue;
}

a.need-url {
  color: red;
  font-style: italic;
}













/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 641px) {

  /* ====================
     INTERMEDIATE
     ==================== */

  body {
    display: none;
    overflow-y: scroll;
    overflow-x: hidden;
  }

  .main article header img {
    margin: 0 1em 2em 2em;
  }

  .download,
  .home {
    position: absolute;
    top: 1.4em;
  }

  .download {
    right: 5%;
  }

  .home {
    left: 5%;
  }

  h1.title {
    padding: 0 5em; /* so it doesn't overlap with home link */
  }

  .header-container,
  .footer-container {
    background-image: url("../img/bg.jpg");
    background-position: top center;
    background-attachment: fixed;
  }

  .header-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
  }

  .footer-container {
    display: none;
  }

  .main-container {
    margin: 0 5%;
    border: 0;

    -webkit-box-shadow: 0 0 50px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow:    0 0 50px 0px rgba(50, 50, 50, 0.75);
    box-shadow:         0 0 50px 0px rgba(50, 50, 50, 0.75);
  }

  .main {
    padding: 2em 0;
  }

  nav.textual {
    display: none;
  }

  nav.graphical {
    cursor: pointer;
    display: block;
    position: relative;
  }

  nav.graphical img {
    max-width: 100%;
  }

  nav.graphical #ball {
    top: -200%;
    position: absolute;
    transition: 1s;
  }

  nav.graphical #ball.i,
  nav.graphical #ball.iii {
    max-height: 16.3%;
  }

  nav.graphical #ball.ii,
  nav.graphical #ball.iv {
    max-height: 12.8%;
  }

  .article-footer-container {
    margin-top: 2em;
    text-align: center;
  }

  .article-footer {
    display: inline-block;
    padding-left: 1.5em;
    padding-right: 2em;
    text-align: left;
  }

  article footer {
    padding-left: 120px;
    background-image: url("../img/baby.png");
    background-position: left;
    background-size: contain;
    background-repeat: no-repeat;
  }
}

@media only screen and (min-width: 768px) {
  .speech-bubble-wrapper {
    max-width: 65%;
  }

  .speech-bubble:after {
    bottom: 30%;
    top: auto;
  }
}

@media only screen and (min-width: 954px) {
  .speech-bubble-wrapper {
    max-width: 70%;
  }

  .speech-bubble:after {
    bottom: 30%;
    top: auto;
  }
}

@media only screen and (min-width: 1140px) {

  /* ===============
     Maximal Width
     =============== */

  .wrapper {
    width: 1026px; /* 1140px - 10% for margins */
    margin: 0 auto;
  }

  .speech-bubble-wrapper {
    float: right;
    width: 20%;
    margin: 1em 2em 2em 2em;
  }

  .speech-bubble:after {
    top: 30%;
    bottom: auto;
  }
}

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

.nobr {
  white-space: nowrap;
}

.ir {
  background-color: transparent;
  border: 0;
  overflow: hidden;
  *text-indent: -9999px;
}

.ir:before {
  content: "";
  display: block;
  width: 0;
  height: 150%;
}

.hidden {
  display: none !important;
  visibility: hidden;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
  * {
        background: transparent !important;
        color: #000 !important;
        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) ")";
    }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
      content: "";
    }

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

    thead {
      display: table-header-group;
    }

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

    img {
      max-width: 100% !important;
    }

    @page {
      margin: 0.5cm;
    }

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

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