/* RESETS */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    font-weight: 100;
}

img {
    display: block;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    padding: 0;
    font-family: 'Zilla Slab', serif;
    font-weight: 100;
}

h2 {
    font-size: 60px;
}

h3 {
    font-size: 40px;
}

h4 {
    font-size: 30px;
}

h5 {
    font-size: 22px;
}

ul.basic-list li {
    line-height: 1.5;
}

/* GENERAL */
.mobile {
    display: none;
}

.align-center {
    text-align: center;
}

.container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

.narrow-container {
    max-width: 600px;
    width: 100%;
    margin: 50px auto;
}

.flex-align {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* HEADER AND NAV */
.home-header {
    background: url(../images/home-hero.jpg) no-repeat;
    background-attachment: fixed;
    background-position: top center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 9;
}

.home-header::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: -1;
}

.page-header {
    background: #88150c;
    width: 100%;
    position: relative;
    z-index: 9;
}

.page-header::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: -1;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px;
    height: 120px;
    border-bottom: 1px solid #FFF;
}

.logo {
    width: 150px;
    z-index: 1;
    align-self: center;
}

.nav {
    display: flex;
    width: auto;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.nav li {
    position: relative;
}

.nav li a {
    position: relative;
    display: block;
    text-decoration: none;
    color: #FFF;
    padding: 15px;
    letter-spacing: 1px;
    font-size: 18px;
    transition: all .3s;
}

.nav li a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    height: 1px;
    background: #FFF;
    width: 0px;
}



.dropdown {
    position: absolute;
    list-style-type: none;
    padding: 0;
    display: none;
}
.dropdown li a {
    width: 220px;
    background: #FFF;
    color: #000;
    font-size: 14px !important;
    padding: 10px !important;
}
.dropdown li {
    border-bottom: 1px solid #CCC;
}
.dropdown li:last-child {
    border-bottom: none;
}
.has-dropdown:hover > .dropdown {
    display: block;
}
.dropdown a:hover {
    background: #EEE;
}



/* HOMEPAGE */
.hero-content {
    position: absolute;
    padding: 20px;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.hero-content h2 {
    display: block;
    text-align: center;
    color: #FFF;
    z-index: 1;
    font-size: 60px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    line-height: 1;
}

.btn {
    display: block;
    width: 200px;
    padding: 10px 20px;
    margin: 0 auto;
    text-decoration: none;
    color: #FFF;
    text-align: center;
}

.btn-clear {
    border: 1px solid #FFF;
}

.welcome {
    max-width: 1000px;
    width: 100%;
    margin: 50px auto;
    padding: 0 20px;
}

.welcome h3 {
    font-size: 40px;
    margin-bottom: 20px;
    line-height: 1;
}

.welcome p {
    font-size: 18px;
    line-height: 1.5;
}

.about-container {
    max-width: 1600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.believe {
    position: relative;
    background: url(../images/ffbc-believe-bg.jpg) no-repeat;
    background-attachment: fixed;
    background-position: left;
    width: 100%;
    height: 300px;
    z-index: 1;
}

.believe::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(0, 64, 64, .5);
    z-index: -1;
}

.history {
    position: relative;
    background: url(../images/ffbc-history-bg.jpg) no-repeat;
    background-attachment: fixed;
    background-position: right;
    width: 100%;
    height: 300px;
    z-index: 1;
}

.history::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(64, 27, 48, .5);
    z-index: -1;
}

.about-content {
    position: absolute;
    padding: 20px;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.about-content h3 {
    display: block;
    text-align: center;
    color: #FFF;
    z-index: 1;
    font-size: 40px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    line-height: 1;
}

.ministry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

.ministry-block {
    position: relative;
    overflow: hidden;
}

.ministry-block img {
    transform: scale(1);
    transition: all .3s;
}

.ministry-block img:hover {
    transform: scale(1.1);
}

.column-2 {
    grid-column: 1 / 3;
}

.ministry-hover {
    font-family: 'Zilla Slab', serif;
    display: inline-block;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 10px 20px;
    background: #333;
    color: #FFF;
    font-size: 30px;
    z-index: 1;
    pointer-events: none;
}

.sermons-container {
    background: url(../images/home-sermons.jpg) no-repeat;
    background-position: bottom center;
    background-size: cover;
    max-width: 960px;
    width: 100%;
    height: 300px;
    margin: 50px auto;
    position: relative;
    z-index: 1;
}

.sermons-container::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: -1;
}

.sermons-content {
    position: absolute;
    padding: 20px;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.sermons-content h3 {
    display: block;
    text-align: center;
    color: #FFF;
    z-index: 1;
    font-size: 40px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    line-height: 1;
}

#sermon-container {
    line-height: 1.3;
    margin-top: 30px;
}
a.sermon {
    display: block;
    color: #000;
    text-decoration: none;
    padding: 10px;
    margin: 5px;
    background: #EEE;
    border: 3px solid #EEE;
    transition: background .3s;
}
a.sermon:hover {
    background: #FFF;
}
.sermon h4, .sermon div {
    text-align: center;
}

.meeting-days {
    font-size: 22px;
    font-weight: 700;
}

footer {
    padding: 40px;
    background: #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.contact-info {
    flex: 1;
    color: #FFF;
    line-height: 1.5;
}

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

.footer-links-container {
    display: flex;
    flex: 1;
}

.footer-links {
    flex: 1;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}
.form-control {
    display: block;
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 2px solid #DDD;
    background: #FFF;
    color: #333;
}
textarea.form-control {
    height: 200px !important;
}
.form-control::placeholder {
    color: #CCC;
}
.btn-send {
    border: none;
    background: #88150c;
    color: #FFF;
    display: block;
    width: 185px;
    padding: 15px 20px;
    font-size: 16px;
    cursor: pointer;
}

.sermon h4, .sermon div {
    pointer-events: none;
}

.hide {
    display: none !important;
}
#player-container {
    display: block;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 15px 0 20px 0;
    background: #88150c;
}
#player-title {
    color: #FFF;
    text-align: center;
    padding-bottom: 10px;
}
#player-detail {
    color: #FFF;
    text-align: center;
    padding-top: 5px;
    font-size: 13px;
}
#playhead-container {
    margin: 0 auto;
    max-width: 800px;
    width: 95%;
    background: #4a0d08;
    cursor: pointer;
}
#playhead {
    height: 5px;
    width: 0;
    background: #FFF;
}
.event-group {
    margin-bottom: 30px;
    display: flex;
}



@media screen and (min-width:760px){
    .event-date {
        width: 50px;
    }
    .event-info {
        padding-left: 20px;
    }
    .flag-month {
        font-size: 12px;
        text-align: center;
        font-weight: 700;
        text-transform: uppercase;
    }
    .flag-day {
        font-size: 24px;
        text-align: center;
        background: #88150c;
        padding: 5px 0;
        width: 50px;
        color: #FFF;
    }
    .flag-year {
        font-size: 16px;
        text-align: center;
    }
    #mobile-nav {
        display: none;
    }
}

@media screen and (max-width: 950px) {
    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }

    .nav li a {
        font-size: 14px;
    }
}

@media screen and (max-width: 760px) {
    .home-header, .page-header {
        background-attachment: scroll;
    }

    .logo {
        width: 200px;
    }

    .nav-bar {
        flex-direction: column;
        padding: 20px;
        height: auto;
    }

    .nav {
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        background: #00aaaa;
        width: 70%;
        height: 100vh;
        padding: 60px 30px;
        transition: .3s all;
    }
    
    .show-mobile-nav {
        left: 0;
    }
    
    #nav-open {
        display: block;
    }
    
    #nav-close {
        display: none;
    }

    .nav li a {
        padding: 5px;
        font-size: 20px;
        background: none;
    }
    .nav li {
        border-bottom: 0px;
    }
    
    .dropdown {
        position: relative;
        list-style-type: none;
        padding: 0;
        display: block;
    }
    
    .dropdown li a {
        font-size: 16px !important;
        padding: 10px 20px !important;
    }

    .hero-content h2 {
        display: block;
        font-family: 'Zilla Slab', serif;
        text-align: center;
        color: #FFF;
        z-index: 1;
        font-size: 60px;
        letter-spacing: 1px;
        margin-bottom: 20px;
        line-height: 1;
    }
    
    .about-container {
        flex-direction: column;
    }

    .believe {
        background-attachment: scroll;
        background-position: center;
        margin-bottom: 10px;
    }

    .history {
        background-attachment: scroll;
        background-position: center;
    }

    .ministry-grid {
        display: block;
    }

    .ministry-block {
        margin-bottom: 10px;
    }

    .footer-content {
        flex-direction: column;
    }

    .contact-info {
        text-align: center;
        margin-bottom: 40px;
    }

    .footer-links-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .footer-links {
        width: 25%;
    }
    .footer-links a {
        display: block;
        text-align: center;
        line-height: 1;
    }
    .btn-send {
        margin: 0 auto;
    }
    .event-date {
        display: none;
    }
    
    #mobile-nav {
        display: block;
        position: absolute;
        top: 5px;
        right: 10px;
        width: 50px;
    }
}