/*
 * 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;
}

a
{
    color: #00e;
}

a:visited
{
    color: #551a8b;
}

a:hover
{
    color: #06e;
}

/*
 * 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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


















/* ==========================================================================
   Helper classes
   ========================================================================== */

/* Prevent callout */

.nocallout
{
    -webkit-touch-callout: none;
}

.pressed
{
    background-color: rgba(0, 0, 0, 0.7);
}

/* A hack for HTML5 contenteditable attribute on mobile */

textarea[contenteditable]
{
    -webkit-appearance: none;
}

/* A workaround for S60 3.x and 5.0 devices which do not animated gif images if
   they have been set as display: none */

.gifhidden
{
    position: absolute;
    left: -100%;
}

/*
 * Image replacement
 */

.ir
{
    background-color: transparent;
    background-repeat: no-repeat;
    border: 0;
    direction: ltr;
    display: block;
    overflow: hidden;
    text-align: left;
    text-indent: -999em;
}

.ir br
{
    display: none;
}

/*
 * 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 helper
 * Used to contain floats: h5bp.com/q
 */

.clearfix:before, .clearfix:after
{
    content: "";
    display: table;
}

.clearfix:after
{
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 800px)
{
    /* 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 viewports that meet the condition */
}




/* ==========================================================================
   Custom css for this example
   ========================================================================== */

@font-face
{
    font-family: 'BebasNeueRegular';
    src: url('../fonts/BebasNeue-webfont.eot');
    src: url('../fonts/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/BebasNeue-webfont.woff') format('woff'), url('../fonts/BebasNeue-webfont.ttf') format('truetype'), url('../fonts/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

body, html
{
    height: 100%;
    overflow: hidden;
    -webkit-tap-highlight-color: rgba(255,0,0,0);
    box-sizing: border-box;
    color: black;
    font: 100%/1.231 sans-serif;
}


body, html, .wowbook-container
{
    background: black  scroll 50% top;
}


/* hide book to avoid flash of unstyled content */
.js #book
{
    margin-left: -10000px;
    width: 100%;
}

#book.wowbook
{
    /* center horizontally */
    margin: auto;
}


.wowbook-toolbar
{
    margin-top: 1em; /* FIXME */
    box-sizing: content-box !important;
}

.wowbook-controls
{
    border-radius: 6px;
    width: auto;
}

.wowbook-mobile .wowbook-toolbar
{
    margin: 0;
}

.wowbook-mobile .wowbook-controls
{
    border-radius: 0;
    width: 100%;
}



/* ------------ */


.wowbook
{
    color: #333;
}

.wowbook-page-content
{
    background: white;
    font-family: "BebasNeueRegular" ,sans-serif;
}
.wowbook-page-content h1, .wowbook-page-content h2
{
    font-family: 'BebasNeueRegular' , sans-serif;
    font-size: 38px;
    color: black;
}
.wowbook-page-content h1
{
    font-family: 'BebasNeueRegular' , sans-serif;
    font-size: 32px;
    color: white;
    background: #aa2b2b;
    line-height: 1.5;
    padding: 5px 5px 0px;
    margin: 0;
}
.wowbook-page-content .subtitle
{
    font-family: 'BebasNeueRegular' , sans-serif;
    font-size: 18px;
    color: black;
    line-height: 1.5;
    padding: 5px 5px 0px;
    font-style: italic;
    margin: 0;
}

.wowbook-page p, .wowbook-page ul
{
    font-family: "News Cycle" ,sans-serif;
    font-size: 24px;
    margin: 0;
    margin-top: 0.5em;
}
.wowbook-page ul
{
    padding: 0;
}
.wowbook-page li
{
    list-style: none;
}



.wowbook-left .wowbook-gutter-shadow
{
    background-image: url('../images/page_left_background.png');
    opacity: 0.5;
    width: 60px;
}
.wowbook-right .wowbook-gutter-shadow
{
    background-image: url('../images/page_right_background.png');
    background-position: 0 0;
    width: 75px;
}

/* ------------ */

a, a:active, a:visited
{
    ttext-decoration: none;
}

h1, h2
{
    font-size: 32px;
    font-weight: normal;
    font-family: 'News Cycle' , sans-serif;
    text-shadow: 0 1px 0 rgba(10, 10, 10, 0.5);
    margin-top: 1em;
    margin-bottom: 0.5em;
}
h2
{
    font-size: 24px;
    margin-bottom: 0.5em;
}

.wowbook-page h1
{
    font-family: 'BebasNeueRegular' , sans-serif;
    font-size: 32px;
    color: white;
    background: #aa2b2b;
    line-height: 1.5;
    padding: 5px 5px 0px;
    margin: 0;
}
.wowbook-page .subtitle
{
    font-family: 'BebasNeueRegular' , sans-serif;
    font-size: 18px;
    color: black;
    line-height: 1.5;
    padding: 5px 5px 0px;
    font-style: italic;
}

.bg-double-page
{
    background: white no-repeat left top;
    background-size: 200% 100%;
}
.wowbook-right .bg-double-page
{
    background-position: right top;
}








/* COVER */
#cover
{
    padding: 0;
    position: relative;
}


/* FLIPPING EFFECTS */
.wowbook-page .pagefx p
{
    font-size: 22px;
}
.wowbook-page .pagefx .subtitle
{
    margin-top: 0;
    font-size: 18px;
}
.wowbook-page .pagefx h1
{
    font-size: 48px;
    color: #aa2b2b;
    background: none;
    line-height: 0.7;
    padding: 5px 0px 0px;
    margin: 0;
}


/* EASY */
/*.easy {
	background: white url("../images/easy.png") no-repeat left top;
	background-size: 200% 100%;
	h1, p, .subtitle { display: none; }
	zoom: 1;
	ffont-size: 1.5em;
	ffont-family: lato;
}

.wowbook-right .easy {
	background-position: right top;
}*/

.responsive h1
{
    color: white;
}


/* DESIGN */

.design
{
    background-image: url("../images/design.png");
}
.design h1
{
    background: none;
    color: #88bfbf;
    font-size: 144px;
    line-height: 0.8;
    text-indent: -10000px;
    text-shadow: 1px 1px 0px #447f7f;
}
.design .subtitle
{
    color: #333;
    font-family: 'News Cycle' ,sans-serif;
    font-style: normal;
    font-size: 30px;
    position: absolute;
    top: 27%;
}

.wowbook-right .design p
{
    text-align: right;
    position: absolute;
    bottom: 1.5em;
    font-size: 30px;
    padding-right: 1em;
    margin-bottom: 0;
}


/* THUMBNAILS */
.thumbnails p
{
    font-size: 16px;
}
.thumbnails h2
{
    font-size: 20px;
}
.thumbnails h1
{
    color: white;
}

#thumbs_holder
{
    position: absolute;
    top: 50%;
    width: 100%;
    height: auto;
    left: 0;
    z-index: 10000;
}
#thumbs_holder .wowbook-thumbnails
{
    background: none repeat scroll 0 0 #222;
    background: none repeat scroll 0 0 rgba(0,0,0, 0.8);
    border-top: 1px solid white;
    border-top-color: rgba(255,255,255,0.5);
    border-bottom: 1px solid gray;
    border-bottom-color: rgba(64,64,64,0.5);
    box-shadow: 0 0 20px rgba(170, 43, 43, 1);
    padding: 10px 0;
    position: relative;
}
#thumbs_holder .wowbook-button
{
    background-color: #AA2B2B;
}

.wowbook-thumbnails
{
    background: none repeat scroll 0 0 #888;
    background: none repeat scroll 0 0 rgba(128, 128, 128, 0.48);
    border-top: 1px solid white;
    border-top-color: rgba(255,255,255,0.5);
    border-bottom: 1px solid gray;
    border-bottom-color: rgba(64,64,64,0.5);
    box-shadow: 0 0 15px rgba(128, 128, 128, 0.48);
}
#thumbs_type, #thumbs_position, #thumbs_size
{
    text-align: center;
}
#thumbs_position button
{
    width: 49%;
}



/* ZOOM */
#zoom-feature
{
    background: white url("../images/zoom.jpg") no-repeat;
    background-size: 200% 100%;
}
#zoom-feature h1
{
    background: none;
    color: #333;
    font-size: 100px;
    line-height: 1.1;
    padding: 5px 0px 0px;
    text-align: right;
}

#zoom-feature2
{
    background: white url("../images/zoom.jpg") no-repeat;
    background-size: 200% 100%;
    background-position: right top;
}

/* DEEP LINKING */
.deeplinking
{
    background-image: url("../images/chain.jpg");
    background-size: 200% 100%;
    color: white;
}
.deeplinking h1
{
    background: #3d567d !important;
}
.deeplinking a, .deeplinking a:active, .deeplinking a:visited
{
    color: #f8f8f8;
    text-decoration: underline;
}


/* PAGE NUMBER AND SLIDESHOW */
.numbering
{
    background: url("../images/numbering.png") white no-repeat;
    background-size: 100% 100%;
}
.numbering .wowbook-page-number
{
    text-indent: 100%;
    overflow: hidden;
}
.numbering h1
{
    color: #AA2B2B;
    background: none;
    font-size: 40px;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
}
.numbering p
{
    font-size: 23px;
}

.slideshow h1
{
    background: none;
    color: #AA2B2B;
    font-size: 40px;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
}
.slideshow a
{
    display: block;
    text-align: center;
}


/* FLASH */
.flash
{
    background: url("../images/flash.png") white no-repeat;
    background-size: 200% 100%;
    padding-top: 42%; /* 170px/400px */
}
.flash p
{
    font-size: 20px;
    padding: 0.7em;
}
.flash h1
{
    display: none;
}

.flash-demo
{
    background: white url("../images/flash.png") no-repeat scroll right top;
    background-size: 200% 100%;
    padding-top: 25%;
    text-align: center;
}

/* MORE */
.more
{
    background-image: url("../images/more.png");
    padding-top: 30px;
}
.more ul
{
    margin-left: 1em;
}
.more li
{
    margin-bottom: 0.7em;
}


/* LAST COVER */
.last_cover
{
    padding: 0;
}
.pagefx img
{
    width:100%;
     height:100%;
    }
