/*! HTML5 Boilerplate v5.0.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 {
    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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/*html {
  background: url("../img/ITFbg.jpg") no-repeat center center fixed #011136;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}*/
body {
  color: #333;
}

#wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
/*  background-color: #cad6ed;
  background-color: rgba(37, 85, 132, 0.25);
  box-shadow: 0px 0px 18px #333;*/
}

header {
  width: 100%;
  padding: 0px 0px;
  margin: 0 auto;
  text-align: center;
  background-image: url(../img/headerbg.jpg);
  background-repeat: repeat-x;
  border-bottom: 1px solid #65717e;
}

header img {
  height: auto;
  width: auto;
  max-width: 100%;
}
#masthead {
  width: 100%;
  padding: 4px 0;
  background-color: #bcd7e0;
  text-align: center;
  border-bottom: 1px solid #65717e;
  margin: 0 0 36px 0;
  font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
}
.mastcopy {
  width: 100%;
  max-width: 960px;
  text-align: center;
  display: block;
  margin: 0 auto;
  font-size: 1.1em;
}
h1 {
  font-size: 1.8em;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", Times, serif;
  margin: 8px 0 12px 0;
  font-weight: 400;
  line-height: 1.2em; 

}

h3 {
  font-size: 1.2em;
  font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0 auto;
  font-weight: 400;
  color: #333;
  /*width: 92%;*/
}

h2 {
  font-size: 1.4em;
  font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0 auto;
  font-weight: 400;
  color: #df0015;
  width: 75%;

}
.author {
  text-transform: uppercase;
}

#main {
  width: 100%;
  padding: 12px 0px;
  margin: 0 auto;
  overflow: hidden;
}

#book {
  width: 35%;
  float: left;
  margin: 0px 36px 18px 0px;
}

#book img {
  width: auto;
  height: auto;
  max-width: 100%;
}

#copy {
  width: 55%;
  float: left;
  font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.6em;
  padding: 12px 0px;
  font-weight: 400;
  color: #fed030;
/*  line-height: 1.7em;*/
}
.subhd {
    font-size: 1.1em;
    display: block;
    margin: 12px 6px;
}
q:before {
    content: '“';
}
q:after {
    content: '”'
}
q {
  display: block;
  margin: 24px 0 0 0;
  color: #fff;
  font-size: .85em;
}
cite {
    display: block;
    margin-top: 6px;
    font-style: normal;
    color: #fff;
    font-size: .85em;
}
cite:before {
    content: '\2014';
}

.rlinks {
  font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
/*  float: left;*/
  width: 55%;
  list-style-type: none;
  display: inline-block;
  margin: 12px 0 0 0;
  padding: 0;
  font-size: 1.1em;
}
.retail a {
  padding: 6px 4px;
  margin: 12px 6px 4px 0px;
  background-color: #fed030;
  font-weight: 700;
  border-radius: 6px;
  display: inline-block;
  float: left;
  text-align: center;
  text-decoration: none;
  list-style: none;
  color: #333;
  width: 144px;
  font-size: .84em;
  border: 1px solid #1b3055;
  transition-property: background;
  transition-duration: .25s;
  transition-timing-function: linear;
}
.retail a:hover {
  text-decoration: none;
  color: #fff;
  background-color: #df0015;
}

.btnbg {
  background-color: #386cc8;
}

.excerpt_btn {
  margin: 12px auto;
 /* background-color: #015da6;*/
  font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
  padding: 4px 0px;
  border-radius: 6px;
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  width: 65%;
  font-size: 1.0em;
  transition-property: background;
  transition-duration: .25s;
  transition-timing-function: linear;
}

a.excerpt_btn:hover {
  background: #df0015;
  color: #fff;
}



.env {
  margin: 0px 4px 0px 0px;
}
.bookrow {
  width: 100%;
  margin: 64px 0 48px 0;
  display: -webkit-flex;
        display: flex;
       /*-webkit-align-items: center;
       align-items: center;*/
       /*-webkit-justify-content: center;
       justify-content: center;*/
       /* You can set flex-wrap and flex-direction individually */
       -webkit-flex-direction: row;
       flex-direction: row;
       -webkit-flex-wrap: wrap;
       flex-wrap: wrap;

}
.genre-item {
    flex-basis:48%;
    flex-flow: row wrap;
    font-family: 'Open Sans', sans-serif;
    margin: 0 0 48px 0;
    padding: 0 24px;
}
.genre-item-l {
    float: left;
    clear: left;
}
.genre-item-r {
    float: right;
    clear: right;
}
.genre-item:last-child {
  /*border: 1px solid #c00;*/
  margin: 0;
}
.genre-book {
    width: 40%;
    float: left;
    margin: 0 12px 0 0;
}
.genre-book img {
    width:auto;
    height:auto;
    max-width:100%;
    border: 1px solid #333;
}
.genre-item-l h1, .genre-item-r h1 {
    font-size: 1.8em;
    margin: 0;
    line-height: 1.2em;
}
.genre-item-l h2, .genre-item-r h2 {
    font-size: 1.3em;
    margin: .52em 0;
    line-height: 1.2em;
}
.genre-item-l h3, .genre-item-r h3 {
    font-size: 1.1em;
    margin: .24em 0;
    line-height: 1.0em;
}
.genre-buttons {
    width: 96%;
    float: left;
    margin: 0 0 .43em 0;
}
.genre-item-l p, .genre-item-r p {
    margin: .15em;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.0em;
}


/*==================================Footer==================================*/
footer {
  width: 100%;
  margin: 30px auto 0px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: .65em;
  text-align: center;
  padding: 36px 0px;
  color: #333;
  border-top: 0px solid #999;
  clear: both;
  background-image: url(../img/headerbg.jpg);
  background-repeat: repeat-x;
  border-top: 1px solid #333;
}

footer a {
  color: #c00;
  margin: 0 6px;
  text-decoration: none;
}

footer a:hover {
  color: #6d0d0a;
}

footer a:visited {
  color: #6d4340;
}
#signup footer {
    background-color: none;
}

/*==================================Footer End==================================*/

/*================SIGN UP FORM===================*/

#signup {
    width: 30%;
    margin: 0 0 0 0;
/*  max-width: 400px;*/
    padding: 8px;
    float: right;
    font-family: sans-serif;
    font-size: .88em;
    font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
    border: 1px solid #a8a8a8;
    background-color: #dce6c1;
    border-radius: 8px;
}
.su_hdln {
  font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif; 
  font-size: 20px;
  display: block;
  margin: 0px auto 12px;
  text-align: center;
}

.asterisk {
    color: #f00;
    vertical-align: 4px;
}

label {
    display: block; 
    margin-top: 0.4em;
}

input, 
select {
    color: #333;
    font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
}
.input:hover {
  background: #936b36;
}

.su_text {
    font-size: 18px;
}

.fields-full {
    border: 0;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    box-shadow: inset 1px 2px 2px rgba(0,0,0, 0.4);
    outline: 0;
    padding: 6px 5px;
    width: 96%;
    margin:8px 12px 0px 0px; 
    font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    border: 1px solid #a8a8a8;
}
.fields-half {
    border: 0;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    box-shadow: inset 1px 2px 2px rgba(0,0,0, 0.4);
    outline: 0;
    padding: 6px 5px;
    width: 38%;
    margin:8px 0px;
    font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    border: 1px solid #a8a8a8;    
}
.agepd  {
    width: 50%;
    height: 28px;
    border: 1px solid #a8a8a8;
}

select[type="cboAgeMonth"] {
    height: 96px;
}

input:focus,
select:focus {
    border: 0;
    outline: 0; 
}
.su_btn {
    width: 144px;
    padding: 24px;
    color:#FFFFFF;
    font-size:14px;
    padding:8px 24px;
    display:block;
    margin:8px 0 0 0;
    background-color: #cb1c17;
    cursor: pointer;
  border-radius: 6px;
  border: 0px;
}

input[type="submit"]:hover {
    background-color: #4b6c33;
    color: #fff;
}

/*=============================Home Page Hero Feature==========================*/
#hero {
    width: 64%;
    margin: 0 auto 12px;
    border-bottom: 1px solid #333;
    overflow: hidden;
    padding: 12px 0;
    float: left;

}
.hero {
    width: 65%;
    float: left;

}
.hero-book {
    width: 28%;
    float: left;
    margin: 0 12px 0 0;
}
.hero-book img {
    width:auto;
    height:auto;
    max-width:100%;
    border: 1px solid #333;
}
/*.hero-pic {
    float: left;
}
.hero-pic img {
    width:auto;
    height:auto;
    max-width:100%;
    border: 1px solid #333;
}*/
.hero-copy {
    width: 98%;
    float: left;
    margin: 0 12px 48px 0;
    font-family: 'Open Sans', sans-serif;
}
#hero p {
    margin: .15em;
    font-family: 'Open Sans', sans-serif;
    font-size: .94em;
}
#hero h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.0em;
    margin: 0 0 .18em 0;
    line-height: 1.0em;
}
#hero h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6em;
    margin: 0;
}
#hero h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3em;
    margin: 0;
    font-weight: 400;
}
#hero h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: .84em;
    margin: 4px 0;
    padding: 4px 0;
    display: block;
    clear: both;
}
.hero-photos {
    width: 48px;
    height: 48px;
    float: left;
    margin: 0 6px 8px 0;
    border: 1px solid #333;
}
.hero-photos img {
    width:auto;
    height:auto;
    max-width:100%;
}
.hero-buttons {
    width: 56%;
    float: left;
}
.hero-button1 {
    float: left;
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333;
    border-radius: 0px;
    /*background-color: #c00;*/
    padding: 6px 6px;
    margin: 6px 12px 0 0;
    text-decoration: none;
    border: 1px solid #d7d7d7;
    /*transition-property: background;
    transition-duration: .25s;
    transition-timing-function: linear;*/
}
a.hero-button1:hover {
    /*background-color: #444;*/
    color: #c00;
}

.hero-button2 {
    float: left;
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333;
    border-radius: 6px;
    /*border: 1px solid #936c68;*/
    background-color: #fec52e;
    padding: 6px 6px;
    margin: 4px 8px 4px 0;
    text-decoration: none;
    transition-property: background;
    transition-duration: .25s;
    transition-timing-function: linear;
}
a.hero-button2:hover {
    background-color: #e63219;
    color: #fff;
}

.hero-buy {
    width: 32%;
    float: left;

}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * 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 (max-width: 600px) {
    /* Style adjustments for viewports that meet the condition */
#wrapper {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

header {
    width: 100%;
    padding: 4px 0 0 0;
    margin: 0 auto;
    font-size: 15px;
}

header img {
    width: auto;
    height: auto;
    max-width: 100%;
}
h1 {
  font-size: 2.5em;
}
h2 {
  font-size: 1.8em;
  width: 100%;
}
h3 {
  font-size: 1.4em;
  width: 100%;
}
#masthead {
  font-size: .65em;
  margin: 0 0 6px 0;
}

#main {
    width: 100%;
    padding: 12px 0px;
    margin: 0 auto;
}

.hero {
    width: 95%;
    float: left;
    margin: 0 0 12px 6px;

}
.hero h1 {
  font-size: 1.44em;
}
.hero p {
  font-size: .86em;
}
.hero-book {
  width: 46%;
}
.genre-item {
 flex-basis:98%;
 flex-flow: row wrap;
 font-family: 'Open Sans', sans-serif;
 margin: 0 0 48px 0;
 padding: 0 24px;
}
.genre-item h1 {
  font-size: 1.44em;

}
.genre-item h2 {
  font-size: 1.24em;

}
.genre-book {
  margin: 0 12px 0 0;
}

#book {
    width: 98%;
    float: left;
    margin: 0px 0px 9px 0px;
}

#copy {
    width: 98%;
    float: right;
    font-size: .94em;
    padding: 6px 6px;
}
.excerpt_btn {
    margin: 4px auto;
    padding: 4px 0px;
    border-radius: 6px;
    display: block;
    width: 90%;
    font-size: 1.2em;
}

.subhd {
    display: block;
    margin: 12px 6px;
}

#buylinks {
    width: 98%;
    float: left;
    font-size: 1.3em;
    margin: 8px 0px 12px 4px;
    text-align: center;
}
.rlinks {
  width: 80%;
  text-align: center;
  margin: 12px 10%;
  font-size: 1.3em;
}
.retail a {
  width: 96%;
  margin: 12px;
  padding: 8px 0;
}

#connect {
    width: 96%;
    float: left;
    margin: 24px 0px 12px 0px;
    text-align: center;
    font-family: 'Montserrat','Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.2em;
}

#videoYT {
    width: 96%;
    overflow: hidden;
    float: none;
    margin: 12px auto;
    font-size: 16px;
    color: #333;
    line-height: 1.2em;
}

/*=======================footer=======================*/
footer {
    width: 100%;
    margin: 18px auto 0px;
    font-size: 11px;
    padding: 7px 0px;
    border-top: 0px solid #999;
}

footer a {
    margin: 0 6px;
    text-decoration: none;
}

/*======================footer end========================*/

/*===========================sign up======================*/
#signup {
    width: 92%;
    padding: 4px 8px;
    font-family: sans-serif;
    font-size: .88em;
    margin: 0 12px 36px 0;
}
#signup footer {
    background-color: none;
}

.fields-half {
    border: 0;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    box-shadow: inset 1px 2px 2px rgba(0, 0, 0, 0.4);
    outline: 0;
    padding: 6px 5px;
    width: 90%;
    margin: 8px 0px;
}

.agepd {
    width: 90%;
    margin: 12px 0px;
}

/*===========================sign up end======================*/










}

@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 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;
    }
}
