/*
 * 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;
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 
    font-weight: 300;
    background:#97d8de;
    /*min-width:980px;*/
    
}



#clouds {
    background:url(../img/clouds_newer.png) right top repeat-x;
    height:1000px;
    width:6380px;
    position:fixed;
    top:0;  
    z-index:-100;
    margin-right:-1000px;
}


.container {
    width:880px;
    margin:0 auto;
}
/*
 * 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;
}

/* ==========================================================================
   Interface
   ========================================================================== */

.sprite {
    background-image:url(../img/ui_sprite_new.png);
}

#book {
    height: 530px;
    width: 403px;
    background:url(../img/book.png);
}

#avatar {
    height:250px;
    width:270px;
    background-position:-730px 0px;
    position:fixed;
    top:0;
    right:0;
    opacity:.9;
}

#cta {
    display:block;
    height: 120px;
    width: 390px;
    background-position: -24px -1165px;
    margin:-25px  0 0 22px;
}

#rotator {
    height: 215px;
    width: 327px;
    position: relative;
    margin-right: 140px;
    margin-top:50px;
}

#sign {
    width:400px;
    height:367px;
    background-position:-10px -743px;
    position:fixed;
    bottom:0;
    margin-left:400px;
}

#lights {
    margin-left:19px;
    width:345px;
    height:105px;
    background-position:-32px -631px;
}

#social_media {
    list-style:none;
    width:40px;
    position:fixed;
    left:0;
    bottom:10px;
    margin:0;
}


.icon {
    width:40px;
    height:38px;
    display:block;
}

    #facebook {
        background-position:-15px -154px;
    }

    #facebook:hover {
        background-position:-65px -154px;
    }

    #twitter {
        background-position:-15px -192px;
    }

    #twitter:hover {
        background-position:-65px -192px;
    }

    #instagram {
        background-position:-15px -232px;
    }

    #instagram:hover {
        background-position:-65px -232px;
    }

    #pinterest {
        background-position:-15px -272px;
    }

    #pinterest:hover {
        background-position:-65px -272px;
    }

    #rss {
        background-position:-15px -312px;
    }

    #rss:hover {
        background-position:-65px -312px;
    }

    #email {
        background-position:-15px -352px;
    }

    #email:hover {
        background-position:-65px -352px;
    }

/* Buttons
---------------------------------------------------------------------------- */

.btn,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    background:#1d1e23;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.15);
    -webkit-box-shadow: inset 0 1px 1px rgba(255,255,255,0.15);
    -moz-box-shadow: inset 0 1px 1px rgba(255,255,255,0.15);
    border:3px solid #f9f9f9;
    border-radius:2px;
    display:inline-block;
    color:#f9f9f9;
    font-weight:600;
    font-size:1.0em;
    padding:5px 10px;
    width:auto;
    cursor:pointer;
    text-decoration:none;
    font-family:"lucida-grande", 'HelveticaNeue', Helvetica, Arial, sans-serif;
    letter-spacing:3px;
    font-weight:200;
    opacity:.9;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
    background:#2a2c33;
}

/* Fix for odd Mozilla border & padding issues */
button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Wells
---------------------------------------------------------------------------- */

.well {
    width:50%;
    margin:0 auto;
    background:rgba(10, 10, 10, .8);
    /*border:10px solid #f9f9f9;*/
    z-index:300;
    position:relative;
    color:#f9f9f9;
    padding:40px;
    line-height:1.3em;
}



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

/* alignment/position */
.abs_left {
    position:absolute;
    left:10px;
}

.abs_right {
    position:absolute;
    right:10px;
}

.pull_left {
    float:left;
    text-align:left;
}

.pull_right {
    float:right;
    text-align:right;
}


.align_left {
    text-align:left;
}

.align_right {
    text-align:right;
}

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


.fixed {
    position:fixed!important;
    top:0;
}

.hide {
    display:none;
}

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

    a:hover {
        color:#bcbcbc;
    }

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

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

/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 959px) {
    #rotator {
        width: 187px;
        margin-right: 280px;
    }
}

/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) {}

/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {
    .container {
        width:auto;
    }
}

/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 767px) {
    .container {
        width:auto;
    }
}

/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {
    .container {
        width:auto;
    }
    #avatar {
        display:none;
    }

    #social_media {
        position:absolute;
        top:10px;
        width:auto;
    }

    #social_media li {
        display:inline-block;
    }

    #sign {
        display:none;
    }

    #rotator {
        display:none;
    }

    #book {
        margin-top:70px;
        margin-left:20px;
        margin-right:auto;
        display:block;
    }

    img {
        display:block;
        margin:30px 0 10px 40px;
        width:400px;
    }

    #cta {
        display:none;
    }

    .pull_right {
        float:none;
    }

    .pull_left {
        float:none;
    }

    .hide {
        display: block !important;
    }

    #affiliate_wrap {
        height:290px;
        position:relative;
        width:479px!important;
    }
    .affiliate li {
        display:block!important;
    }

    .affiliate li a {
        position:absolute;
    }

    #amazon {
        top:25px;
        left:-5px;
    }

    #indie_bound {
        right:-10px;
        bottom:10px;
    }

    #barnes_noble {
        top: 125px;
        left: 15px;
    }

    #penguin {
        right:20px;
        top:10px;
    }

    #bam {
        top:120px;
        right:15px;
    }

    #powels {
        bottom:5px;
        left:-20px;
    }

}

