/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *


*/


* {
    box-sizing: border-box;
}

body {
    font-family: Verdana, Arial, sans-serif;
    background-color: #AA8439;
    color: #AA8439;
}

header {
    background-color: #2E4372;
    height: 80px;
}

#desktop {
    display: inline;
}

#tablet {
    display: none;
}

#mobile {
    display: none;
}

#wrapper {
    display: flex;
    flex-direction: column;
    background-color: #4E638E;
    margin: 0 auto;
    max-width: 1480px;
    width: 80%;
}

#main_wrapper {
    display: flex;
    flex-direction: row;
}

h1 {
    padding-left: 1em;
}

nav {
    flex: 2;
    float: left;
    background: #4E638E;
    border-top: 1px solid #FFFFFF;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#active {
    background-color: #7788AA;
    color: #4E638E;
}

nav h3 {
    display: block;
    padding-left: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #FFFFFF;
}

nav a {
    text-decoration: none;
    display: block;
    padding: 1em;
    border-bottom: 1px solid #FFFFFF;
    transition: background-color 1s ease-out;
}

nav a:link {
    color: #D4B06A;
}

nav a:visited {
    color: #D4B06A;
}

nav a:hover {
    background-color: #7788AA;
    color: #4E638E;
}

.nav_left {
}

main {
    flex: 8;
    background-color: #F5F5F5;
    padding: 10px 20px;
    overflow: auto;
    min-height: 325px;
}

#hero img {
    max-width: 100%;
    height: auto;
}

table {
    border-collapse: collapse;
    margin-top: auto;
    margin-right: auto;
    margin-left: 1px;
    margin-bottom: 1em;
}

td, th {
    padding: 5px;
}

tr:nth-of-type(even) {
    background-color: #2E4372;
}

td a {
    text-decoration: none;
    padding: 1em;
}

td a:link {
    color: #D4B06A;
}

td a:visited {
    color: #D4B06A;
}

article header {
    background-color: #7788AA;
    color: #D4B06A;
    height: 50px;
    background-image: none;
    padding-left: 1em;
    padding-right: 1em;
}

.event {
    float: left;
}

.event_date {
    float: right;
}

.missionary_name {
    float: left;
}

.missionary_url {
    float: right;
}

article p {
    padding-left: 1em;
    padding-right: 1em;
}

#contact_wrapper {
    display: flex;
    flex-direction: row;
}

.contact {
    float: left;
    flex: 4;
    width: 45%;
}

.contact a {
    text-decoration: none;
    color: #AA8439;
}

.map {
    flex: 6;
    width: auto;
    padding-top: 1px;
    padding-left: 1em;
}

.contactinfo {
    padding-left: 1em;
}

.preview_image {
    margin-top: 5px;
    text-decoration: none;
    width: 80px;
    height: 90px;
}

footer {
    font-size: small;
    padding: 1em;
    background-color: #2E4372;
    text-align: center;
    clear: both;
}

footer a {
    text-decoration: none;
    color: #AA8439;
    font-weight: bold;
}

form {
    font-family: Verdana, Arial, sans-serif;
    font-weight: normal;
    padding: 10px;
}
label {
    float: left;
    width: 100px;
    clear: left;
    margin-top: 10px;
}
input, textarea {
    display: block;
    margin-top: 10px;
}

header, nav, main, footer {
    display: block;
}

@media only screen and (max-width: 1024px) {
    header {
        background-image: none;
        height: 50px;
        text-align: center;
    }

    h1 {
        font-size: medium;
    }

    #main_wrapper {
        display: inline;
    }

    nav {
        float: none;
        border-top: 0;
        border-bottom: 1px solid #FFFFFF;
        font-size: medium;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    nav a {
        border-bottom: 0;
        border-right: 1px solid #FFFFFF;
        padding: 0.8em;
    }

    .nav_left {
        border-left: 1px solid #FFFFFF;
    }

    main {
        overflow: inherit;
    }

    .contact {
        float: none;
        width: 100%;
    }

    #desktop {
        display: none;
    }

    #tablet {
        display: inline;
    }

    #mobile {
        display: none;
    }
}

@media only all and (max-width: 768px) {
    #wrapper {
        width: 100%;
        margin: 0;
        min-width: 320px;
    }

    header {
        height: 40px;
    }

    h1 {
        font-size: smaller;
    }

    nav {
        font-size: smaller;
        border-top: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
    }

    nav a {
        border-bottom: 0;
        border-right: 0;
        padding: 0.6em;
    }

    .nav_left {
        border-left: 0;
    }

    #hero img {
        display: none;
    }

    #contact_wrapper {
        flex-direction: column;
    }

    .contact {
        float: none;
        width: 100%;
    }

    .map {
        padding-top: 0;
        padding-left: 0;
    }

    #desktop {
        display: none;
    }

    #tablet {
        display: none;
    }

    #mobile {
        display: inline;
    }
}
