* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    /* font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; */
}

p, h2, h4{
    color: rgba(0, 0, 0, 0.8);
}

header{
    position: absolute;
    width: 100%;
    z-index: 10;
    transition: .5s;
}

header.onscroll{
    position: fixed;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: white;
}

header nav {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
}

.nav-brand img {
    height: 3rem;
    width: 3rem;
}

nav .menu-btn {
    display: none;
    font-size: 1.5rem;
}

nav .menu-btn .bar{
    height: .25rem;
    width: 1.5rem;
    background: white;
    margin: .2rem 0;
    border-radius: 5rem;
}

nav .menu-btn .bar.onscroll{
    background: royalblue;
}

.menu-btn .bar:nth-child(2){
    width: .8rem;
}

.navbar .top{
    display: none;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul a {
    padding: .5rem 1rem;
    color: white;
}

.navbar.onscroll ul a{
    color: royalblue;
}

.navbar.onscroll ul a:hover{
    color: rgba(65, 105, 225, 0.5);
}

.navbar ul a:hover {
    color: rgba(255, 255, 255, 0.5);
}

.navbar .bottom{
    padding: 0 1rem;
}

.navbar .bottom a {
    font-size: 1.2rem;
    margin-right: 1rem;
}

.navbar .bottom a:nth-child(1) {
    color: royalblue;
}

.navbar .bottom a:nth-child(2) {
    color: lightgreen;
}

.navbar .bottom a:nth-child(3) {
    color: skyblue;
}

/* header media query */
@media screen and (max-width: 640px) {
    nav .menu-btn {
        display: block;
    }

    .navbar {
        position: fixed;
        height: 100%;
        background: white;
        top: 0;
        left: 0rem;
        right: 60rem;
        overflow: hidden;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        transition: .5s;
        z-index: 1000;
    }

    .navbar .top {
        display: flex;
        border-bottom: 1px solid rgba(65, 105, 225, 0.5);
        justify-content: space-between;
    }

    .navbar .fa-times {
        color: royalblue;
        margin-right: 1rem;
    }

    .navbar .top * {
        align-self: center;
        padding: .5rem;
        color: royalblue;
        font-weight: bolder;
    }

    .navbar .top .nav-brand {
        display: flex;
        color: royalblue;
        padding: 0rem;
    }

    .navbar ul {
        flex-direction: column;
        height: 100%;
    }

    .navbar ul a {
        padding: 1rem;
        color: royalblue;
        text-align: center;
        font-weight: bolder;
    }

    .navbar ul a:hover{
        background: linear-gradient(to right, rgba(65, 105, 225, 0.5), rgba(91, 214, 255, 0.5));
        color: white;
    }

    .navbar .bottom {
        position: absolute;
        bottom: 0;
        display: flex;
        padding: .5rem;
        justify-content: center;
        width: 100%;
        /* background: whitesmoke; */
    }

    .navbar .bottom a {
        font-size: 2rem;
    }

    .row{
        flex-direction: column;
    }
}
.intro{
    background: rgba(0, 0, 0, 0.6);
    height: 100vh;
    position: relative;
}

#gallery{
    z-index: -1;
}

#gallery .owl-dots{
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: .5rem;
}

#gallery .owl-dots button{
    background: white;
    height: .5rem;
    width: .5rem;
    border-radius: 50%;
    margin: .2rem;
}

#gallery .owl-dots button.active{
    background: royalblue;
}

.intro-content{
    display: flex;
    position: absolute;
    height: inherit;
    top: 0;
    width: 100%;
}

.text-slide{
    display: flex;
    color: white;
    margin: auto;
    font-size: 2rem;
}

.intro .item{
    background-position: center;
    background-size: cover;
    height: 100vh;    
}

.intro .bottom{
    position: absolute;
    bottom: 0;
    display: flex;
    margin-bottom: 1.8rem;
    right: 0;
    left: 0;
    justify-content: center;
    background: rgba(65, 105, 225, 0.3);
    padding: 1rem;
}

.intro .bottom div{
    padding: 1.5rem;
    width: 100%;
    border-left: 2px solid white;
    align-self: center;
}

.intro .bottom h4{
    color: white;
}

.intro .bottom p{
    color: rgba(245, 245, 245, 0.8);
}

#countdown{
    display: flex;
    margin: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: .5rem;
    justify-content: space-between;
}

#countdown #welcome h2, i{
    color: royalblue;
}

#welcome *:not(:last-child){
    margin-bottom: .5rem;
}

#countdown #timer{
    display: flex;
    justify-content: center;
}

#timer div{
    align-self: center;    border-left: 2px solid rgba(65, 105, 225, 0.5);
    padding: .5rem;
    margin-left: .5rem;
    font-weight: bolder;
    color: royalblue;
}

@media screen and (max-width: 640px) {
    .intro .bottom{
        flex-direction: column;
        padding: 1rem;
    }

    .intro .bottom div{
        padding: .5rem 1rem;
    }

    .text-slide{
        font-size: 1.5rem;
        margin: 15rem auto;
    }

    #countdown{
        flex-direction: column;
        margin: 0;
        justify-content: center;
        text-align: center;
        box-shadow: 0 0 0;
        padding: 2rem 1rem;
    }

    #timer div{
        margin-top: 1rem;
        margin-left: 0;
        padding: .2rem;
    }
}

.heading{
    display: flex;
    justify-content: center;
    width: 100%;
    flex-direction: column;
}

.heading * {
    margin: .2rem auto;
    text-align: center;
}

.heading h3{
    color: royalblue;
    border-bottom: 2px solid royalblue;
    width: max-content;
}

.items{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    grid-gap: 2rem;
}

#event{
    padding: 5rem 1rem 0 1rem;
    display: flex;
    flex-direction: column;
}

#event .item{
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: .5rem;
    height: max-content;
}

#event .item:not(:last-child){
    margin-bottom: 5rem;
}

#events{
    margin-top: 8rem;
    padding: 1rem;
}

#event .items .img{
    position: relative;
    display: flex;
    margin-bottom: 6rem;
}

#event .item img{
    width: 12rem;
    height: 10rem;
    position: relative;
    margin: -5rem auto;
    border: 5px solid rgba(65, 105, 225, 0.1);
}

#events .items .content{
    padding: .5rem;
}

#events .content h2, .content i{
    color: royalblue;
}

#events .content *{
    margin: .5rem 0;
}

#events .item .bottom h5{
    animation: 2s fade infinite;
    color: red;
    background: whitesmoke;
    width: max-content;
    padding: .5rem;
    border-radius: 3rem;
}

#worship-with-us{
    border: none;
    width: max-content;
    margin: 2rem auto;
    padding: 1rem 3rem;
    background: royalblue;
    color: white;
    border: 5px solid royalblue;
    border-radius: 3rem;
}

#worship-with-us:hover{
    border: 5px solid rgba(29, 78, 226, 0.5);
    outline: none;
}

@keyframes fade{
    0%{
        opacity: 1;
    }
    50%{
        opacity: .5;
    }
    100%{
        opacity: .9;
    }
}

#donation{
    padding: 5rem 1rem 0 1rem;
}

#donations{
    margin-top: 2rem;
    padding: 1rem;
}

#donations .item{
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: .5rem;
    height: max-content;
}

#donations .item h2{
    background: rgba(65, 105, 225, 0.7);
    color: white;
    padding: .5rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
    text-align: center;
}

#donations .items h4{
    color: royalblue;
    margin-bottom: .5rem;
}

#donations .items p:not(:last-child){
    margin-bottom: .5rem;
}

#donations i{
    color: royalblue;
}

#about{
    padding: 5rem 1rem 0 1rem;
}

#about .items{
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    grid-gap: 2rem;
}

#about .item{
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    height: max-content;
}

#about .items .heading{
    margin-bottom: .5rem;
}

#about .heading h3{
    border: none;
}

#contact{
    padding: 5rem 1rem 1rem 1rem;
}

#contact .heading{
    margin-bottom: 2rem;
}

#contact * {
    align-self: center;
}

#contact .row{
    display: flex;
    justify-content: space-between;
    margin: 0 5rem
}

#contact .img img{
    width: 20rem;
}

#contact i{
    color: royalblue;
}

#contact form{
    display: flex;
    flex-direction: column;
}

#contact form input{
    padding: 1rem;
    border: none;
    background: whitesmoke;
    width: 100%;
    margin: 1rem 0;
    border-radius: .5rem;
}

#contact textarea{
    padding: 1rem;
    border: none;
    background: whitesmoke;
    width: 100%;
    margin: 1rem 0;
    border-radius: .5rem;
    height: 12rem;
}

#contact form button{
    border: none;
    color: royalblue;
    padding: 1rem 3rem;
    border-radius: 3rem;
    width: 100%;
}

footer{
    padding: 1rem;
    background: royalblue;
    color: white;
    text-align: center;
}

@media screen and (max-width: 640px){
    section{
        font-size: .9rem;
    }
    #contact .img img{
        width: 15rem;
    }

    #contact .row{
        margin: 0;
    }

}