/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

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

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

img {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

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


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















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

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

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

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

/**
 * Out of fear of conflicting with the Sass files,
 * I'm going to put the Books CPT styles in here
 */

#books-page-header {
    color: #f7931e;
}

.books > li + li {
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid #231F20;
}

.books-listing > a {
    display: block;
    float: left;
}

.books-listing > a > img {
    max-width: 206px;
    height: auto;
}

.books-listing > div {
    padding-left: 230px;
}

.books-listing header > h2 > a {
    font-size: 37px;
    line-height: 39px;
    text-decoration: none;
}

.books-listing header > h2 > a:hover {
    text-decoration: underline;
}

.books-listing header > p {
    margin: 19px 0 23px;
    font-size: 18px;
    line-height: 23px;
}

.books-listing header > div > span {
    display: block;
    margin-bottom: 10px;
    color: #ec1c23;
    font-size: 14px;
    text-transform: uppercase;
}

.books-listing > div > p {
    padding-top: 3px;
    height: 90px;
    font-size: 12px;
    line-height: 1.8em;
}

.books-listing > div > p a {
    color: #ec1c23;
    text-transform: uppercase;
    text-decoration: none;
}

.books-listing > div > p a:hover {
    text-decoration: underline;
}

.books-listing > div > ul {
    margin-top: 22px;
}

.books-listing > div > ul > li {
    display: block;
    float: left;
    margin-right: 4px;
    width: 44px;
    height: 40px;
    background-color: #f7931e;
    cursor: pointer;

    -webkit-transition: background-color 0.3s ease-out;  
       -moz-transition: background-color 0.3s ease-out;  
         -o-transition: background-color 0.3s ease-out;
            transition: background-color 0.3s ease-out;
}

.books-listing > div > ul > li:hover {
    background-color: #E6810C;
}

.books-listing > div > ul > li > a {
    display: block;
    width: 22px;
    height: 22px;
    margin: 9px 0 0 11px;
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
    background-image: url(../img/social-sprites.svg);
    background-repeat: no-repeat;
}

.lt-ie9 .books-listing > div > ul > li > a {
    background-image: url(../img/social-sprites.png);
}

.books-icon-facebook > a  { background-position: -114px 0; }
.books-icon-twitter > a   { background-position: 0 0; }
.books-icon-pinterest > a { background-position: -38px 0; }
.books-icon-google > a    { background-position: -76px 0; }

.books-listing > div > ul > li.books-amazon {
    width: auto;
}
.books-listing > div > ul > li.books-amazon > a {
    width: auto;
    min-width: 34px;
    height: 34px;
    margin-left: 0;
    margin-right: 4px;
    margin-top: 6px;
    line-height: 29px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABbUlEQVR42u3WzyuDcRzA8W1meRqh1IjiYFutmJvwF0iRi/IjYjfS6qlxtRQ5PuXk5uDisDg4uBC3uTjhwqKI5KKsXNbjfXgOn54WbZ7vI/V861VP31rfd88+T8/jM03zT3kBXsC/D2hFDB1uB4zjHO8o4QMXmHIjYAHfrUmVAc0oWgeVsIxB5ETAmcqACPaRx5bYT4iAG/jdGEINSYwiawsIqAwIYx0FlFvXKgNCOBKH5bGEjFsBI7aDtDIzcKVyBtbEQXtif0bsP6BGVcCqOOgeUfTgDnLNqQpIQq5Pcf0krrdVPgUpPNpmYRhxFGCgVkWA1IRexBES+w1OvQuCqIfvFyKYgI4xBCsJqEMGaTRWGdCPNDbxipZK/wINWVzCwBDC8P0ggAR07GAAh5XeAakPORTxhhMY0DGPWSxiAwe4xTN20Y0Upp0YwihWcGqF2NcLjpFGl/hdJ/xOPwUa2hGztCHkfRV7AV5ANb4AuwNg1TGncY8AAAAASUVORK5CYII=);
    background-position: right 0;
}
.books-listing > div > ul > li.books-amazon > a > span {
    padding-right: 36px;
    padding-left: 11px;
}
.lt-ie9 .books-listing > div > ul > li.books-amazon > a {
    background-image: url(../img/amazon-link.png);
}

.books-detail-nav {
    clear: left;
    padding-top: 16px;
    margin-top: 14px;
    border-top: 1px solid #221f1f;
}

.books-detail-nav > li {
    display: block;
    float: left;
    width: 25%;
}
.books-detail-nav > li > a {
    display: block;
    padding: 17px 0;
    margin-left: 3px;
    text-align: center;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    background-color: #c7c8ca; 

    -webkit-transition: background-color 0.3s ease-out, color 0.3s ease-out;  
       -moz-transition: background-color 0.3s ease-out, color 0.3s ease-out;  
         -o-transition: background-color 0.3s ease-out, color 0.3s ease-out;
            transition: background-color 0.3s ease-out, color 0.3s ease-out;
}
.books-detail-nav > li > a:hover,
.books-detail-nav > li > a.active-tab {
    color: #000;
    background-color: #e5e5e5;
}
.books-detail-nav > li:first-child > a {
    margin-left: 0;
}


.books-listing .books-tabs {
    position: relative;
    padding-left: 0;
    margin-top: 30px;
}

.books-tab-section {
    font-size: 13px;
    line-height: 23px;
    margin-bottom: 18px;
}

.books-tab-section-default {
    position: absolute;
    top: 0; left: 0;
    visibility: hidden; opacity: 0;

    -webkit-transition: visibility 0.3s ease-out, opacity 0.3s ease-out;  
       -moz-transition: visibility 0.3s ease-out, opacity 0.3s ease-out;  
         -o-transition: visibility 0.3s ease-out, opacity 0.3s ease-out;
            transition: visibility 0.3s ease-out, opacity 0.3s ease-out;   
}

.books-tab-section-active {
    visibility: visible; opacity: 1;
}

.books-tab-section h3:first-child {
    margin-bottom: 40px;
}

.books-tab-section h4,
.books-tab-section h5,
.books-tab-section h6 {
    font-weight: bold;
    margin-bottom: 20px;
}
.books-tab-section h4 { font-size: 20px; }
.books-tab-section h5 { font-size: 17px; }
.books-tab-section h6 { font-size: 14px; }

.books-author-bio h4:first-child {
    margin-bottom: 10px;
}

.books-tab-section h3:first-child > a,
.books-author-bio h4:first-child,
.books-tab-section #find-us {
    font-size: 28px; font-weight: bold;
    color: #000;
}
.books-tab-section h3:first-child > a:hover,
.books-tab-section #find-us {
    text-decoration: none;
}

.books-tab-section blockquote,
.books-tab-section p {
    margin-bottom: 36px;
}
.books-tab-section .books-author-meta {
    margin-bottom: 27px;
    color: #F7931E;
    font-size: 18px;
    line-height: 23px;
    font-style: italic;
}

.books-tab-section blockquote {
    padding: 0 40px;
    font-style: italic;
}

.books-tab-section a {
    color: #F7931E;
    text-decoration: none;
}
.books-tab-section a:hover {
    text-decoration: underline;
}

.books-author-bio .alignleft {
    float: left;
    margin-right: 23px;
}

.books-author-bio .alignright {
    float: right;
    margin-left: 23px;
}
.books-author-bio .alignleft,
.books-author-bio .alignright {
    margin-bottom: 10px;
    padding-top: 5px;
}

.books-tab-section .books-press-praise blockquote {
    float: left;
    width: 50%;
    padding: 0;
}
.books-tab-section .books-press-praise blockquote footer {
    width: auto; height: auto;
    margin: 35px auto auto;
}

.books-tab-section .books-press-praise blockquote footer span {
    display: block;
    text-align: right;
    font-style: normal;
}

.books-press-even,
.books-tab-section .books-press-praise blockquote .books-press-even + footer { 
    margin-right: 15px; 
}
.books-press-odd  { margin-left: 15px; }

.books-press-even,
.books-press-odd {
    padding: 17px 20px;
    background-color: #e5e5e5;
    position: relative;
}
.books-press-even:before,
.books-press-odd:before {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    height: 0; width: 0;
    border-top: 30px solid #e5e5e5;
    border-left: 30px solid transparent;
}

.books-press-even q,
.books-press-odd q {
    quotes: "“" "”" "‘" "’";
}
.books-press-even q:before,
.books-press-odd q:before {
    content: open-quote;
}
.books-press-even q:after,
.books-press-odd q:after {
    content: close-quote;
}


.books-press-author {
    font-weight: bold;
    text-transform: uppercase;
}

.books-tab-section form br,
.books-tab-section form .receivers { 
    display: none; 
}
.books-tab-section input[type="text"],
.books-tab-section input[type="email"],
.books-tab-section textarea {
    background: #F1F1F1;
    font-size: 15px;
    margin-bottom: 6px;
    width: 289px;
    padding: 10px 15px;
    border-top: 1px solid #A3A2A2;
    border-left: 1px solid #A3A2A2;
}
.books-tab-section input[type="email"],
.books-tab-section textarea {
    width: 615px;
}
.books-tab-section .first-name input {
    margin-right: 3px;
}

.books-contact-details b {
    display: block;
    font-weight: bold;
}
.books-tab-section #find-us {
    display: block;
    margin-bottom: 20px;
}

.books-contact-details {
    float: left;
    width: 50%;
    margin-top: 10px;
}
