
body {
    font-family: "Oswald";
}

#container {
    width: 100%;
    margin: 0 auto;
}

/* header section */

.header-flex {
    display: flex;
    flex-direction: column;

}

header h1 {
    margin-block-start: 0;
    margin-block-end: 0;
}

header h1:first-of-type {
    margin-bottom: -12px;
}

header nav ul {
    display: flex;
    align-items: center;
    margin-block-start: 0.6em;
    padding-inline-start: 0;
}

header nav ul li {
    flex: 1;
    padding: 5px 40px;
    list-style-type: none;
    border-top: 4px #cc1600 solid;
    border-right: 4px #cc1600 solid;
}

header nav ul li:last-of-type {
    border-right: none;
    width: 100%;
}

header nav a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
}

.sac-flex {
    margin: 0 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sac-flex img {
    height: 100%;
    width: 210px;
    margin: auto;
    margin-top: -20px;
    margin-bottom: -55px;
}

.sac-flex div {
    z-index: 10;
}

.sacramento {
    color: #2c3e6d;
    font-size: 60px;
    text-transform: uppercase;
}

.writer {
    font-family: "Crimson Text";
    text-transform: lowercase;
    font-size: 40px;
    width: 230px;
}

.cta {
    font-size: 30px;
    text-decoration: none;
    color: #000;
    font-family: "Crimson Text";
    text-transform: lowercase;
}

.sac-flex p {
    display: flex;
    align-items: flex-end;
    margin-block-end: 0;
    justify-content: flex-end;
    margin-right: 25px;
}

.join {
    color: #cc1600;
}

/* end header section */

/* top section */

.new-box {
    background-color: #eeeeee;
    padding: 10px;
    margin: 25px 0;
}

.new-box h1 {
    margin: 0;
    color: #2e3e6c;
    font-size: 28px;
    font-weight: 300;
}

.new-box article {
    border-left: 6px solid #cc1600;
    padding-left: 12px;
}

.new-box article h2 {
    color: #666666;
    font-size: 20px;
    margin-bottom: 5px;
    
}

.new-box article p {
    font-family: "Crimson Text";
    color: #666666;
    font-size: 18px;
    margin: 0;
    font-style: italic;
}

.new-box a {
    color: #cc1600;
    text-decoration: none;
}

/* end new box section */

blockquote {
    font-family: "Crimson Text";
    font-size: 24px;
    margin: 0 20px;
}

/* middle section */
#middle {
    margin: 0 20px;
}

#middle article {
    border-top: 3px solid #2f3e6c;
    margin-top: 25px;
}

#middle h2 {
    color: #2e3e6c;
    font-size: 20px;
    text-transform: uppercase;
}

#middle p {
    font-family: "Crimson Text";
    font-size: 20px;
}

#middle a {
    color: #cc1600;
    text-decoration: none;
    font-size: 22px;
}

/* end middle section */

/* footer section */

#footer {
    background-color: #630b00;
    margin-bottom: 50px;
    color: #c9cad1;
    padding: 15px;
}

#footer h1 {
    margin: 0;
}

.footerSac {
    font-family: "Oswald";
    font-size: 36px;
    text-transform: uppercase;
}

.footerGroup {
    font-family: "Crimson Text";
    font-size: 24px;
    text-transform: lowercase;

}

.footerTop {
    display: flex;
    flex-direction: row;
}

#footer ul {
    padding-inline-start: 0;
}

#footer ul li {
    font-family: "Oswald";
    font-size: 16px;
    list-style-type: none;
}

#footer .footerTop nav a {
    color: #c9cad1;
    text-decoration: none;
    text-transform: uppercase;
}

.footerTop div,
.footerTop nav {
    flex: 1;
}

.mission {
    text-transform: uppercase;
    font-family: "Oswald";
    font-weight: 300;
    margin: 0;
}

#footer article p {
    font-family: "Crimson Text";
}

#footer .social {
    display: flex;
    flex-direction: row;
    margin: 0;
}

.social a {
    color: #c9cad1;
    padding: 0 10px;
    width: 10px;
}

.social a:first-child {
    padding-left: 0;
}



@media only screen and (min-width: 500px) {
	#container {
        max-width: 800px;
    }

    .header-flex {
        flex-direction: column-reverse;
    }

    header nav ul {
        border-top: 4px #cc1600 solid;
    }

    header nav ul li {
        flex: 0;
        padding: 5px 45px;
        list-style-type: none;
        border-top: none;
        border-right: 4px #cc1600 solid;
    }

    header nav ul li:last-of-type {
        border-right: 4px #cc1600 solid;
        width: 100%;
    }

    .sac-flex {
        flex-direction: row;
        margin-bottom: 75px;
        position: relative;
    }

    .sac-flex img {
        content: url(images/pen.png) !important;
        height: auto;
        width: 450px;
        position: absolute;
        right: -65px;
        bottom: -20px;
    }

    .sac-flex p {
        position: absolute;
        right: -40px;
        bottom: -60px;
    }

    #top {
        display: flex;
        flex-direction: row-reverse;
    }

    blockquote {
        width: 50%;
    }

    #middle {
        display: flex;
        flex-wrap: wrap;
    }

    #middle article {
        flex: 1 1 375px;
    }

    #middle article:nth-child(3) {
        display: flex;
    }

    #middle article div {
        width: 100%;
    }

    #footer {
        display: flex;
        padding: 20px 30px;
    }

    #footer .footerTop {
        width: 50%;
    }

    #footer nav {
        margin: 0 auto; 
    }

    .footerTop nav,
    .footerTop div {
        flex: 0;
    }

    #footer article {
        width: 50%;
    }

    #footer ul {
        margin-block-start: 0;
        margin-block-end: 0;
    }

    #footer ul li {
        font-size: 22px;
    }

    .footerTop ul li {
        width: 90px;
    }

    #footer article p {
        margin-block-start: 0;
        margin-block-end: 0;
    }
    
    #footer article nav {
        margin-top: 15px;
    }

    #footer .social {
        margin: 5px 0 0 0;
    }
}



@media only screen and (min-width: 1000px) {
    #container {
        max-width: 1000px;
        margin-top: 50px;
    }

    .header-flex {
        flex-direction: column-reverse;
    }

    header nav ul {
        border-top: 4px #cc1600 solid;
    }

    header nav ul li {
        flex: 0;
        padding: 5px 45px;
        list-style-type: none;
        border-top: none;
        border-right: 4px #cc1600 solid;
    }

    header nav ul li:last-of-type {
        border-right: 4px #cc1600 solid;
        width: 100%;
    }

    .sac-flex {
        flex-direction: row;
        margin-bottom: 75px;
        position: relative;
    }

    .sac-flex img {
        content: url(images/pen.png) !important;
        height: auto;
        width: 450px;
        position: absolute;
        right: -65px;
        bottom: -20px;
    }

    .sac-flex p {
        position: absolute;
        right: -40px;
        bottom: -60px;
    }

    #top {
        display: flex;
        flex-direction: row-reverse;
    }

    blockquote {
        width: 50%;
        font-size: 26px;
        line-height: 35px;
    }

    #middle {
        display: flex;
        flex-wrap: nowrap;
        margin: 0;
        padding-bottom: 25px;
    }

    #middle article {
        padding: 0 10px;
    }

    #middle article:nth-child(3) {
        display: block;
    }

    #middle article div {
        width: 100%;
    }

    #footer {
        display: flex;
        padding: 20px 30px;
        height: 150px;
    }

    #footer .footerTop {
        width: 50%;
    }

    #footer nav {
        margin: 0 auto; 
    }

    .footerTop nav,
    .footerTop div {
        flex: 0;
    }

    #footer article {
        width: 50%;
        margin-top: 35px;
    }

    #footer ul {
        margin-block-start: 35px;
        margin-block-end: 0;
    }

    #footer ul li {
        font-size: 22px;
    }

    .footerTop ul li {
        width: 90px;
    }

    #footer article p {
        margin-block-start: 0;
        margin-block-end: 0;
    }
    
    #footer article nav {
        margin-top: 15px;
    }

    #footer .social {
        margin: 5px 0 0 0;
    }
}