/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.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 {
    color: #00587B;
    font-size: 1em;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
    font-size: 62.5%; /* normalize 1em font size to 10px */
    background-image: -webkit-linear-gradient(#FFFFFF, #97A9B2);
    background-image: -o-linear-gradient(#FFFFFF, #97A9B2);
    background-image: linear-gradient(#FFFFFF, #97A9B2);
}

/* Background gradient */
#app {
    /*background-image: -webkit-linear-gradient(#FFFFFF, #97A9B2);*/
    /*background-image: -o-linear-gradient(#FFFFFF, #97A9B2);*/
    /*background-image: linear-gradient(#FFFFFF, #97A9B2);*/
}

/* The scenes */
div.section {
    text-align: center;
}
div.scene-container {

}
.line-1 {
    font-size: 4em;
}
.animate {
    position: relative;
    display: inline;

    /* Activate hardware accelleration */
    -webkit-transform: translate3d(0,0,0);
}




/* New stuff */
.skrollr-deck {
    padding: 0;
    margin: 0;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}
.row {
    width: auto;
    border: 1px solid blue;
}
.flex-item {
    background-color: tomato;
    line-height: 20px;
    color: white;
    font-weight: bold;
    font-size: 2em;
    text-align: center;
}

/* Navigation */
#app-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
#app-nav li {
    list-style-type: none;

    background-color: transparent;
    width: 8px;
    height: 8px;
    opacity: .3;

    margin: 5vh 0 5vh 0;

    cursor: pointer;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;

    left: -50px;
    position: relative;

    transition:opacity 0.5s ease;
    transition:background 0.5s ease;

    /*transition:all ease 500ms*/
    /*-webkit-transition:all ease 500ms*/

}
#app-nav li.show {
    background-color: #002F4C;
    left: 0px;

    -moz-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}
/* This class is added dynamically by jQuery
#app-nav li.active{
    opacity: 1;
}
*/

.small {
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-size: 3em;
    line-height: 1em;
    display: block;
    margin: 0;
}
.highlight {
    font-family: 'Lato', sans-serif;
    font-size: 8em;
    font-weight: 700;
    line-height: .8;
    text-transform: uppercase;
    display: block;
    margin: 0;

    /* Color gradient - webkit only with fallback color */
    color: #00587B;
    background: -webkit-linear-gradient(#007297, #00587B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.highlight-comma {
    font-size: 70%;
    line-height: 1;
}

.phone {
    font-size: 5em;
    font-weight: 900;
}

.italic {
    font-style: italic;
}

.centered {
    text-align: center;
}
.grad-1 {
    /* Color gradient - webkit only with fallback color */
    color: #137093;
    background: -webkit-linear-gradient(#137093, #146487);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.grad-2 {
    /* Color gradient - webkit only with fallback color */
    color: #156083;
    background: -webkit-linear-gradient(#156083, #175477);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo {
    /*position: absolute;*/
    position: fixed;
    top: 2em;
    left: 2em;
}
.logo img {
    width: 7em;
}
header {
    width: 100%;
    position: fixed;
    top: 2em;
}
.linkedin_link {
    display: inline-block;
    cursor: pointer;
    border: 1px #B6C8D3 solid;
    height: 26px;

    margin: 0 10px 0 10px;

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.linkedin_link .linkedin_logo_small {
    float: left;
    width: 26px;
    height: 100%;
    border-right: 1px #B6C8D3 solid;
}
.linkedin_link .linkedin_logo_small img {
    height: 14px;
    width: 14px;
}
.linkedin_link .linkedin_name {
    float: left;
    line-height: 26px;
    color: #205678;
    font-family: 'Merriweather', serif;
    font-size: 16px;

    padding: 0 11px 0 11px;
}

#rotate_mobile {
    /*background: #006B8C url('../img/rotate_mobile.png') no-repeat center center fixed;*/
    /*-webkit-background-size: cover;*/
    /*-moz-background-size: cover;*/
    /*-o-background-size: cover;*/
    /*background-size: cover;*/

    /*background-attachment: fixed;*/

    display: none;
    background-color: #006B8C;
    z-index: 3;
}
#rotate_mobile img {
    margin: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    width: 100%;
}
#loading_screen {
    background-color: #97A9B2;
    transition:background 3000ms ease;
}
.transparent {
    background-color: transparent;
}
.m-top-10 {
    margin-top: 10px;
}
.m-bot-10 {
    margin-bottom: 10px;
}
.overlay {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
}
#mobile_footer_fix {
    width: 100%;
}
.mobile_fix_after {
    height: 69px;
    background-color: #97A9B2;
}














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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.block {
    display: block;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 1000px) {
    body {
        font-size: 100% !important
    }
}
@media only screen and (max-width: 1000px) {
    .linkedin_link .linkedin_logo_small img {
        margin-top: 5px;
    }
    .logo img {
        width: 11em;
    }
}
@media only screen and (max-width: 630px) {

    body {
        font-size: 50% !important
    }
}
@media only screen and (max-width: 540px) {
    #app-nav {
        padding: 0 0 0 16px;
    }
    #app-nav li {
        width: 4px;
        height: 4px;
    }
    body, phone {
        font-size: 40% !important
    }
    .linkedin_link {
        display: block;
        max-width: 145px;
        margin: 0 auto;
        margin-bottom: 5px;
    }
}
@media only screen and (max-width: 400px) {

    body {
        font-size: 30% !important
    }
}


@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}





/**
 * SCENE 1
 */
#scene-1 .small {
    font-size: 6em;
}
.next {
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1.6em;
    /*color: #6D6D6D;*/
    cursor: pointer;

    opacity: 0;

    position: absolute;
    top: 0;
    width: 60%;
    left: 50%;
    margin-left: -30%;

    transition: opacity 500ms linear;

}
.next svg {
    width: 1em;
    height: 1em;
}

/**
 * SCENE 2
 */
#scene-2 .small-1 {
    margin-right: 7.6em;
}
#scene-2 .small-2 {
    margin-left: 6em;
}

/**
 * SCENE 3
 */
#scene-3 .small-1 {
    margin-right: 5em;
}
#scene-3 .small-2 {
    margin-right: 7em;
}
#scene-3 .big-2 {
    margin-left: 1.2em;
}

/**
 * SCENE 4
 */
#scene-4 .small-1 {
    margin-right: 4em;
}
#scene-4 .big-2 {
    margin-left: 0.8em;
}

/**
 * SCENE 5
 */
#scene-5 .small-1 {
    margin-right: 9.4em;
}
#scene-5 .small-2 {
    margin-right: 6.8em;
}
#scene-5 .big-2 {
    margin-right: 1.4em;
}
#scene-5 .small-3 {
    margin-left: 8em;
}
#scene-5 .small-4 {
    margin-left: 3em;
}

/**
 * SCENE 6
 */
#scene-6 .small-2 {
    margin-left: 2em;
}
#scene-6 .big-2 {
    margin-right: 1.8em;
}
#scene-6 .small-3 {
    margin-left: 3.4em;
}
#scene-6 .small-4 {
    margin-left: 6.4em;
}
#scene-6 .subtitle {
    margin-top: -3.4em;
}

/**
 * SCENE 7
 */
#scene-7 {
    margin-left: -40px;
}
#scene-7 .small-1 {
    margin-right: 2em;
}
#scene-7 .small-2 {
    margin-left: 1.8em;
}
#scene-7 .small-3 {
    margin-right: 1.8em;
}
#scene-7 .big-2 {
    margin-left: 1.7em;
}

/**
 * SCENE 8
 */
#scene-8 .small-2 {
    margin-right: 2.6em;
}
#scene-8 .small-3 {
    margin-left: 5em;
}
#scene-8 .small-4 {
    margin-left: 7.6em;
}

/**
 * SCENE 9
 */
#scene-9 .small-1 {
    margin-right: 3.6em;
}
#privacy-statement {
    display: block;
    position: absolute;
    bottom: 2em;
    width: 100%;
    text-align: center;
}
#privacy-statement a {
    color: #00587B;
    font-size: 1em;
}