/e! HTML5 Boilerplate v4.3.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,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

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

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body, html {
    height:100%;
}
.disable-hover,
.disable-hover * {
    pointer-events: none !important;
}
/*header {*/
/*    height:100px;*/
/*    width:100%;*/
/*    margin:0 auto 1em;*/
/*    border-bottom:2px solid #B0000C;*/
/*}*/
/*History Design Issue */
.primary-nav { background-color: #fff; }
main {
    height:100%;
}
main .container {
    min-width:960px;
    margin:auto;
    background:#fff;
    position:relative;
    height:100%;
}
img {
    max-width:100%;
}
/*footer {
    height:50px;
    width:960px;
    margin:1em auto 0;
    padding-top:2em;
    text-align:center;
    border-top:1px solid #e3e3e3;
}*/
header.dark .container{
    margin-bottom:2px;
}
/* some debug stuff */
.scrollpos {
	position: fixed;
	z-index: 100;
	background: #ffffff;
	top: 0;
	right: 0;
}


/* Specific slides */

#slide0 {
    background:url('../img/history/start-curtain.jpg') no-repeat;
    background-size:cover;
    background-position:center center;
    position:fixed;
    width:100%;
    height:100%;
    margin-top: -7px;
}
@media (max-width:767px){
    #slide0{
        margin-top:-21px;
    }
}
#slide1 {
    background:url('../img/history/RD_history_theStory_03_back.jpg') no-repeat;
    background-size:cover;
    background-position:center center;
    width:100%;
    height:120%;
    top:-20%;
}
#slidefloat1 {
    right: 7%;
    /* margin-left:-379px; */
    top:5%;
    position:fixed;
    background:url(../img/history/slide-1-float.png) no-repeat;
    height:120%;
    width:759px;
}
#slide2 {
    background:url('../img/history/RD_history_theStory_05_back.jpg') no-repeat;
    background-position:left center;
    background-size: cover;
    width:100%;
    height:100%;
}
#slidefloat2 {
    right:10%;
    top:10%;
    background:url(../img/history/slide-2-float.png) no-repeat;
    height:150%;
    width:516px;
}
#slide3 {
    background:url('../img/history/RD_history_theStory_06_back.jpg') no-repeat;
    background-position:center center;
    background-size: cover;
    width:100%;
    height:200%;
}
#slidefloat3a {

}
#slidefloat3b {
    right:1%;
}
#slide4 {
    background:url('../img/history/RD_history_theStory_07_back.jpg') no-repeat;
    background-position:right center;
    background-size: cover;
    width:100%;
    height:150%;
}
#slidefloat4 {
    top: 10%;
    left: 81px;
}
#slide5 {
    background:url('../img/history/RD_history_theStory_08_back.jpg') no-repeat;
    background-position:center center;
    background-size: cover;
    width:100%;
    height:120%;

}
#slidefloat5 {
    background:url(../img/history/slide-5-float.png) no-repeat;
    height:100%;
    width:516px;
    top:10%;
}
#slide6 {
    background:url('../img/history/RD_history_theStory_09_back.jpg') no-repeat;
    background-position:center center;
    background-size: cover;
    width:100%;
    height:100%;
}
#slidefloat6 {
    left:50%;
    margin-left:-258px;
    background:url(../img/history/slide-6-float.png) no-repeat;
    height:100%;
    width:516px;
    top:5%;
}
#slide7 {
    background:url('../img/history/RD_history_theStory_10_back.jpg') no-repeat;
    background-position:center center;
    background-size: cover;
    width:100%;
    height:100%;

}
#slidefloat7 {
    left:50%;
    margin-left:-258px;
    background:url('../img/history/slide-7-float.png') no-repeat;
    width:516px;
    height:100%;
    background-position:center center;
}
#slide8 {
    background:url('../img/history/RD_history_theStory_11_back.jpg') no-repeat;
    background-position:center center;
    background-size: cover;
    width:100%;
    height:100%;
}
#slidefloat8 {
    left:50%;
    margin-left:-252px;
    background:url('../img/history/slide-8-float.png') no-repeat;
    background-position:center center;
    width:505px;
    height:100%;
}
#slide9 {
    background:url('../img/history/RD_history_theStory_12_back.jpg') no-repeat;
    background-position:center center;
    background-size: cover;
    width:100%;
    height:100%;
}
#slidefloat9 {
    left:50%;
    margin-left:-258px;
    width:516px;
    height:100%;
    background:url(../img/history/slide-9-float.png) no-repeat;
    background-position:center center;
}
#slide10 {
    background:url('../img/history/RD_history_theStory_13_back.jpg') no-repeat;
    background-position:center center;
    background-size: cover;
    width:100%;
    height:100%;
}
#slidefloat10 {
    background:url(../img/history/slide-10-float.png) no-repeat;
    background-position:center center;
    width:468px;
    height:100%;
    margin-left:-234px;
    left:50%;
}
#slide11 {
    background:url('../img/history/RD_history_theStory_14_back.jpg') no-repeat;
    background-position:center center;
    background-size: cover;
    width:100%;
    height:100%;
}
#slidefloat11 {
    background:url('../img/history/slide-11-float.png') no-repeat;
    background-position:center center;
    left: 50%;
    height: 100%;
    width: 516px;
    margin-left: -258px;
}
#slide12 {
    background:url('../img/history/RD_history_theStory_15_back.jpg') no-repeat;
    background-position:right center;
    background-size: cover;
    width:100%;
    height:120%;
}
#slidefloat12 {
    background:url('../img/history/slide-12-float.png') no-repeat;
    background-position:center center;
    left:50%;
    height:100%;
    width:622px;
    margin-left:-311px;
}
#slide13 {
    background:#fff;
    background-position:center center;
    background-size: cover;
    width:100%;
    height:100%;
}
#slidefloat13 {
    position:absolute;
    top:50%;
    left:50%;
    margin-left:-324px;
    margin-top:-350px;
}
/*frakking slideshow thing*/

.slide {
    background-size: cover;
}
#story {
    background-image: url('../img/history/background.jpg');
    height:100%;
    min-height:700px;
    min-width:1400px;
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
}
.timeline-container {
    width:100%;
    position:absolute;
    top:40%;
    margin-top:-273px;
    box-shadow:0px 5px 10px #ccc;
}
.timeline-container .bx-wrapper {
    border-bottom:5px solid #b71600;
}
.timeline {
    width:100%;
    height:408px;
    background:#fff;
    position:relative;
    margin:0;
    z-index:2;
    overflow:hidden;
}
.timeline li {
    padding-right:9px;
    background: url(../img/history/vert_divider.gif) no-repeat center right 5px;
}
.controls-container {
    background:url('../img/history/bottom_bar.png');
    height:43px;
    width:100%;
    position:relative;
    z-index:1;
}
.controls {
    width:164px;
    margin:auto;
    height:100%;
}
.bx-prev,
.bx-next {
    width:82px;
    height:100%;
    background-image:url('../img/history/arrows.png');
    display:block;
    background-repeat:no-repeat;
    float:left;
}
.bx-prev {
    background-position:0 0;
}
.bx-next {
    background-position:-82px 0;
}
.slide-over {
    position:absolute;
    top:0;
    right:0;
    left:0;
    bottom:0;
    max-width:100%;
    opacity:0;
    transition:opacity ease 500ms;
}
.inner-container {
    position:relative;
}
.slide-over:hover,
.slide-over:active {
    opacity:1;
}
.side-nav {
    position: fixed;
    z-index: 1;
    top: 146px;
    width: 100px;
    height: 300px;
    padding:0;
    background: #fff;
    box-shadow: 0px 0px 7px rgba(0,0,0,.35);
    opacity:.25;
    -webkit-transition: all .5s ease;
    transition: all .5s ease;
}
.side-nav:hover {
    opacity:1;
}
.side-nav ul {
    margin: 0;
    padding: 0;
}

.side-nav li {
    width: 100%;
    height: 100px;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #c9cacc;
}
.disable-hover .side-nav,
.disable-hover .side-nav a {
    pointer-events: auto !important
}
.side-nav li a {
    width: 100%;
    height:100%;
    display: block;
    text-align: center;
    padding: 40px 0;
    color: #57585a !important;
    font-size: 14px;
    text-transform: uppercase;
}
.history-prev-button .icon {
    background-image: url(../img/history/history-arrows.png);
    background-repeat: no-repeat;
    background-position: 0 0;
    width: 16px;
    height: 8px;
    display:inline-block;
}
.history-next-button .icon{
    background-image: url(../img/history/history-arrows.png);
    background-repeat: no-repeat;
    background-position: 0 100%;
    width: 16px;
    height: 8px;
    display:inline-block;
}

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

/*
 * 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.
   These 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: 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;
    }
}
.slide, .slidefloat {
    position: fixed;
   /* This reduced screen jank */
   -webkit-transform: translate3d(0,0,1px);
   -moz-transform: translateZ(0);
   -ms-transform: translateZ(0);
   -o-transform: translateZ(0);
   transform: translate3d(0,0,1px);
   -webkit-backface-visibility: hidden;
   -moz-backface-visibility: hidden;
   -ms-backface-visibility: hidden;
   backface-visibility: hidden;
   -webkit-perspective: 1000;
   -moz-perspective: 1000;
   -ms-perspective: 1000;
   perspective: 1000;
   /* Other transform properties here */
}
#skrollr-body {
    width:100%;
}
.main.col1-layout {
    width:100% !important;
    height: 100%;
}
.widget.widget-banner {
    display:none !important;
}

.slide {
    position:fixed;
    top:0px;
}
.slidefloat {
    position:fixed;
    top:0px;
}
.timeline-container {
    position:fixed;
    top:50%;
}
body > div.wrapper.wrapper-messages,
body > div.wrapper.wrapper-messages > div {
    height: 100%;
}

/*.footer-container-wrapper {
    position:relative;
    z-index: 99999;
    background:#fff;
} 
/* For terms popup assembla id #537 */
.footer-container-wrapper {
    background: none repeat scroll 0 0 #fff;
    position: absolute;
    width: 100%;
	
}
/* End terms popup */

@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 667px) {
  .cms-index-defaultnoroute .footer-container-wrapper {
    position: relative;
  }
}
body.history-page .footer{
    position:absolute;
    bottom: -1%;
}