/*! HTML5 Boilerplate v4.3.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
   ========================================================================== */

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

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

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

/* General Styles */

body {
    background: url("../img/bg-periodictable.jpg") center top fixed no-repeat;
    background-color: #221f1f;
}

/* Custom Helper Classes */

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Site Border */

.brdr-top {
    background: url("../img/brdr-top.png") repeat-x;
    height: 30px;
    position: absolute;
    top: 0px;
    width: 100%;
}
.brdr-bttm {
    background: url("../img/brdr-bttm.png") repeat-x;
    height: 30px;
    position: absolute;
    bottom: 0px;
    width: 100%;

}
.brdr-left {
    background: url("../img/brdr-left.png") repeat-y;
    height: 100%;
    left: 0px;
    position: absolute;
    top: 0;
    width: 30px;
}
.brdr-right {
    background: url("../img/brdr-right.png") repeat-y;
    height: 100%;
    position: absolute;
    right: 0px;
    top: 0;
    width: 30px;
}

.main {
    background-color: #221f1f;
    position: relative;
    width: 100%;
    max-width: 1024px;
}

/* Font Styles */

html {
    font-family: "Times New Roman", Times, serif;
}
a {
    cursor: pointer;
    color: #232020;
    font-style: italic;
    text-decoration: underline;
}

/* Header Styles */

#sk-title {
    max-height: 96px;
    padding-top: 50px;
    padding-bottom: 20px;
    max-width: 80%
}

/* Navigation Styles */

nav {
    text-align: center;
    margin-bottom: 20px;
}
nav a {
    color: #fff3b5;
    font-size: 18px;
}
nav span {
    color: #fff3b5;
}
.nav-space {
    margin-left: 12px;
    padding-right: 15px;
    border-left: solid 2px #fff;
}

.selected {
    color: #FFFFFF;
    text-decoration: none;
}

/* Section Styles */

.section {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Quotes Styles */

.sk-scroll {
    height: 11px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.quote-container {
    color: #FFFFFF;
    height: 110px;
    text-align: center;
    width: 90%;
}
#quote-box {
    font-size: 18px;
    float: left;
    width: 80%;
}
.fadein {
  opacity: 1;
  transition: opacity .5s ease-in-out;
  -moz-transition: opacity .5s ease-in-out;
  -webkit-transition: opacity .5s ease-in-out;
}
.fadeout {
  opacity: 0;
  transition: opacity .5s ease-in-out;
  -moz-transition: opacity .5s ease-in-out;
  -webkit-transition: opacity .5s ease-in-out;
}
#quote-box a {
    color: #fff3b5;
}
.left-dq {
    color: #FFFFFF;
    float: left;
    font-size: 72px;
    width: 10%;
}
.right-dq {
    color: #FFFFFF;
    float: right;
    font-size: 72px;
    width: 10%;
}

/* Cover Styles */

.cover-container {
    padding-top: 20px;
    padding-bottom: 40px;
    width: 88%;
}
.cover-main {
    float: left;
    width: 33%;
}
.cover-main img {
    -webkit-box-shadow: 0 0 25px 0 #000;
    box-shadow: 0 0 25px 0 #000;
    width: 240px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    -webkit-transition: .5s;
    transition: .5s;
}
.cover-main img:hover {
    -webkit-box-shadow: 0 0 0px 0 #000;
    box-shadow: 0 0 0px 0 #000;
}

/* Brain Bites */

.brain-bite-container {
    background: url("../img/brainbite-bg.jpg");
    background-size: cover;
    background-position: center;
    -webkit-box-shadow:inset 0 0 25px 0 #000000;
    box-shadow:inset 0 0 25px 0 #000000;
}
.brain-bite-fill {
}
.brain-bite-head {
    float: left;
    width: 33%;
}
.brain-bite-head img {
    width: 208px;
    max-width: 100%;
}
.brain-bite {
    float: left;
    width: 61%;
}
.brain-bite p {
    color: #221f1f;
    font-size: 26px;
    line-height: 42px;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.brain-bite .mid {
    font-size: 36px;
    font-weight: 700;
    line-height: 42px;
}
.brain-bite .large {
    font-size: 48px;
    font-weight: 700;
    line-height: 42px;
}
.brain-bite .emph {
    font-size: 36px;
    font-style: italic;
    line-height: 42px;
}
.brain-bite-share {
    float: left;
    text-align: center;
    width: 75%;
}
.brain-bite-share a {
    transition: .25s;
}
.brain-bite-share a:hover {
    opacity: .5;
}
.share-text {
    color: #c3bea6;
    color: rgba(34,31,31,.5);
    font-size: 24px;
}
.ss-icon {
    font-size: 36px;
}
.facebook {
    color: rgb(76,102,164);
}
.twitter {
    color: rgb(85,172,238);
}
.pinterest {
    color: rgb(164,12,27);
}
.brain-bite-nav {
    float: left;
    width: 25%;
}
.brain-bite-nav a {
    color: #221f1f;
    font-size: 24px;
    margin-right: 10px;
    transition: .25s;
}
.brain-bite-nav a:hover {
    color: #c3bea6;
    color: rgba(34,31,31,.5);
}

/* About Sam */

.about-container {
    padding-bottom: 40px;
}

.third {
    float: left;
    width: 33%;
    text-align: center;
}
.hand {
    max-height: 116px;
    max-width: 90%;
}
.about-link {
    margin-top: 20px;
}
.about-link a {
    color: #fff3b5;
    font-size: 36px;
}
.about-link span {
    color: #fff;
    font-size: 36px;
}

#official-bio, #official-photo {
    display: block;
}
#secret-bio, #secret-photo {
    display: none;
}
.bio-reveal {
    display: block !important;
}
.bio-hide {
    display: none !important;
}

/* Sub-pages */

/* Book Pages */

.book-container {
    background: url("../img/paper-bg.jpg") top center no-repeat;
    background-color: #fef8d8;
    color: #232020;
    padding-top: 40px;
    padding-bottom: 80px;
    -webkit-box-shadow:inset 0 0 25px 0 #000000;
    box-shadow:inset 0 0 25px 0 #000000;
}

.book {
    float: left;
    width: 65%;
}
.book h2 {
    font-size: 24px;
    font-weight: 300;
    margin: 0px;
    text-align: center;
    width: 92%;
}
.book-description {
    clear: left;
    float: left;
    width: 60%;
}
.book-nav {
    float: left;
    width: 40%;
}
.book-nav img {
    max-height: 210px;
    margin-bottom: 20px;
    margin-top: 10px;
}
.book-nav ul {
    clear: both;
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
    list-style: none;
    padding-left: 0px;
}
.book-nav a {
    color: inherit;
    font-style: normal;
}
.book-nav a .selected {
    text-decoration: none;
}
.book-content-container {
    height: 0px;
    margin-bottom: 0px;
    opacity: 0;
    overflow: hidden;
    transition: opacity 1s;
    width: 80%;
}
.show {
    height: auto;
    margin-bottom: 80px;
    opacity: 1;
}
.book-content-container h1 {
    font-size: 60px;
    margin: 0px;
    text-align: center;
    text-transform: uppercase;
}
.book-content {
    width: 100%;
}
.book-content h2 {
    font-size: 36px;
    margin: 0px;
    text-align: center;
    text-transform: uppercase;
}
.book-content h3 {
    font-size: 24px;
    font-weight: 300;
    margin: 0px;
    margin-bottom: 15px;
    text-align: center;
}

/* Excerpt */

.dropcap {
    font-size: 24px;
}

p.spb {
margin-top: 4em;
text-indent: 0;
}

/* Buy Links */

.buy-link {
    color: #000000;
    font-size: 48px;
    text-align: center;
}
.extras-link {
    color: #000000;
    font-size: 36px;
    text-align: center;
}

/* Table of Contents */

.toc {
    font-size: 24px;
    list-style: none;
}
.toc ul {
    margin: 10px;
    padding: 0px;
}
.toc ul li {
    font-size: 18px;
    list-style: none;
}

/* Bio */

.bio {
    float: left;
    width: 65%;
}

.sk-elements {
    width: 184px;
}

/* Contact */

.form-label, .form-option label {
    color: #4d4b41;
    font-size: 18px;
}
.form-input input, .form-textarea textarea {
    background: none;
    background-color: #fcfbf0;
    border: 1px solid #4d4b41;
}
input[type="submit"] {
    background: none;
    border: none;
    color: #4d4b41;
    font-family: "Times New Roman", Times, serif;
    font-size: 24px;
    margin-top: 20px;
    text-transform: uppercase;
    text-decoration: underline;
}

/* Extras */

.cover-container {
    padding-top: 20px;
    padding-bottom: 40px;
    width: 88%;
}
.cover-extra {
    float: left;
    width: 100%;
}
.cover-extra img {
    -webkit-box-shadow: 0 0 25px 0 #000;
    box-shadow: 0 0 25px 0 #000;
    width: 96px;
    max-width: 90%;
    -webkit-transition: .5s;
    transition: .5s;
}
.cover-extra img:hover {
    -webkit-box-shadow: 0 0 0px 0 #000;
    box-shadow: 0 0 0px 0 #000;
}
.extra-header {
    width: 75%;
}
.extra-nav {

}
#extra {
    height: auto;
    margin-bottom: 80px;
    opacity: 1;
}

.extra-quote-img {
    float:left;
    margin-top: 20px;
    width:10%;
}
.extra-quote-img img {
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.extra-quote {
    float:left;
    min-height: 80px;
    margin-right:10%;
    width:80%;
}
.extra-quote a {
    color: #232020;
}
.extra-table a {
    color: #232020;
    display: block;
    font-size: 24px;
    font-variant: small-caps;
    float: left;
    line-height: 60px;
    text-align: center;
    width: 25%;
}
.extra-letter {
    font-family: sans-serif;
}
.embed-container { 
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    height: auto;
} 
.embed-container iframe, .embed-container object, .embed-container embed { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

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

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

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

@media only screen and (max-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
    .mobile-hide {
        display: none;
    }
    .nav-space {
        display: none;
    }
    .brdr-top, .brdr-right, .brdr-bttm, .brdr-left {
        display: none;
    }
    nav a {
        float: left;
        width: 100%;
    }

    .brain-bite-head {
        width: 100%;
    }

    .brain-bite {
        padding-left: 5%;
        padding-right: 5%;
        width: 90%;
    }

    .book-container .cover-main {
        margin-bottom: 5%;
        width: 100%;
    }

    .book {
        float: none;
        width: 100%;
    }
    .book h2 {
        font-size: 21px;
        padding-left: 5%;
        padding-right: 5%;
        width: 90%;
    }
    .book-description {
        padding: 5%;
        width: 90%;
    }
    .book-nav {
        float: none;
        width: auto;
    }
    .book-nav img {
        display: none;
    }
    .book-content-container h1 {
        font-size: 48px;
    }
    .form-input input, .form-textarea textarea {
        width: 299px;
    }
    .extra-quote-img {
        clear:both;
        width:100%;
    }
    .extra-quote {
        margin-right:0%;
        width:100%;
        text-align: center;
    }
    .maps-table a {
        width: 50%;
    }
}

@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 required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

    .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; /* h5bp.com/t */
    }

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