/*! 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 {
                background-color: #e7e7e7;
                margin: 0 auto;
                padding: 1em 1em 10em;
                width: 970px;
            }

            .section {
                background-color: #F9F9F9;
                border: 1px solid #ddd;
                clear: both;
                margin: 0 0 2em 0;  
                position: relative;
                height: 512px;
            }

            #section-0 {
                background-image: url(../images/page-top,jpg);
                background-repeat:  no-repeat;
                border: none;
                height: 887px;
                margin: 0 auto 2em;
                width: 970px;
            }

            #section-2 {
                background-image: url(../images/page-bottom.jpg);
                background-repeat:  no-repeat;
                border: none;
                height: 1830px;
                margin: 0 auto 2em;
                width: 970px;
            }

            #slider {
/*                box-sizing: border-box;
                -moz-box-sizing: border-box;
*/                
                height: 100%;
                overflow: hidden;
                position: relative;
                width: 100%;
            }

            .scene {
                clear: both;
                height: 100%;
                left: 0;
                opacity: 0;
                overflow: hidden;
                position: absolute;
                top: 0;
                width: 100%;
                -webkit-transition: all 0.5s ease-out;
                -moz-transition: all 0.5s ease-out;
                -ms-transition: all 0.5s ease-out;
                -o-transition: all 0.5s ease-out;
                transition: all 0.5s ease-out;
            }

            .scene.active {
                opacity: 1;
            }

/*            .bg {
                background-color: transparent; 
                background-position: center center;
                -webkit-background-size: 100% 100%;
                -moz-background-size: 100% 100%;
                -o-background-size: 100% 100%;
                background-size: 100% 100%;
                box-sizing: border-box;
                -moz-box-sizing: border-box;
                display: none;
                height: 100%;
                left: 0;
                position: absolute;
                width: 100%;
            }
*/

            .bg {
                box-sizing: border-box;
                -moz-box-sizing: border-box;
                height: auto;
                left: 0;
                position: absolute;
                width: 100%;
                -webkit-transition: all 0.01s;
                -moz-transition: all 0.01s;
                -ms-transition: all 0.01s;
                -o-transition: all 0.01s;
                transition: all 0.01s;
                -webkit-transform: translate3d(-100%,0,0);
                -moz-transform: translate3d(-100%,0,0);
                -ms-transform: translate3d(-100%,0,0);
                transform: translate3d(-100%,0,0);
            }

            .show {
                -webkit-transform: translate3d(0%,0,0);
                -moz-transform: translate3d(0%,0,0);
                transform: translate3d(0%,0,0);
            }

            .scene .bg_container {
                height: 100%;
                left: 0;
                opacity: 1;
                position: absolute;
                top: 100%;
                width: 100%;
                -webkit-transition: top 0.5s ease-out, opacity 0.1s;
                -moz-transition: top 0.5s ease-out, opacity 0.1s;
                -ms-transition: top 0.5s ease-out, opacity 0.1s;
                -o-transition: top 0.5s ease-out, opacity 0.1s;
                transition: top 0.5s ease-out, opacity 0.1s;
            }

            .scene.active .bg_container {
                top: 0%;
            }

            .scene.skip .bg_container {
                opacity: 0;
            }
          
            #control {
                bottom: 1%;
                box-sizing: border-box;
                -moz-box-sizing: border-box;
                height: 45px;
                left: 0;
                position: absolute;
                width: 100%;
            }

            #nodes {
                background-image: url(../images/slider-0.png);
                background-repeat:  no-repeat;
                height: 45px;
                margin: 0 auto;
                position: relative;
                width: 275px;
            }

            #nodes .node {
                background-color: transparent;
                box-sizing: border-box;
                -moz-box-sizing: border-box;
                display: inline-block;
                height: 100%;
                margin: 0;
                width: 22%;
                cursor: pointer;
                float: left;
            }

            #nodes .node:first-child {
                margin-left: -5%;
            }

            #nodes .node:last-child {
                margin-right: -5%;
            }
/*
            #handle {
                position: absolute;
                left: -90%;
            }
*/
            #handle, #throb {
                background-image: url(../images/scrubber.png);
                background-repeat: no-repeat;
                height: 37px;
                left: 0;
                overflow: hidden;
                position: absolute;
                top: -4px;
                width: 30px;                
                z-index: 1;
            }

            #throb {
                display: none;
            }

            #throb.throbbing {
                display: block;
                -webkit-animation-name:             throb; 
                -webkit-animation-duration:         3s; 
                -webkit-animation-iteration-count:  infinite;
                -webkit-animation-timing-function: ease-out;
                animation-name:             throb; 
                animation-duration:         3s; 
                animation-iteration-count:  infinite;
                animation-timing-function: ease-out;
            }

            @-webkit-keyframes throb {
                from {
                    -webkit-transform: scale(1);
                    -moz-transform: scale(1);
                    -webkit-transform-origin: center;
                    -moz-transform-origin: center;
                    transform: scale(1);
                    transform-origin: center;
                    opacity: 1;
                }
                to { 
                    -webkit-transform: scale(1.5);
                    -moz-transform: scale(1.5);
                    -webkit-transform-origin: center;
                    -moz-transform-origin: center;
                    transform: scale(1.5);
                    transform-origin: center;
                    opacity: 0;
                }
            }

             #slider .info {
                box-sizing: border-box;
                -moz-box-sizing: border-box;
                padding: 1.5em 2em 0 0.9em;
                position: absolute;
                top: 0;
                width: 100%;
                z-index: 1;
            }

            #slider .info h1 {
                border-bottom: 1px solid yellow;
                color: #333;
                display: inline-block;                
                font-size: 1.22em;
                margin: 0;
                padding-bottom: 0.1em;
            }

            #slider .info h2 {
                color: #333;
                display: block;                
                font-size: 0.9em;
                font-weight: normal;
                margin: 0.5em 0 0;
            }

            #control .links {
                color: #999;
                display: block;
                position: absolute;
                left: 0.9em;
                bottom: 0.75em;
            }

            #control .links a {
                color: #015fb5;
                font-size: 0.8em;
                font-weight: bold;
                text-decoration: none;
            }

            /* loading animation */
            /* Start by setting display:none to make this hidden.
               Then we position it in relation to the viewport window
               with position:fixed. Width, height, top and left speak
               speak for themselves. Background we set to 80% white with
               our animation centered, and no-repeating */
            .modal {
                display:    none;
                position:   absolute;
                z-index:    1000;
                top:        0;
                left:       0;
                height:     100%;
                width:      100%;
                background: #F9F9F9 
                            url(../images/loading.gif) 
                            50% 50% 
                            no-repeat;                
            }

            /* When the body has the loading class, we turn
               the scrollbar off with overflow:hidden */
            #slider.loading {
                overflow: hidden;
            }

            /* Anytime the body has the loading class, our
               modal element will be visible */
            #slider.loading .modal {
                display: block;
            }

            .ui a {
                border-radius: 50%;
                cursor: pointer;
                display: block;
                opacity: 0;
                position: absolute;
                z-index: 1;

                -webkit-transition: all 0.5s ease-out, opacity 0.02s;
                -moz-transition: all 0.5s ease-out, opacity 0.02s;
                -ms-transition: all 0.5s ease-out, opacity 0.02s;
                -o-transition: all 0.5s ease-out, opacity 0.02s;
                transition: all 0.5s ease-out, opacity 0.02s;

                -webkit-transform: scale3d(0,0,0);
                -moz-transform: scale3d(0,0,0);
                -moz-transform-origin: center;
                transform: scale3d(0,0,0);
                transform-origin: center;
          }

            .ui a.active {
                opacity: 1;
                -webkit-transform: scale3d(1,1,1);
                -webkit-transform-origin: center;
                -moz-transform: scale3d(1,1,1);
                -moz-transform-origin: center;
                transform: scale3d(1,1,1);
                transform-origin: center;
            }

            #ui-101 { /* play */
                background: url(../images/ui-101.png) center no-repeat;
                border-radius: 50%;
                top: 72px;
                left: 580px;
                height: 330px;
                width: 330px;
            }

            #ui-101:hover { /* play */
                background: url(../images/ui-101_over.png) center no-repeat;
            }

            #ui-201 { /* play */
                background: url(../images/ui-201.png) center no-repeat;
                border-radius: 50%;
                top: 72px;
                left: 580px;
                height: 330px;
                width: 330px;
            }

            #ui-201:hover { /* play */
                background: url(../images/ui-201_over.png) center no-repeat;
            }

            #ui-102, #ui-202 { /* replay */
                background: url(../images/ui-102.png) no-repeat;
                top: 330px;
                left: 840px;
                height: 44px;
                width: 44px;
            }

            #ui-102:hover, #ui-202:hover { /* play */
                background: url(../images/ui-102_over.png) no-repeat;
            }

            #ui-401 {
                height: 106px;
                left: 283px;
                top: 105px;
                width: 106px;
            }

            #ui-401:hover {
                background: url(../images/ui-401.png) no-repeat;
            }

            #ui-402 {
                height: 106px;
                left: 434px;
                top: 105px;
                width: 106px;
            }

            #ui-402:hover {
                background: url(../images/ui-402.png) no-repeat;
            }

            #ui-403 {
                height: 106px;
                left: 588px;
                top: 105px;
                width: 106px;
            }

            #ui-403:hover {
                background: url(../images/ui-403.png) no-repeat;
            }




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