/*! 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/skingbg.jpg") no-repeat center center fixed #eae6db;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

body {
  font-size: 100%;
}

#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: 12px 16px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 3.2em;
  font-family: 'IM Fell English', serif;
  margin: .24em 0;
  line-height: 1.1em;
}

h2 {
  font-size: 2.3em;
  font-family: 'IM Fell English', serif;
  margin: .42em 0;
  color: #891c2a;
}
h3 {
  font-size: 1.4em;
  float: left;
  width: 50%;
  margin: .42em 0;
  font-family: 'IM Fell English', serif;
}
.author {
  font-size: 1.7em;
  display: block;
  margin: .12em 0;
}

#main {
  width: 100%;
  padding: 12px 0px;
  margin: 0 auto;
  overflow: hidden;
}

#book {
  width: 35%;
  float: left;
  margin: 0px 12px 18px 0px;
}

#book img {
  width: auto;
  height: auto;
  max-width: 100%;
}

#copy {
  width: 55%;
  float: left;
  font-family: 'IM Fell English', serif;
  font-size: 1.9em;
  padding: 12px 0px;
  margin: 0 0 8px 0;
}
.subhd {
    font-size: 1.1em;
    display: block;
    margin: 12px 6px;
}
q {
  display: block;
  margin: 24px 0 0 0;
  quotes: "\201C" "\201D";

}
cite {
    display: block;
    margin-top: 2px;
    font-weight: 700;
    font-style: normal;
}
cite:before {
    content: '\2014';
}

/*======================Buy Links====================*/

#menu-outer {
  /*height: 84px;*/
  float: left;
  width: 60%;
  overflow: visible;
}

.table {
  display: table;   /* Allow the centering to work */
  margin: 0 auto;
}

ul#retail-list {
  list-style: none;
  padding: 0px 0px;
  list-style-type: none;
  display: block;
  margin: 0;

}
ul#retail-list li {
  display: inline-block;
  list-style-type: none;
  margin: 8px 12px 0 0;
  background-color: #891c2a;
  padding: 8px;
  border-radius: 3px;
}

ul#retail-list li a {
  padding: 6px 8px;
  font-weight: 700;
  color: #fff;
  font-size: .94em;
  transition-property: background;
  transition-duration: .25s;
  transition-timing-function: linear;
  list-style-type: none;
  text-decoration: none;

}
ul#retail-list li a:hover {
  color: #fc0;
}

ul#retail-list li:hover {
  background-color: #231616;
}

.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: #1c94a6;
  font-weight: 400;
  border-radius: 6px;
  display: inline-block;
  float: left;
  text-align: center;
  text-decoration: none;
  list-style: none;
  color: #fff;
  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: #d64c1f;
}

.btnbg {
  background-color: #386cc8;
}

.excerpt_btn {
  margin: 4px auto;
  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: #333;
  width: 70%;
  font-size: 1.0em;
  transition-property: background;
  transition-duration: .25s;
  transition-timing-function: linear;
}

a.excerpt_btn:hover {
  background: #fce1aa;
}

#connect {
  width: 98%;
  float: left;
  margin: 0px 0px 36px 0px;
  text-align: center;
  font-family: 'IM Fell English', serif;
  font-size: 1.2em;
  line-height: 1.4em;
}

#connect a {
  margin: 4px auto;
  font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  padding: 4px 0px;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
  color: #08ff3f;
  transition: .3s background;
}

#connect a:hover {
  color: #ff08f0;
}

#connect img {
  margin: 0px 4px 0px 12px;
}

.env {
  margin: 0px 4px 0px 0px;
}

#videoYT {
  width: 60%;
  overflow: hidden;
  float: right;
  margin: 36px 24px 36px 0px;
  font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.3em;
  color: #333;
  text-align: center;
  line-height: 1.2em;
}

.videoContainer {
  position: relative;
  padding-top: 56.25%;
  width: 100%;
}

.videoContainer iframe {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0px;
  border: 1px solid #173255;
}

/*==================================Footer==================================*/
footer {
  width: 100%;
  margin: 30px auto 24px;
  font-family: 'Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: .65em;
  text-align: center;
  padding: 14px 0 24px 0;
  color: #333;
  border-top: 0px solid #999;
  clear: both;
}

footer a {
  color: #454545;
  margin: 0 6px;
  text-decoration: none;
}

footer a:hover {
  color: #c00;
}

footer a:visited {
  color: #898989;
}
#signup footer {
    background-color: transparent;
}

/*==================================Footer End==================================*/

/*====================================Sign Up===================================*/
.bgcolor {
  background-color: #fc0;
}

#signup {
  width: 380px;
  padding: 4px 8px;
  font-family: sans-serif;
  font-size: .88em;

}


.su_hdln {
  font-size: 1.4em;
  color: #173255;
  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: "Balthazar", Georgia, "Times New Roman", Times, serif;
}

.input:hover {
  background: #936b36;
}

.su_text {
  font-size: 1.1em;
}

.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: 90%;
  margin: 8px 0px;
  font-family: sans-serif;
  font-size: 1.0em;
}

.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: 30%;
  margin: 8px 0px;
  font-family: sans-serif;
  font-size: 1.0em;
}

.agepd {
  width: 22%;
}
.birthday {
  float: left;
  width: 40%;
  margin: 0 0 24px 0;
}

select[type="cboAgeMonth"] {
  height: 96px;
}

input:focus,
select:focus {
  border: 0;
  outline: 0;
}

.su_btn {
  width: 144px;
  padding: 24px;
  color: #FFFFFF;
  font-size: 1.0em;
  padding: 8px 24px;
  display: block;
  margin: 18px auto;
  background-color: #173255;
  font-family: sans-serif;
  cursor: pointer;
  border: none;
  border-radius: 6px;
}

input[type="submit"]:hover {
  background-color: #ffcc00;
  color: #333;
}

div#signup footer {
    background-color: transparent;
}



/* ==========================================================================
   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 0px;
    margin: 0 auto;
    font-size: 15px;
}

header img {
    width: auto;
    height: auto;
    max-width: 100%;
}
h1 {
  font-size: 2.0em;

}

h2 {
  font-size: 1.9em;
  margin-top: 1.63em;
}
h3 {
  font-size: 1.1em;
  width: 100%;
  text-align: center;
  margin: .75em 0 0 0;
}

#main {
    width: 100%;
    padding: 12px 0px;
    margin: 0 auto;
}

#book {
    width: 98%;
    float: left;
    margin: 0px 0px 9px 0px;
    text-align: center;
}

#copy {
    width: 98%;
    float: right;
    font-size: 1.14em;
    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;
}

#menu-outer {
  /*height: 84px;*/
  float: left;
  width: 100%;
  padding: 0 24px;
  overflow: visible;
}

.rlinks {
    width: 98%;
    float: left;
    font-size: 1.3em;
    margin: 0 0 12px 4px;
    text-align: center;
}
.rlinks li {
  display: inline-block;
}

#connect {
    width: 94%;
    float: left;
    margin: 24px 0px 12px 0px;
    text-align: center;
    font-size: 1.2em;
}
#connect img {
  width:auto;
  height:auto;
  max-width:100%;
}

#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 35px 0;
    border-top: 0px solid #999;
}

footer a {
    margin: 0 6px;
    text-decoration: none;
}

/*======================footer end========================*/

/*===========================sign up======================*/
#signup {
    width: 100%;
    padding: 4px 8px;
    font-family: sans-serif;
    font-size: .88em;
}
#signup footer {
    background-color: transparent;
}

.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 only screen and (min-width: 600px) and (max-width: 800px) {

h1 {
  line-height: 1.0em;
  margin: .23em 0;
}





}

@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;
    }
}
