/* ************* */
/* Global Styles */
/* ************* */
:root {
    --header-font: "Oswald", serif;
    --main-font: "Open Sans", sans-serif;
    --primary-color: #009848;
    --secondary-color: #EEE;
    --text-color: #333;
}

body {
    font-family: var(--main-font);
    color: var(--text-color);
    background-color: var(--secondary-color);
    margin: 0;
}

a.button {
    text-decoration: none;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 10px;
    margin: 10px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--header-font);
    margin: 0;
    text-align: center;
}

img {
    max-width: 100%;
}

figure {
    text-align: center;
}

article>div,
aside,
footer {
    max-width: 1000px;
    margin: auto;
    align-items: center;
    justify-content: center;
    padding: 1em;
}

.halfs {
    display: flex;
}

@media (max-width: 768px) {
    .halfs {
        flex-direction: column;
    }
}

/* ************ */
/* Leading Hero */
/* ************ */
header {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('media/trailpath.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

hgroup {
    color: white;
    text-align: center;
    padding: 15vw;
    font-size: 1.5em;
}

hgroup strong,
hgroup a {
    font-weight: 400;
}

hgroup div {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    font-size: 0.8em;
}

@media (max-width: 768px) {
    hgroup {
        font-size: 1.2em;
    }

    hgroup div {
        flex-direction: column;
    }
}

/* **********  */
/*     Intro    */
/* *********** */

#sponsor {
    padding: 0;
    margin: 0 20px;
    font-weight: 600;
    text-align: right;
    opacity: 70%;
    font-size: 0.8em;
}

@media (max-width: 768px) {
    #intro_to_john img {
        max-width: 80%;
    }
}

/* ****************** */
/* Vote by mail block */
/* ****************** */

aside {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 10px;
    margin: 30px auto;
}

aside p {
    margin-bottom: 40px;
}

aside .button {
    background-color: #DDD;
    color: var(--text-color);
    margin: 40px 0;
    font-weight: 600;
}

aside .button:hover {
    background-color: #EEE;
    box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
    transition: 0.2s;
}

@media (max-width: 1100px) {
    aside {
        margin: 30px;
    }

}

/* ********* */
/* Focus  */
/* ******* */

#focus {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('media/stroud.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#focus h2 {
    text-align: center;
    color: var(--secondary-color);
}

#focus ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px
}

#focus li {
    list-style: none;
    padding: 15px;
    background-color: lightgray;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2em;
}

#focus img {
    margin-top: 20px;
}

@media (max-width: 768px) {
    #focus ul {
        grid-template-columns: 1fr;
        padding-left: 0;
        margin: 30px;
        padding:0;
    }

    #focus ul img {
        max-width: 300px;
        display: block;
        margin: 20px auto;
    }
}

/* ******** */
/* Causes   */
/* ******** */


#causes ul,
#focus ul {
    margin: 0;
    padding: 0;
}

#causes li {
    list-style: none;
}

#causes figure {
    display: flex;
    align-items: center;
    padding: 30px;
    background-color: lightgray;
    border-radius: 40px;
}

#causes span {

    height: 80px;
    width: 100px;
    margin-right: 30px;
}

#causes img {
    max-height: 100%;
}

#causes figcaption {
    font-size: 1.2em;
    font-weight: 500;
}

#sign {
    display: flex;
    justify-content: center;
}

#sign img {
    padding: 30px;
    max-width: 300px;
}


blockquote {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 50px;
    padding-left: 15px;
    border-left: 3px solid #ccc;
}

/* center the blockquote in the page */
.blockquote-wrapper {
    display: flex;
    padding: 0 20px;
}

/* Blockquote header */
.blockquote h1 {
    font-family: 'Abril Fatface', cursive;
    position: relative;
    /* for pseudos */
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: normal;
    line-height: 1;
    margin: 0;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 25px;
}

/* Blockquote right double quotes */
.blockquote h1:after {
    content: "";
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 0 100% 0 0;
    width: 60px;
    height: 60px;
    bottom: -62px;
    left: 50px;
    border-bottom: none;
    border-left: none;
    z-index: 3;
}

.blockquote h1:before {
    content: "";
    position: absolute;
    width: 80px;
    border: 6px solid var(--secondary-color);
    bottom: -3px;
    left: 50px;
    z-index: 2;
}

/* increase header size after 600px */
@media all and (min-width: 600px) {
    .blockquote h1 {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    div {
        width: 100%;
    }

}

/* Blockquote subheader */
.blockquote h4 {
    position: relative;
    color: #333;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    padding-top: 15px;
    z-index: 1;
    margin-left: 150px;
    padding-left: 12px;
}


.blockquote h4:first-letter {
    margin-left: -12px;
}