/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.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
   ========================================================================== */

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;
}

ul, ol, li {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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


/* ==========================================================================
   Common elements
   ========================================================================== */

body {
  font-family: Roboto, Helvetica, sans-serif;
  font-size: 15px;
  background: url(../img/texture.png) #fff;
  color: #444;
  border-bottom: 150px solid #FFC541;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
  font-weight: normal;
  letter-spacing: 0.01em;
}

a {
  text-decoration: none;
}

p {
  line-height: 1.5;
}

img {
  max-width: 100%;
}

.content {
  max-width: 500px;
  width: 80%;
  margin: auto;
}

.purchase-btn {
  display: inline-block;
  color: #fff;
  background: url(../img/texture.png) #EC4D24;
  box-shadow: 0px 4px 0px 0px #B4441E, 0px 6px 2px rgba(0,0,0,0.2);
  border-radius: 6px;
  border: 0 solid #EC4D24;
  padding: 0.25em 0.8em;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 1.33em;
  letter-spacing: 0.02em;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
  .purchase-btn:hover {
    background-color: #F5552C;
    box-shadow: 0px 4px 0px 0px #D24718, 0px 7px 4px rgba(0,0,0,0.2);
  }
  .purchase-btn.pressed {
    border: 2px solid rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.2);
    background-color: rgba(0,0,0,0);
    box-shadow: none;
  }



/* #### Sections ### */

#hero {
  background: url(../img/bamboo_back_sm.jpg) center center no-repeat #9daa69;
  background-size: cover;
  padding: 10% 7% 3%;
}

  #hero .book-cover {
    display: block;
    margin: auto;
  }

#kirkus-review {
  display: block;
  background: #8CA06C;
  color: #fff;
  padding: 9% 0 6%;
  -webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -ms-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}
#kirkus-review:hover {
  background: #14699B;
}
#kirkus-review .content {
  display: block;
}
  #kirkus-review .reviewer {
    display: inline-block;
    width: 30%;
    font-size: 0.75em;
    text-align: right;
    vertical-align: top;
    padding-top: 0.2em;
  }
  .kirkus-logo {
    width: 100%;
    display: inline-block;
    padding-bottom: 0.2em;
  }
  #kirkus-review .review {
    display: inline-block;
    width: 58%;
    padding-left: 5%;
    margin-left: 4%;
    border-left: 1px solid rgba(255,255,255,0.3);
    font-size: 0.9em;
    vertical-align: top;
    position: relative;
  }  
  /*#kirkus-review .review::after {
    display: block;
    content: '';
    position: absolute;
    background: url(../img/quotes.png) no-repeat;
    background-size: contain;
    width: 25%;
    height: 25%;
    top: -30%;
    left: 7%;
  }*/
  .kirkus-star {
    width: 20px;
    top: 0;
    right: 0;
    vertical-align: top;
    display: inline-block;
    position: absolute;
    top: -23px;
    left: 7.5%;
  }

h2 {
  font-size: 2em;
  padding-bottom: 0;
  margin-bottom: 0.5em;
}

.intro p {
  margin: 0;
}

.purchase {
  padding-top: 2em;
  text-align: center;
}
.purchase-info {
  padding-top: 1.25em;
  font-style: italic;
  font-size: 0.8em;
}

.purchase-buttons {
  overflow: hidden;
  display: none;
  padding: 1.5em 0 0.2em;
}
.purchase-buttons a {
  color: #EC4D24;
}
.purchase-buttons a:first-child {
  display: inline-block;
  color: #fff;
  background: url(../img/texture.png) #EC4D24;
  box-shadow: 0px 4px 0px 0px #B4441E, 0px 6px 2px rgba(0,0,0,0.2);
  border-radius: 6px;
  border: 0 solid #EC4D24;
  padding: 0.25em 0.8em;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 1.2em;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
}
.purchase-buttons a:nth-child(2) {
  display: inline-block;
  color: #555;
  background: url(../img/texture.png) #ffe04a;
  box-shadow: 0px 2px 0px 0px #e8cb3f, 0px 3px 2px rgba(0,0,0,0.2);
  border-radius: 6px;
  border: 0 solid #ffe04a;
  padding: 0.25em 0.8em;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 0.9em;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
}
.purchase-buttons .subtext {
  font-size: 0.75em;
  padding-bottom: 1em;
}



#visits {
  margin-top: 4em;
}
#visits .video-region {
  background-color: #AEC672;
}
#visits .video-region .video {
  background: #000;
  margin: auto;
  width: 100%;
  max-width: 720px;
  padding-bottom: 16%;
}


.bios {
  color: #fff;
  background: url(../img/texture.png) #06a2de;
  padding: 1.5em 0;
}

.bios .content {
  padding: 1.75em 0 0;
  max-width: 900px;
}

.bio-photo {
  width: 73%;
  max-width: 290px;
  margin: auto;
}

.bio-photo img {
  border-radius: 100%;
  display: block;
}
.bios li {
  padding-bottom: 3em;
}
.bios h2 {
  text-align: center;
  margin: 0;
  padding: 0 0 0.2em;
}
.bios h4 {
  text-align: center;
  padding: 2em 0 0;
  margin: 0;
}
.bios .links {
  font-size: 0.9em;
  text-align: center;
}
.bios .links a {
  letter-spacing: 0.02em;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border-bottom: 2px solid #44cbff;
  padding-bottom: 0;
  margin: 0 1em 0.65em;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
.bios .links a:hover {
  border-color: #fff;
}

#projects .content {
  max-width: 900px;
}
#projects h2 {
  font-size: 2.5em;
  margin: 1.5em 0 0.33em;
}
#projects .description {
  font-size: 0.8em;
  margin: -0.75em 0 4em;
  max-width: 450px;
}
.project {
  width: 100%;
  font-size: 0.8em;
  max-width: 385px;
  padding-bottom: 4em;
}
#projects h4 {
  font-size: 1.75em;
  margin: 0.8em 0 0.25em;
}
.project-thumb {
  display: block;
  box-shadow: 0 5px 7px rgba(0,0,0,0.15);
  -webkit-transform: rotate(-2deg);
  -moz-transform: rotate(-2deg);
  -ms-transform: rotate(-2deg);
  transform: rotate(-2deg);
}
.project-thumb img {
  display: block;
}
.project p {
  margin: 0 0 0.75em;
}
.project .visit {
  text-transform: uppercase;
  color: #EC4D24;
}
.to-reveal {
  display: none;
}

h2.visit-type {
  font-size: 1.5em;
  margin: 1.5em 0 0 0;
}
h2.visit-type::before {
  content: "";
  display: block;
  background: #d6d6d6;
  border-radius: 1em;
  width: 0.5em;
  height: 0.5em;
  position: absolute;
  left: -0.75em;
  top: 0.5em;
}
.ages {
  font-size: 0.8em;
  margin: 0.5em 0 0;
}
.visits h4 {
  font-family: inherit;
  font-size: 1.25em;
  margin: 1.5em 0 0.33em;
}

.email-address {
  padding: 0.5em 1em;
  background: #fff2dd;
  border-radius: 0.2em;
  display: inline-block;
  font-family: Georgia, Times, serif;
  font-size: 1.25em;
  border-left: 1em solid #fecfad;
}


/* 
Reviews + Visits 
*/
.reviews .accolade-link {
  border-radius: 5px;
    background: rgb(98 181 215);
    display: inline-block;
    color: white;
    font-weight: bold;
    padding: 0.05em 0.25em;
    margin: 0.025em 0.1em;
}
.reviews p {
  padding: 0.5em 0;
}
.reviews a {
  color:rgb(73, 165, 201);
  font-weight: bold;
}
.make-space {
  margin: 2em 0;
}
.reviews blockquote {
  font-size: 1.1em;
  padding: 0 0 0 1em;
  margin: 1.25em 0;
  border-left: 5px solid #2d86a869;
  font-family: Georgia, 'Times New Roman', Times, serif;
}
.reviews .img-callout {
  display: block;
  border-radius: 0.1em;
  box-shadow: 0 10px 10px rgb(0 0 0 / 10%), 0 5px 5px rgb(0 0 0 / 10%), 0 2px 2px rgb(0 0 0 / 10%);
}

.reviews .author::before {
  content: "- ";
}
.reviews .author {
  text-align: right;
  padding: 0.5em 1em;
  font-size: 0.75em;
}
.reviews ul li {
  margin-bottom: .25em
}




.footer {
  padding: 5em 0 2.5em;
  font-family: Georgia, serif;
  display: -webkit-box;   /* OLD: Safari,  iOS, Android browser, older WebKit browsers.  */
  display: -moz-box;      /* OLD: Firefox (buggy) */
  display: -ms-flexbox;   /* MID: IE 10 */
  display: -webkit-flex;  /* NEW, Chrome 21?28, Safari 6.1+ */
  display: flex;
  box-shadow: 0 5px 5px rgba(0,0,0,0.05), 0 10px 10px rgba(0,0,0,0.05);
}
.footer .text {
  border-bottom: .2em solid #FFC541;
  padding: 1.25em 0 0.75em;
  height: 1em;
  flex-grow: 1;
  -webkit-flex-grow: 1;
}
.footer .text:first-child {
  text-align: right;
}
.footer .little-brown {
  width: 20%;
  max-width: 75px;
  margin: 0 2em;
}


/* ###### Media queries ###### */

@media (min-width: 614px) {
  body {
    font-size: 21px;
  }
  #hero {
    background-image: url(../img/bamboo_back_big.jpg);
    padding: 3.25em 0 0;
  } 
  #kirkus-review {
    padding: 2em 0 1.2em;
    font-size: 0.9em;
  }
  .intro p {
    margin-bottom: 0.3em;
  }
  #projects ul {
    display: flex;
    justify-content: space-between;
  }
  .project {
    width: 47%;
  }
  #bios ul {
    display: flex;
    justify-content: space-between;
  }
  #bios li {
    width: 44%;
  }
}



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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * 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: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@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:
   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;
    }
}
