/*! HTML5 Boilerplate v6.0.1 | 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: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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;
}

img {
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    border: none;
    display: block;
}

*, *:after, *:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

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

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face {
    font-family: 'icomoon';
    src: url('fonts/icomoon.eot?bd5ngr');
    src: url('fonts/icomoon.eot?bd5ngr#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?bd5ngr') format('truetype'),
    url('fonts/icomoon.woff?bd5ngr') format('woff'),
    url('fonts/icomoon.svg?bd5ngr#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-ic_keyboard_arrow_left_white_24px:before {
    content: "\e900";
}

.icon-ic_keyboard_arrow_right_white_24px:before {
    content: "\e901";
}

.container {
    display: table;
    margin: 15px auto;
    width: 90%;
}

.change-the-story {
    display: table;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 15px;
    margin: 15px 0;
    position: relative;
    width: 100%;

    -webkit-box-shadow: 7px 5px 5px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 7px 5px 5px rgba(0, 0, 0, 0.15);
    box-shadow: 7px 5px 5px rgba(0, 0, 0, 0.15);
}

.change-the-story header.header {
    display: table;
    padding: 5px 0;
    width: 100%;
}

.change-the-story header.header .logo-wrapper {
    display: inherit;
    width: 100%;

}

.logo-wrapper .benefactor-logo, .logo-wrapper .beneficiary-logo {
    width: 150px;
    max-width: 150px;
    margin-bottom:5px;
}

.change-the-story .float-left {
    float: left;
}

.change-the-story .float-right {
    float: right;
}

.campaign-wrapper .heading {
    height: 45px;
    max-height: 45px;
    width: 250px;
    max-width: 250px;
}

.actions {
    font-size: 12px;
}

.actions .button {
    display: inline-block;
    text-decoration: none;
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 900;
    font-size: 14px;
}

.actions .button:nth-child(1) {
    background-color: #EBEBEB;
    border-color: #EBEBEB;
    color: #7C7D7D;
    margin-right: 30px;
}

.progress {
    width: 100%;
    height: 40px;
}

.progress-wrap {
    background: #5FB25B;
    margin: 5px 0;
    overflow: hidden;
    position: relative;
}

.progress-wrap .progress-bar {
    background: #EEE8DF;
    left: 0;
    position: absolute;
    top: 0;
}

.progress-wrap .tag-line {
    color: #A89881;
    left: 0;
    position: absolute;
    top: 0;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    text-align: right;
    line-height: 40px;
    padding: 0 10px;
    height: 40px;
    width: 100%;
}

.button {
    padding: 10px 30px;
    margin-bottom: 0;
    font-size: 13px;
    border-radius: 0;
    text-transform: uppercase;
}

.pulse-btn {
    color: var(--color);
    -webkit-transition: 0.25s;
    transition: 0.25s;
    border-radius: 43px;
}

.pulse-btn:hover, .pulse-btn:focus {
    border-color: var(--hover);
    color: #fff;
}

.pulse-btn {
    border: 2px solid;
    line-height: 1;
    padding: 1em 2em;
    cursor: pointer;
}

.pulse:hover,
.pulse:focus {
    -webkit-animation: pulse 1s;
    animation: pulse 1s;
    -webkit-box-shadow: 0 0 0 2em rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 2em rgba(255, 255, 255, 0);
}

.change-the-story .footer {
    display: table;
    padding: 5px 0;
    width: 100%;
}

.the-campaign .heading {
    float: left;
    width: 200px;
}

#toggleCampaign{
    border:none;
    display: table;
    font-family: "Roboto", Arial, sans-serif;
    text-decoration: none;
    font-size: 10px;
    padding: 1em;
    float: right;
    margin: 5px 0;
}

.change-the-story .footer .amount-raised {
    color: #5FB25B;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}

.change-the-story .footer .amount-raised p {
    margin: 0;
}

.change-the-story .donate-instructions {
    background-color: #5FB25B;
    padding: 5px;
    margin-top: 10px;
}

.change-the-story .instructions-wrapper {
    width: 35%;
    margin: auto;
}

.change-the-story .instructions-wrapper .watermark {
    display: inline-block;
    margin: auto;
    max-width: 100px;
    width: 100px;
    vertical-align: middle;
}

.change-the-story .instructions-wrapper .call-to-action {
    display: inline-block;
    color: #ffffff;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 30px;
    font-weight: 900;
    text-align: center;
    line-height: 30px;
    vertical-align: middle;
    padding-left: 30px;
}

.change-the-story .footer .how-to-donate .donate-wrapper {
    width: 50%;
    margin: 0 auto;
    padding: 5px;
}

.change-the-story .footer .how-to-donate .mpesa-logo, .change-the-story .footer .how-to-donate .paybill {
    display: inline-block;
    vertical-align: middle;
    /*line-height: 50px;*/
}

.change-the-story .footer .how-to-donate .mpesa-logo{
    width: 80px;
}

.change-the-story .footer .how-to-donate .paybill p{
    margin: 0;
}

.change-the-story .footer .how-to-donate {
    color: #6C6C6C;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 30px;
    font-weight: 900;
    text-align: center;
}

.change-the-story .footer .how-to-donate .paybill p span {
    font-weight: 400;
}

#getPlugin {
    margin: 10px 0;
}

#embedPlugin {
    width: 100%;
    display: table;
}

#getPlugin form fieldset {
    float: left;
    width: 50%;
    clear: none;
    padding: 0 5px;
    margin-left: 0;
}

fieldset .form-input {
    color: #6C6C6C;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#getPlugin form input[type="text"], #getPlugin form input[type="email"] {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: transparent;
    border: solid 1px;
    border-color: #eeeeee;
    color: inherit;
    display: block;
    outline: 0;
    padding: 0 1rem;
    text-decoration: none;
    height:2.5rem;
    width: 100%;
}

#getPlugin form input[type="text"]:focus, #getPlugin form input[type="email"]:focus {
    border-color: #5FB25B;
    border-width: 2px;
}

.form-inputs {
    width: 90%;
}

.button-input {
    width: 10%;
}

#notifyName, #notifyEmail{
    padding: 10px 5px;
}

#notifyName label, #notifyEmail label{
    color:red;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 12px;
}

#getPlugin form .button-input fieldset {
    width: 100%;
}

.button-input input[type="submit"] {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    width: 100%;
}

div#suc .apa_thankyou{
    padding: 20px 10px;
    border: solid 1px;
    border-color: #eeeeee;
    color: #6C6C6C;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    font-weight: 900;
}

@-webkit-keyframes pulse {
    0% {
        -webkit-box-shadow: 0 0 0 0 var(--hover);
        box-shadow: 0 0 0 0 var(--hover);
    }
}

@keyframes pulse {
    0% {
        -webkit-box-shadow: 0 0 0 0 var(--hover);
        box-shadow: 0 0 0 0 var(--hover);
    }
}

.pulse {
    --color: #fff;
    --hover: #eec83e;
    background-color: #5FB25B;
}

.show {
    display: block;
}

.hide {
    display: none;
}

@media only screen and (max-width: 1440px) {

    .change-the-story .footer .how-to-donate .donate-wrapper {
        display: table;
        text-align: center;
        width: 100%;
    }

    .change-the-story .footer .how-to-donate {
        font-size: 20px;
    }

    /*.change-the-story .footer .how-to-donate .mpesa-logo {*/
        /*display: table-cell;*/
        /*width: 20%;*/
    /*}*/

    /*.change-the-story .footer .how-to-donate .paybill {*/
        /*display: table-cell;*/
        /*width: 80%;*/
    /*}*/

    /*.change-the-story .instructions-wrapper {*/
        /*width: 45%;*/
        /*margin: auto;*/
    /*}*/
}

/*@media only screen and (max-width: 1366px){}*/

@media only screen and (max-width: 1366px) {

    /*.change-the-story .footer .how-to-donate .donate-wrapper {*/
        /*display: table;*/
        /*text-align: center;*/
        /*width: 100%;*/
    /*}*/

    /*.change-the-story .footer .how-to-donate .mpesa-logo {*/
        /*display: table-cell;*/
        /*width: 20%;*/
    /*}*/

    /*.change-the-story .footer .how-to-donate .paybill {*/
        /*display: table-cell;*/
        /*width: 80%;*/
    /*}*/
}

@media only screen and (max-width: 1100px) {
    .change-the-story .footer .how-to-donate .donate-wrapper {
        display: table;
        text-align: center;
        width: 100%;
    }

    /*.change-the-story .footer .how-to-donate {*/
        /*font-size: 30px;*/
    /*}*/

    /*.watermark {*/
        /*display: inline-block;*/
        /*width: 30%;*/
    /*}*/

    /*.change-the-story .instructions-wrapper {*/
        /*width: 275px;*/
        /*margin: auto;*/
    /*}*/

    /*.change-the-story .instructions-wrapper .call-to-action {*/
        /*display: inline-block;*/
        /*font-size: 25px;*/
        /*line-height: 25px;*/
        /*padding-left: 15px;*/
    /*}*/

    /*.change-the-story .footer .how-to-donate .mpesa-logo {*/
        /*display: table-cell;*/
        /*width: 20%;*/
    /*}*/

    /*.change-the-story .footer .how-to-donate .paybill {*/
        /*display: table-cell;*/
        /*width: 80%;*/
    /*}*/
}

@media only screen and (max-width: 960px) {
    .actions .button {
        font-size: 14px;
    }

    .actions .button:nth-child(1) {
        margin-right: 0;
    }

    .progress-wrap {
        margin: 10px 0;
    }

    .progress-wrap .tag-line {
        color: #000000;
        font-size: 14px;
        text-align: center;
        padding: 0 15px;
    }

    .pulse-btn {
        padding: 1em 1.5em;
    }

    .change-the-story .instructions-wrapper {
        width: 60%;
    }
    
    .form-inputs {
        width: 100%;
    }
    
    #getPlugin form fieldset {
        float: none;
        display: table;
        margin: 10px 0;
        width: 100%;
    }
    
    .change-the-story .button-input.float-right{
        float: none;
        display: table;
        margin: 10px 0;
    }

    /*.change-the-story .instructions-wrapper .call-to-action {*/
        /*display: inline-block;*/
        /*font-size: 25px;*/
        /*line-height: 25px;*/
        /*padding-left: 15px;*/
    /*}*/

    /*.change-the-story .instructions-wrapper .watermark {*/
        /*display: inline-block;*/
        /*!*max-height: 150px;*!*/
        /*width: 30%;*/
    /*}*/

    /*.change-the-story .donate-instructions {*/
        /*padding: 5px;*/
        /*margin-top: 15px;*/
    /*}*/

    /*.change-the-story .footer .how-to-donate{*/
        /*font-size: 25px;*/
    /*}*/

    .change-the-story .footer .how-to-donate .donate-wrapper {
        display: table;
        text-align: center;
        width: 100%;
    }

    /*.change-the-story .footer .how-to-donate .mpesa-logo {*/
        /*display: table-cell;*/
        /*width: 20%;*/
    /*}*/

    /*.change-the-story .footer .how-to-donate .paybill {*/
        /*display: table-cell;*/
        /*width: 80%;*/
    /*}*/
}

@media only screen and (max-width: 670px) {

    .campaign-wrapper .actions, .campaign-wrapper .heading {
        float: none;
        display: table;
        /*margin: auto;*/
        width: 100%;
    }

    .actions .button {
        font-size: 14px;
    }

    .actions .button:nth-child(1) {
        margin-right: 0;
        float: left;
    }

    .actions .button:nth-child(2) {
        margin-right: 0;
        float: right;
    }

    .progress-wrap {
        margin: 10px 0;
    }

    .progress-wrap .tag-line {
        color: #000000;
        font-size: 14px;
        text-align: center;
        padding: 0 15px;
    }

    .pulse-btn {
        padding: 1em 1.5em;
    }

    .change-the-story .instructions-wrapper {
        width: 70%;
    }

    .change-the-story .instructions-wrapper .watermark {
        max-width: 80px;
        width: 80px;
    }

    .change-the-story .instructions-wrapper .call-to-action {
        font-size: 21px;
        line-height: 21px;
        padding-left: 10px;
    }

    .change-the-story .footer .how-to-donate .mpesa-logo, .change-the-story .footer .how-to-donate .paybill {
        display: table-cell;
        vertical-align: middle;
        font-size: 16px;
    }

    /*.change-the-story .footer .how-to-donate .mpesa-logo{*/
        /*width: 50%;*/
    /*}*/

    .change-the-story .footer .amount-raised.float-right{
        width: 60%;
    }
}

@media only screen and (max-width: 570px) {

}

@media only screen and (max-width: 370px) {

}

@media only screen and (max-width: 320px) {
}

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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * 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;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * 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: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@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 {
        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 {
        white-space: pre-wrap !important;
    }

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

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

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