/*! HTML5 Boilerplate v5.0.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 {
    font-size: 10px;
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    height: 100%;
    width: 100%;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

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


html {
    width: 100%;
    height: 100%;
/*    background:url('../img/bg.jpg') no-repeat center center fixed;
*/
    background-color: #222222;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

a, a:visited {
    color: #fff;
}

.rollover {
    transition: all 0.5s;
}

.rollover:hover {
    color:#ACACAC;
}

.container {
    max-width: 915px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    text-align: center;
    color: #fff;
}
#video {
     max-width: 915px;
     width: 100%;
     margin: 60px 0;
     margin-left: auto;
     margin-right: auto;
}

.logo {
    margin: 0 auto;
    margin-top: 10%;
    margin-bottom: 10%;
    display: block;
    width: 259px;
    height: 137px;
    background: url(../img/logo.png);
}

.donation-page .logo {
    margin: 0 auto;
    margin-top: 10%;
    margin-bottom: 10%;
    display: block;
    width: 199px;
    height: 105px;
    background: url(../img/logo.png);
    background-size: cover;
}

.uppertext {
    font-size: 2rem;
    font-weight: 400;
}

.donation-page .uppertext {
    text-align: left;
}

.donation-page .right p:first-child{
    margin-top: 0;
}

.padding {
    height: 10px;
    width: 100%;
    display: block;
}


.left,.right {
    max-width: 410px;
    width: 100%;
}

.left {
    display: inline-block;
    float: none;
}

.right {
    float: right;
}

.ita {
    font-style: italic;
}
.overflow {
    overflow: hidden;
    width: 100%;
    margin-bottom: 50px;
}

input {
    -webkit-border-radius: 0;
}

.charity {
    margin-bottom: 75px;
}

.space-1 {
    margin-bottom: 80px;
}

.margin-90 {
    margin-bottom: 90px;
}

.charity-text{
    font-size: 1.4rem;
    margin-right: auto;
    margin-left: auto;
}

.donation-page .charity-text{
    font-size: 2rem;
}

.connect {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: inline-block;
    max-width: 410px;
    height: 36px;
    width: 100%;
    padding: 7px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    text-align: center;
    outline: none;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.5s;
}
.connect:hover, .signup:hover, .donation-amount:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.5s;
}

#mc-embedded-subscribe {
    vertical-align: top;
}

.emailform {
    display: inline-block;
    max-width: 302px;
    height: 36px;
    width: 100%;
    padding: 8px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid #fff;
    text-align: left;
    outline: none;
    text-decoration: none;
    font-size: 1.1rem;
}

.signup {
    display: inline-block;
    max-width: 100px;
    width: 100%;
    height: 36px;
    padding: 7px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    text-align: center;
    outline: none;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
     transition: all 0.5s;
}

.story {
    font-size: 1.4rem;
    text-align: left;
}

.columns {
    overflow: hidden;
    width: 100%;
}

.credit {
    margin-bottom: 30px;
}

.overflow-two {
    margin: auto;
    margin-bottom: 100px;
    max-width: 500px;
}

.donation-amount {
    font-weight: 500;
    font-size: 2rem;
    letter-spacing: 2px;
    height: 115px;
    padding: 7px;
    color: #FFF;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #FFF;
    text-align: center;
    outline: medium none;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.5s ease 0s;
    width: 115px;
    border-radius: 120px;
    padding-top: 35px;
    display: inline-block;
}

.donation-wrapper {
    max-width: 30%;
    width: 100%;
    display: inline-block;
}


footer {
    padding: 0 0 20px 0;
    max-width: 915px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    text-align: center;
    color: #fff;
    transition: all 0.5s;
}

footer p a {
    text-indent: -9999px;
    margin: 0 auto;
    width: 24px;
    height: 24px;
    display: block;
    cursor: pointer;
    position: relative;
/*    bottom: 1%;
    right: 50%;*/
    overflow: hidden;
    border-top-left-radius: 20px;
    -webkit-border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    -webkit-border-bottom-left-radius: 20px;
    transition: all 1s;
    -moz-transition: all 1s;
    -webkit-transition: all 1s;
    -o-transition: all 1s;
    opacity:0.3;
    filter:alpha(opacity=30);
}
footer p a:hover {
    opacity:1;
    filter:alpha(opacity=100);
    width: 162px;
}
footer a .credit-small {
    width: 24px;
    height: 24px;
    display: block;
    background: url('../img/credit-v-white.png') no-repeat left;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 600;
}
footer a .credit-full {
    width: 128px;
    height: 19px;
    display: block;
    background: url('../img/credit-text.png') no-repeat right;
    position: absolute;
    top: 3px;
    right: 0;
    z-index: 500;
    transition: all 2s;
    -moz-transition: all 2s;
    -webkit-transition: all 2s;
    -o-transition: all 2s;
    opacity:0;
    filter:alpha(opacity=0);
}
footer a:hover .credit-full {
    opacity:1;
    filter:alpha(opacity=100);
    }


/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */


@media all and (min-width: 800px) and (max-width: 1200px) {

    .container {
        max-width: 670px;
    }

    #video {
        max-width: 670px;
    }

    .space-1 {
        margin-bottom: 60px;
    }

    .left {
        display: block;
        margin: auto;
        float: none;
    }
    .right {
        display: block;
        float: none;
        margin: auto;
    }

    .donation-page .left {
        display: inline-block;
        float: left;
    }

    .donation-page .right {
        float: right;
    }

    .donation-page .left, .donation-page .right {
        max-width: 310px;
        width: 100%;
    }

    .padding {
        height: 40px;
    }

    .logo {
        margin: 0 auto;
        margin-top: 7%;
        margin-bottom: 7%;
        display: block;
        width: 259px;
        height: 137px;
        background: url(../img/logo.png);
    }

    footer {
        max-width: 670px;
        width: 100%;
    }

    .donation-page .uppertext, .donation-page .charity-text {
        font-size: 1.7rem;
    }

    .donation-page .credit {
        font-size: 0.9rem;
    }
}
@media all and (max-width: 800px) {

    html {
/*        background:url('../img/bg-phone@2x.jpg') no-repeat center center;
*/
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        background-color: #222222;
    }

    .container {
        max-width: 90%;
    }

    #video {
        max-width: 100%;
        margin: 0 0;
    }

    .credit, .charity-text, .left-align, .uppertext, .story {
        text-align: left;
    }
    
    .charity {
    margin-bottom: 30px;
	}


    .charity-text {
        max-width: 410px;
        margin-left: 0;
        margin-right: 0;
    }

    .uppertext, .donation-page .charity-text {
        font-size: 1.65rem;
    }

    .story {
        font-size: 1.2rem;
    }

    .left {
        display: block;
        margin: auto;
        float: none;
        margin-bottom: 9%;
    }
    .right {
        display: block;
        float: none;
        margin: auto;
    }

    .donation-page .left {
        margin-bottom: 0;
    }

    .donation-page .right p:first-child{
       margin-top: 26.4px;
}

    .donation-page .left, .donation-page .right {
        max-width: 100%;
        width: 100%;
    }

    .overflow-two {
    margin: 10% 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
}

    .donation-amount {
    width: 90px;
    height: 90px;
    padding: 22px 7px 7px;
}

    .padding {
        height: 0px;
    }

    .signup {
        float: right;
        max-width: 29%;
        padding: 7px;
    }
    .emailform {
        max-width: 68%;
    }

    .overflow {
        margin-bottom: 20px;
    }

    .m-space {
        margin-bottom: 0;
    }

    .logo {
        margin-bottom: 20%;
        margin-top: 23%;
        height: 128px;
        width: 240px;
        background-repeat: no-repeat;
        background-size: contain;
    }

    footer {
        max-width: 90%;
        width: 100%;
        margin-top: 23%;
        font-size: 0.9rem;
        text-align: left;
    }
}

@media screen and (max-width : 340px) and (-webkit-max-device-pixel-ratio : 1), only screen and (max-width : 340px) and (max-device-pixel-ratio : 1) {
        html {
            background:url('../img/bg-phone@1x.jpg') no-repeat center center fixed;
            -webkit-background-size: cover;
            -moz-background-size: cover;
            -o-background-size: cover;
            background-size: cover;
        }
    }

@media all and (min-height: 1110px) and (min-width: 1200px){
    footer {
        position: fixed;
        bottom: 0;
        max-width: 915px;
        width: 100%;
        left: 50%;
        margin-left: -457.5px; /* Half of the width */
    }
}

@media all and (min-height: 1110px) and (min-width: 800px) and (max-width: 1200px){
    footer {
        position: fixed;
        bottom: 0;
        max-width: 670px;
        width: 100%;
        left: 50%;
        margin-left: -335px; /* Half of the width */
        padding: 0 0 20px 0;
    }
}

@media all and (min-height: 1110px) and (max-width: 800px){
    footer {
        position: fixed;
        bottom: 0;
        max-width: 100%;
        width: 100%;
        padding: 0 5%;
    }
}
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        -webkit-box-shadow: none !important;
                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;
    }
}

