/* Navigation bar */
.navigation {
    height: 4.5em;
    background: #008132;
}

/* Logo */
.brand {
    padding-left: 20px;
    float: left;
    line-height: 4.5em;
}

.brand a,
.brand a:visited {
    color: #ffffff;
    text-decoration: none;
}

#logo {
    width: 50px;
    max-height: 100%;
    vertical-align: middle;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation links */
nav {
    float: right;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #008132;
}

nav ul li {
    float: left;
    position: relative;
    padding: 0 20px;
}

nav ul li a::after {
    content: '';
    display: block;
    margin-top: 3px;
    width: 100%;
    height: 0;
    transition: height .1s ease;
}

nav ul li a:hover:not(#active):after {
    height: 3.5px;
    background: #FFF;
}

nav ul li a {
    display: block;
    padding-top: 1.8em;
    color: #FFF;
    font-family: 'Poppins', Tahoma, sans-serif;
    text-decoration: none;
}

#active::after {
    content: '';
    display: block;
    height: 3.5px;
    width: 100%;
    background: #DB9815;
}

nav ul li a:not(:only-child):after,
nav ul li a:visited:not(:only-child):after {
    padding-left: 4px;
    content: ' ▾';
}

nav ul li ul li {
    min-width: 190px;
}

nav ul li ul li a {
    padding: 15px;
    line-height: 20px;
}

/* Mobile navigation */
.nav-mobile {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 4.5em;
    width: 70px;
    line-height: 4.5em;
    background: #008132;
}

@media only screen and (max-width: 798px) {
    .nav-mobile {
        display: block;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: none;
        margin-bottom: 2em;
    }

    nav ul li {
        float: none;
    }

    nav ul li a {
        padding: 15px;
        line-height: 20px;
    }

    nav ul li ul li a {
        padding-left: 30px;
    }

    .nav-dropdown {
        position: static;
    }

    #logo {
        width: 50px;
        max-height: 100%;
        vertical-align: middle;
    }

    #map {
        height: 300px;
        width: 100%;
    }
}

@media screen and (max-width: 570px) {
    #content {
        padding: 2.2% 3% 0 3%;
    }

}

@media only screen and (max-width: 798px) and (min-width: 571px) {
    #content {
        padding: 2.2% 14% 0 14%;
    }
}

@media screen and (min-width: 799px) {
    .nav-list {
        display: block !important;
    }

    #content {
        padding: 2.2% 14% 0 14%;
    }

    #map {
        height: 300px;
        width: 700px;
    }
}

#nav-toggle {
    position: absolute;
    left: 18px;
    top: 1.5em;
    cursor: pointer;
    padding: 10px 35px 16px 0px;
    margin: auto;
}

#nav-toggle span,
#nav-toggle span:before,
#nav-toggle span:after {
    cursor: pointer;
    border-radius: 1px;
    height: 5px;
    width: 35px;
    background: #FFF;
    position: absolute;
    display: block;
    content: '';
    transition: all 300ms ease-in-out;
}

#nav-toggle span:before {
    top: -10px;
}

#nav-toggle span:after {
    bottom: -10px;
}

#nav-toggle.active span {
    background-color: transparent;
}

#nav-toggle.active span:before,
#nav-toggle.active span:after {
    top: 0;
}

#nav-toggle.active span:before {
    transform: rotate(45deg);
}

#nav-toggle.active span:after {
    transform: rotate(-45deg);
}

/* ===HEADER IMAGE=== */

.hero-image {
    background-image: url("hero-image.jpg");
    background-size: cover;
    background-position: center center;
    position: relative;
    height: 80vh;
}

/* ===SERMONS=== */
#searchSermons {
    margin-left: auto;
    margin-right: 0;
}

#sermonTable {
    font-family: "Source Sans Pro", Arial, sans-serif;
    margin: 0 auto;
    width: 100%;
    margin-top: 2em;
    display: block;
    overflow-x: auto;
}

#sermonTable td,
#sermonTable th {
    border-bottom: 1px solid #ddd;
    padding: 8px;
}

#sermonTable th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    font-family: "Poppins", Arial, sans-serif;
    border-top: 1px solid #ddd;
}

#sermonTable td a {
    color: #393D44;
    text-decoration: none;
}

#sermonTable td a:hover {
    color: #DB9815;
    font-weight: bold;
}

#sermonTable tbody {
    width: 100%;
}

#sermonTable tr th:nth-child(1) {
    width: 30%;
}

#sermonTable tr th:nth-child(2) {
    width: 30%;
}

#sermonTable tr th:nth-child(3) {
    width: 20%;
}

#sermonTable tr th:nth-child(4) {
    width: 8%;
}

#sermonTable tr th:nth-child(5) {
    width: 12%;
}

main {
    background-color: #FFF;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    width: 100%;
    background-color: #393D44;
    margin-top: 1em;
    padding-top: 1em;
    padding-bottom: 0.5em;
}

#bibleQuote {
    color: #FCFAED;
    text-align: center;
    font-size: 0.9em;
    line-height: 24px;
    margin: 0;
}

#bibleRef {
    color: #FCFAED;
    text-align: center;
    font-size: 0.7em;
    margin: 0;
}

* {
    box-sizing: border-box;
}

*:before,
*:after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    position: relative;
}

#content-wrap {
    min-height: 100vh;
    overflow: hidden;
    display: block;
    position: relative;
    padding-bottom: 100px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

#roster-content td {
    color: #FFF;
    font-size: 3vw;
    padding-left: 2vw;
    padding-right: 2vw
}