/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

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

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

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

body {
  margin: 0;
  font-family: 'Quattrocento Sans', Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
  padding: 0;
  margin: 0;
  display: block;
  text-indent: -9999px;
  height: 100px;
  background: url(../chatterboxkid.svg) no-repeat center center;
  background-size: contain;
}

header {
  text-align: center;
}

header p {
  background-color: #f43920;
  color: #fff;
  margin: 0;
  padding: 0.5em;
  font-size: 2em;
  font-weight: bold;
}

header h3 {
  font-size: 2.5em;
  font-weight: bold;
  margin: 0;
  padding: 50vh 0.5em 0.5em;
  text-shadow: 1px 2px 5px rgba(34, 15, 6, 1);
  color: #fff;
  background: #baddff url(../images/chatterbox-kid-speech-therapy.jpg) no-repeat center top;
  background-size: cover;
}

header > h3 > span {
  white-space: nowrap;
}

section {
  margin: 0 auto;
  padding: 0.5em 1em 1em;
  font-size: 1.4em;
  box-sizing: border-box;
  width: 100%;
  line-height: 1.6;
  border-top: 3px solid #0200e9;
}

@media only screen and (min-width: 700px) {
  h1 {
    min-height: 150px;
    height: 25vh;
    margin: -0.5em auto;
  }

  header h3 {
    font-size: 3.5em;
  }

  section {
    padding: 1em 15% 2em;
  }
}

h2 {
  color: #0200e9;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

section:nth-of-type(2) > h2 {
  color: #fdaf70;
}
section:nth-of-type(3) > h2 {
  color: #18a826;
}
section:nth-of-type(4) > h2 {
  color: #b326fb;
}
section:nth-of-type(5) > h2 {
  color: #f43920;
}

section:nth-of-type(2) {
  border-color: #fdaf70;
}
section:nth-of-type(3) {
  border-color: #18a826;
}
section:nth-of-type(4) {
  border-color: #b326fb;
}
section:nth-of-type(5) {
  border-color: #f43920;
}

section:nth-of-type(1) {
  background-color: #b3b2f8;
  background: linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(179,178,248,1) 100%);
}

section:nth-of-type(2) {
  background-color: #fee7d4;
  background: linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(254,231,212,1) 100%);
}
section:nth-of-type(3) {
  background-color: #b9e5bd;
  background: linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(185,229,189,1) 100%);
}
section:nth-of-type(4) {
  background-color: #e8bdfe;
  background: linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(232,189,254,1) 100%);
}
section:nth-of-type(5) {
  background-color: #fcc3bc;
  background: linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(252,195,188,1) 100%);
}

blockquote {
  position: relative;
}

blockquote::before {
  content: "“";
  position: absolute;
  top: -35px;
  left: -40px;
  color: #b326fb;
  font-size: 100px;
}

em {
  font-weight: bold;
  font-style: normal;
  text-transform: uppercase;
}

abbr[title] {
  border-bottom: none !important;
  cursor: inherit !important;
  text-decoration: none !important;
}

img.stephanie {
  border-radius: 50%;
  border: 2px solid #18a826;
  width: 150px;
  float: right;
  margin: 1em 0 0 10px;
}

.signature {
  padding-left: 1em;
  position: relative;
}
.signature::before {
  content: "-";
  position: absolute;
  top: 0;
  left: 1em;
  margin-left: -0.5em;
}

body > footer {
  margin-top: 2em;
  padding: 20px;
  background: #22d1d3;
  color: #fff;
  text-align: center;
}

body > footer > span {
  white-space:nowrap;
}

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important; /* Black prints faster */
    -webkit-box-shadow: none !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) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */

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

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

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