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

body {
    font-size: 1em;
    line-height: 1.4;
    color: #353535;
    background-color: #f6f6f6;
}

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

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
ul {list-style-type: none; margin: 0; padding: 0;}
a {text-decoration: none; color:#cc6266;}
nav a{color:#fff;}
nav a:hover{color: #edd533;}
.centered {margin: 0px auto;}

#navbar {
   position: relative;
   z-index: 100;
   margin: 0;
   padding: 0;
   }
#navbar li {
   list-style: none;
   float: left; 
   }
#navbar li a {
   display: block;
   padding: 3px 8px;
   text-decoration: none; }
#navbar li ul {
   display: none; 
   width: 10em; /* Width to help Opera out */
   background-color: #fff;}
#navbar li:hover ul, #navbar li.hover ul {
   display: block;
   position: absolute;
   margin: 0;
   padding: 0; }
#navbar li:hover li, #navbar li.hover li {
   float: none; }
#navbar li:hover li a, #navbar li.hover li a {
   border-bottom: 1px solid #fff;
   color: #3c7baf; }
#navbar li li a:hover {
  color:#fff;
   background-color: #3c7baf; }

/* ======Text Styles===== */
h3 { color: #3c7baf;}
h2 { color: #3c7baf;}
h1 { text-shadow: 0 2px 4px #101010;}
p  { color: #4c4c4c;}
/* ======Text Styles===== */

#wrapper { width: 1024px; height:auto; margin-left: auto; margin-right: auto; background-color: #fff;}
#header {position: fixed; top: 0; z-index: 9999; height:80px; width: 1024px; background-color:#3c7baf;}
#img_header_1 {margin-top: 80px; width: 1024px; height: 300px; background-image: url('../img/part1_img.jpg'); font-family: Arial, Helvetica, sans-serif; color:#fff; text-align:center;}
#img_header_2 {margin-top: 80px; width: 1024px; height: 300px; background-image: url('../img/part2_img.jpg'); font-family: Arial, Helvetica, sans-serif; color:#fff; text-align:center;}
#img_header_3 {margin-top: 80px; width: 1024px; height: 300px; background-image: url('../img/part3_img.jpg'); font-family: Arial, Helvetica, sans-serif; color:#fff; text-align:center;}
#img_header_4 {margin-top: 80px; width: 1024px; height: 300px; background-image: url('../img/part4_img.jpg'); font-family: Arial, Helvetica, sans-serif; color:#fff; text-align:center;}
.header_text{position: relative; padding-top: 100px; font-size: 2.5em;}

#nav {width: 30%; height: 30px; float: right; margin-left: 20px; margin-top: 55px;}
nav li {display: inline; margin-right: 1em;}
#nav a {color:#fff;}

#slideshow {width: 1024px; margin-top: 80px; height: 366px;}
ul#nav {
    display: none;
    list-style: none;
    position: relative; top: 300px; z-index: 15;
}
    div#slideshow ul#nav li#prev {
        float: left; margin: 0 0 0 40px;
    }
    div#slideshow ul#nav li#next {
        float: right; margin: 0 50px 0 0;
    }
    div#slideshow ul#nav li a {
        display: block; width: 82px; height: 82px; text-indent: -9999px;
    }
        /*div#slideshow ul#nav li#prev a {
            background: url(img/prev.png);
        }
        div#slideshow ul#nav li#next a {
            background: url(img/next.png);
        }*/

    div#slideshow ul#slides {
        list-style: none;
    }
        div#slideshow ul#slides li {
            margin: 0 0 20px 0;
        }


#tagline {width: 1024px; background-color:#fff;}
#order {width: 50%; height: 300px; float: left; padding-top: 20px; background-color: #f8fafe;}
#book_cover {width: 50%; float: left;}
#s1 {padding-left: 3em; padding-right: 3em;}
#overview {padding-top: 20px; padding-left:3em; padding-right:3em; text-align: center;}
#about {padding-top: 80px; padding-left:3em; padding-right:3em; height: 500px; text-align: center;}
#portrait {width:auto; float: left; padding-top: 20px; padding-left: 0; text-align: left;}
#bio {width: 600px; float: right; padding-top:20px; text-align: left;}
#orderinfo {width: 50%; margin-top: 14px; float: right; font-size: 0.9em;}
#about_vid{border-left:1px solid #d4d4d4; width: 49.8%; height: 300px; float: right; padding-top: 20px; text-align: center; background-color: #f8fafe;}
#kipp {clear: both; width: 1024px; text-align: center; margin: 0; padding-bottom: 0.5em; color: #474747;}
#footer {clear: both;text-align: center; width: 1024px; font-size: 0.8em; font-family: "Times New Roman", serif; padding-top: 0.2em; padding-bottom: 0.2em; background-color: #3c7baf;}
#footer p{color:#fff;}

/* ==========================================================================
   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: 100%;
}

/*
 * 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.
   Theses 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 only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* 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;
    }
}
