/*! 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
   ========================================================================== */

.ie87-bg {
    display:block;
    position:fixed;
    top:0;
    left:0;
    min-height:100%;
    min-width:1024px;
    width:100%;
    height:auto;
    margin:0;
    padding:0;
}


html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, 
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul {
    list-style: none;
}

.center_holder {
    margin: 0 auto;
}

.parent {
    position: relative;
}

.clearer {
    clear: both;
}

body {
    background: url(../img/bg.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

    #header, #header_mobile {
        margin-top: 20px;
    }

    #shake {
        margin: 5% 2% 0 0;
        padding: 0 20px;
        background-color: rgba(79, 141, 160, 0.5);
        filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#504f8da0', endColorstr='#504f8da0');
    }

        #shake select, #click_to_shake {
            text-transform: uppercase;
            font-size: 0.95em;
            font-family: Helvetica;
            color: #4f8da0;
        }

        #shake select option ul li {
            color: #4f8da0;
        }

        #shake select {
            width: 100%;
            height: 30px;
            margin: 0 0;
            border: 0;
            padding-left: 10px;
            -webkit-appearance: none;
            -webkit-border-radius: 0px;
            background-image: url(../img/drop_arrow.png);
            background-repeat: no-repeat;
        }

        #shake p {
            padding: 20px 0;
            font-size: 1.2em;
            color: #fff;
            font-family: Caslon-Italic;
        }

        #click_to_shake {
            width: 100%;
            height: 40px;
            margin-bottom: 20px;
            background-color: #fff;
            border: 0;
            -webkit-box-shadow: inset -11px -28px 30px -26px rgba(179, 179, 179, 1);
            -moz-box-shadow:    inset -11px -28px 30px -26px rgba(179, 179, 179, 1);
            box-shadow:         inset -11px -28px 30px -26px rgba(179, 179, 179, 1);
        }

    #globe {
        position: absolute;
        max-width: 39%;
        left: 21%;
        bottom: 5%;
    }

        footer ul li {
            width: 33%;            
            float: left;
        }

            footer ul li a {
                width: 140px;
                display: block;
                margin: 6px auto 0;
            }

        footer #mc_saatchi_se_logo {
            background-image: url(../img/mc_saatchi_mini_logo.png);
            background-repeat: no-repeat;
            background-position: center center;
            height: 24px;
        }
            
            footer #mc_saatchi_se_logo:hover {
                background-image: url(../img/mc_saatchi_mini_logo_hover.png);
            }

        footer #mc_saatchi_logo {
            background-image: url(../img/mc_saatchi_logo.png);
            background-repeat: no-repeat;
            background-position: center center;
            height: 24px;
        }

            footer #mc_saatchi_logo:hover {
                background-image: url(../img/mc_saatchi_logo_hover.png);
            }

        footer #splash_logo {
            background-image: url(../img/splash_logo.png);
            background-repeat: no-repeat;
            background-position: center center;
            height: 24px;
        }

            footer #splash_logo:hover {
                background-image: url(../img/splash_logo_hover.png);
            }

















/* ==========================================================================
   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: 1241px) {
    #header {
        display: block;
    }

    #header_mobile, .mobile {
        display: none;
    }

    #shake {
        width: 30%;
    }

    #mobile_click_to_shake {
        display: none;
    }

    footer {
        background-color: #fff;
        position: absolute;
        width: 100%;
        height: 35px;
        bottom: 0;
    }
}

@media only screen and (max-width: 1240px) and (min-width: 881px) {
    #header {
        display: block;
    }

    #header_mobile, .mobile {
        display: none;
    }

    #shake {
        width: 35%;
        margin-right: 0;
    }

    #globe {
        max-width: 47%;
        left: 15%;
    }

    #mobile_click_to_shake {
        display: none;
    }

    footer {
        background-color: #fff;
        position: absolute;
        width: 100%;
        height: 35px;
        bottom: 0;
    }
}

@media only screen and (max-width: 880px) and (min-width: 741px) { 
    #header {
        display: block;
    }

    #header_mobile, .mobile {
        display: none;
    }

    #shake {
        width: 40%;
        margin-right: 0;
    }

    #globe {
        max-width: 53%;
        left: 5%;
    }

    #mobile_click_to_shake {
        display: none;
    }

    footer {
        background-color: #fff;
        position: absolute;
        width: 100%;
        height: 35px;
        bottom: 0;
    }
}

@media only screen and (max-width: 740px) and (min-width: 641px) {
    #header {
        display: block;
    }

    #header_mobile, .mobile {
        display: none;
    }

    #shake {
        width: 40%;
        margin-right: 0;
    }

    #globe {
        max-width: 57%;
        left: 2%;
    }

    #mobile_click_to_shake {
        display: none;
    }

    footer {
        background-color: #fff;
        position: absolute;
        width: 100%;
        height: 35px;
        bottom: 0;
    }
}

@media only screen and (max-width: 640px) and (min-width: 321px) {
    body { 
        background-image: url(../img/mobile_bg.jpg);
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    #header {
        display: none;
    }

    #header_mobile {
        display: block;
    }

    #shake {
        display: none;
    }

    #globe {
        display: none;
    }

    #mobile_choose_person {
        margin-top: 4%;
        padding: 15px 15px 20px 15px;
        background-color: rgba(79, 141, 160, 0.5);
    }

    #mobile_choose_person p {
        padding: 10px 0; 
        padding-top: 7px;
    }            

        #mobile_choose_person p, #mobile_shake p {            
            font-size: 1.2em;
            color: #fff;
            text-align: center;
            font-family: Caslon-Italic;
        }
        
        #mobile_choose_person button {
            width: 200px;
            left: 50%;
            margin-left: -100px;
            height: 30px;
            z-index: 1;
        }

    #mobile_shake {
        filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#504f8da0', endColorstr='#504f8da0');
    }

        #mobile_shake p {
            margin-top: 6%;
            padding-top: 10%;
        }

    #mobile_globe {
        max-width: 60%;
        position: absolute;
        bottom: 27.5%;
        left: 50%;
        margin-left: -30% !important;
    }

    #mobile_push {
        padding-top: 100%;
    }

    #mobile_click_to_shake {
        width: 100%;
        height: 50px;
        margin: 15px auto 30px auto;
        background-color: #fff;
        border: 0;
        text-transform: uppercase;
        font-size: 0.95em;
        font-family: Helvetica;
        color: #4f8da0;
        -webkit-box-shadow: inset -11px -28px 30px -26px rgba(179, 179, 179, 1);
        -moz-box-shadow:    inset -11px -28px 30px -26px rgba(179, 179, 179, 1);
        box-shadow:         inset -11px -28px 30px -26px rgba(179, 179, 179, 1);
    }

    footer {
        background-color: #fff;
        width: 100%;
        height: 35px;
    }

        footer ul li {
            display: inline-block;
            width: 33%;
            text-align: center;
        }

    .mobile_parent {
        position: relative;
    }

    .bootstrap-select > .btn {
        background-position: 100% -8px;
        font-size: 90%;
    }

    .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default {
        background-position: 100% -8px;
    }
}

@media only screen and (max-width: 360px) {    
    body { 
        background-image: url(../img/mobile_bg.jpg);
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    #header {
        display: none;
    }

    #header_mobile {
        display: block;
    }

    #shake {
        display: none;
    }

    #globe {
        display: none;
    }

    #mobile_choose_person {
        margin-top: 4%;
        padding: 15px 15px 20px 15px;
        background-color: rgba(79, 141, 160, 0.5);
    }

    #mobile_choose_person p {
        padding: 10px 0; 
        padding-top: 7px;
    }            

        #mobile_choose_person p, #mobile_shake p {            
            font-size: 1.2em;
            color: #fff;
            text-align: center;
            font-family: Caslon-Italic;
        }
        
        #mobile_choose_person button {
            width: 200px;
            left: 50%;
            margin-left: -100px;
            height: 30px;
            z-index: 1;
        }

    #mobile_shake {
        filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#504f8da0', endColorstr='#504f8da0');
    }

        #mobile_shake p {
            margin-top: 6%;
            padding-top: 15%;
        }

    #mobile_globe {
        max-width: 80%;
        position: absolute;
        bottom: 27.5%;
        left: 50%;
        margin-left: -40% !important;
    }

    #mobile_push {
        padding-top: 100%;
    }

    #mobile_click_to_shake {
        width: 100%;
        height: 50px;
        margin: 15px auto 30px auto;
        background-color: #fff;
        border: 0;
        text-transform: uppercase;
        font-size: 0.90em;        
        white-space: nowrap;
        font-family: Helvetica;
        color: #4f8da0;
        -webkit-box-shadow: inset -11px -28px 30px -26px rgba(179, 179, 179, 1);
        -moz-box-shadow:    inset -11px -28px 30px -26px rgba(179, 179, 179, 1);
        box-shadow:         inset -11px -28px 30px -26px rgba(179, 179, 179, 1);
    }

    footer {
        background-color: #fff;
        height: 35px;
    }

        footer ul li {
            display: inline-block;
            width: 33%;
        }

            #mc_saatchi_se_logo {
                background-size: 45%;
                margin-left: -18px;
            }

            #mc_saatchi_logo {
                background-size: 65%;
                margin-left: -10px;
            }

            #splash_logo {
                width: 80px;
                background-size: 78%;
                margin-left: 22px;
            }

    .mobile_parent {
        position: relative;
    }

    .bootstrap-select > .btn {
        background-position: 100% -8px;
        font-size: 90%;
    }

    .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default {
        background-position: 100% -8px;
    }

    #mobile_shake p {
        padding-top: 65% !important;
    }
}

@media screen and (-webkit-min-device-pixel-ratio:0) {  /*safari and chrome*/
    select {
        height:30px;
        line-height:30px;
        background:#f4f4f4;
    } 
}
select::-moz-focus-inner { /*Remove button padding in FF*/ 
    border: 0;
    padding: 0;
}
@-moz-document url-prefix() { /* targets Firefox only */
    select {
        padding: 15px 0!important;
    }
}        
@media screen\0 { /* IE Hacks: targets IE 8, 9 and 10 */        
    select {
        height:30px;
        line-height:30px;
    }     
}

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