/*! 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: #fff;
    text-shadow: none;
}

::selection {
    background: #fff;
    text-shadow: none;
}


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


/* ==========================================================================
   Page styles
   ========================================================================== */


/* Header */
.header {
    padding: 20px;
    height: 60px;
}

.half-width {
    width: 50%;
    display: inline-block;
}

.logo {
    max-width: 100%;
    height: 50px;
}

/* disabled top padding and changed to max-height for mills logo */
.theme-logo {
    /* padding-top: 19px;
    max-width: 250px; */
    max-height: 60px;
}

.text-left {
    float: left;
}

.text-right {
    float: right;
    text-align: right;
}

h1.campaign {
    font-size: 34px;
    font-family: 'Oswald', sans-serif;
    margin-top: 0px;
}

/* change image here size 1400 by 788  */
.main {
    background-image: url('../img/handbagsbackground.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: 'Playfair Display', serif;
    height: 550px;
    width: 100%;
}

.form-area {
    width: 440px;
    margin-left: 40px;
    color: #fff;
    padding-top: 30px;
    text-align: center;
}

.form-area h2 {
    margin-top: 0px;
    font-size: 60px;
    font-family: 'Oswald';
    font-weight: normal;
    line-height: 1;
}

.form-area h2 .bigger {
    font-size: 1.35em;
}

.form-area p {
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
}

.form-area .donation-impact {
    margin-top: 25px;
    background-color: rgba(255,255,255,0.3);
    width: 100%;
}

.form-area .donation-impact p {
    font-size: 12px;
    padding: 10px;
    font-family: 'Playfair Display', sans-serif;
}

.form-area .form-info {
    margin-bottom: 40px;
}

button {
    font-family: 'Playfair Display ', sans-serif;
    text-transform: uppercase;
    color: #000;
    background-color: #fff;
    padding: 12px;
    width: 70px;
    font-size: 21px;
    border: 0px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 200ms ease-in-out;
}

button.btn-amount {
    font-size: 18px;
    padding: 12px 8px;
}

button:hover,button:active,button:focus {
    background-color: #a73e42;
    outline: none;
}

button + button {
    margin-left: 2%;
}

button.active {
    background-color: #a02226;
    color: #fff;
}

button.active:hover,button.active:focus{
    cursor: default;
}

.big-button {
    background-color: #a02226;
    color: #fff;
    width: 100% !important;    
}

.sponsor {
    color: #a02226;
    background-color: #fff;
    width: 100%;      
}

.donation-bar {
    font-family: 'Playfair Display', sans-serif;
    width: 100%;
    height: 55px;
    background-color: #fff;
    border-radius: 6px;
    margin: 10px 0px;
    font-size: 32px;
    padding-top: 8px;
    text-transform: uppercase;
    display: block;
}

.dollars, .currency {
    color: #a5a5a5;
}

.currency {
    text-align: right;
    float: right;
    padding-right: 10px;
}

.dollars {
    float: left;
    padding-left: 10px;
}

input {
    border: 0px;
    outline: none !important;
    font-family: 'Playfair Display', sans-serif;
    font-weight: normal;
    text-align: right;
    width: 280px;   
}

.extra-info {
    max-width: 600px;
    margin: 60px auto;
    font-family: 'Playfair Display', sans-serif;
    padding: 0 15px;
}

.extra-info p {
    font-size: 18px;
}
.small-text {
    padding: 10px 0;
    font-family: 'Playfair Display', sans-serif;
}

.footer {
    width: 100%;
    font-family: 'Lato', sans-serif;
    height: 80px;
    margin-top: 80px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    padding: 10px 0;
    background-color: #CDB78F;
}


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


.uppercase {
    text-transform: uppercase;
}

.red {
    color: #a02226;
}

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

@media only screen and (min-width: 1200px) {
    .main {
        height: 650px;
    }

    .form-area {
        margin-left: 110px;
        padding-top: 120px;
    }
}


@media only screen and (max-width: 767px) {
    .header {
        height: 36px;
    }
    .logo {
        width: 240px;
        height: auto;
    }
    .theme-logo {
        max-height: 40px;
    }
    h1.campaign {
        font-size: 24px;
    }

    .form-area {
        margin-left: auto;
        margin-right: auto;
    }
}


@media only screen and (max-width: 420px) {
    .header {
        height: 80px;
    }

    .half-width {
        width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        float: none !important;
        text-align: center !important;
    }

    .half-width + .half-width {
        padding-top: 13px;
    }

    .main {
        background-image: none;
        background-color: #000;
        height: 600px;        
    }

    .form-area {
        width: 300px;
        padding-top: 20px;
    }

    .form-area h2 {
        font-size: 40px;
    }

    button + button {
        margin-left: 1%;
    }

    .button {
        width: 72px;
        font-size: 19px;
    }

    .button.btn-amount {
        width: 56px;
        font-size: 16px;
        padding: 12px 5px;
    }

    input {
        width: 150px;
    }

}