:root {
    --primary: #0E023F;
    --secondary: rgba(14,2,63,0.11);
    --background-light: rgba(14,2,63,0.05);
    --text: #080808;
}

body, html {
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    color: var(--text);
    padding: 0px;
    margin: 0px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
}

.cover-home-title-wrap {
    max-width: 600px;
}

.mwidth {
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0px 20px;
}

p {
    color: var(--text);
    line-height: 1.65;
    font-size: 18px;
}

.section {
    box-sizing: border-box;
    padding: 30px 0px;
}

header {
    background-color: white;
    box-sizing: border-box;
    padding-bottom: 15px;
    width: 100%;
}

.header-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

img.header-img {
    max-width: 300px;
    padding-top: 15px;
}

nav.header-nav {
    padding-top: 15px;
}

ul.header-nav-list {
    list-style: none;
    font-size: 18px;
    padding: 0px;
    margin: 0px;
}

li.header-nav-list-item {
    display: inline-block;
    box-sizing: border-box;
    padding: 10px 20px;
    transition: 0.2s;
    opacity: 0.7;
}
li.header-item-active {
    opacity: 1.0;
}
li.header-nav-list-item:hover {
    opacity: 0.9;
}

a.header-nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

/* Zoom Meeting Panels */

.zoom-panel {
    background-color: var(--background-light);
    box-sizing: border-box;
    padding: 30px;
    border: 2px solid var(--primary);
    margin-bottom: 30px;
}

.zoom-panel .header {
    font-weight: 600;
    font-size: 20px;
}

.zoom-panel .subheader {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.8;
}

.zoom-panel p.intro {
    margin-bottom: 30px;
    font-size: 14px;
}

.zoom-panel a.join-btn, .zoom-panel .meeting-id {
    border: 2px solid black;
    color: black;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    box-sizing: border-box;
    padding: 8px 16px;
    font-weight: 900;
    border-radius: 3px;
}

.zoom-panel a.join-btn {
    background-color: green;
    color: white;
    border: 2px solid green;
}

/* Cover Home */

.cover-home {
    background-image: url(../assets/home-cover.jpg);
    height: 500px;
    background-size: cover;
    width: 100%;
    box-sizing: border-box;
    padding-top: 100px;
}

h1.cover-title {
    color: white;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
}

a.cover-cta {
    text-decoration: none;
    color: var(--text);
    background-color: white;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 16px 28px;
    margin-right: 15px;
    font-weight: 600;
}

/* Home Content */

.home-top-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 20px;
}

.welcome-section {
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    padding-bottom: 50px;
}

h2.section-title {
    color: var(--primary);
    margin-top: 0px;
}
h2.section-title-no-margin {margin-bottom: 0px;}

img.minister-img {
    width: 80%;
    box-shadow: 3px 4px 11px #dddddd;
    border-radius: 5px;
}

a.link-button {
    color: white;
    background-color: var(--primary);
    font-size: 16px;
    box-sizing: border-box;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    display: inline-block;
}

.memorial-book {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background-color: var(--background-light);
    color: var(--primary);
    border: 2px solid var(--primary);
    text-align: center;
    margin-top: 30px;
}

.memorial-book h4 {
    margin-top: 0px;
}

.memorial-book p.intro {
    font-style: italic;
}

.memorial-book p.names {
    font-weight: 700;
}

/* Home Parallax Church Interior */

.home-parallax {
    background-image: url(../assets/church-interior-parallax.jpg);
    background-size: cover;
    height: 500px;
    width: 100%;
    box-sizing: border-box;
    padding-top: 60px;
}

p.parallax-text {
    color: white;
    font-size: 20px;
    max-width: 50%;
    font-weight: 600;
}

/* Home Bottom Section */

.home-bottom-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
}

h4.service-times-timestamp {
    margin-bottom: 5px;
}

p.service-times-text {
    font-size: 16px;
    margin-top: 0px;
}

p.service-times-additionals {
    background-color: var(--background-light);
    color: var(--primary);
    font-size: 14px;
    box-sizing: border-box;
    padding: 10px 20px;
    border-left: 2px solid var(--primary);
}

img.map {
    width: 100%;
    box-shadow: 3px 4px 11px #dddddd;
}

/* Gallery */

.gallery-section {
    box-sizing: border-box;
    padding-bottom: 30px;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 550px;
}

@keyframes gallery-scroll {
    0% {left: 1000px;}
    10% {left: 0px;}
    90% {left: 0px;}
    100% {left: -1000px;}
}

.gallery-item {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 1000px;
    width: 100%;
    height: 100%;
}
.active {
    animation-name: gallery-scroll;
    animation-duration: 4s;
    animation-iteration-count: 1;
}
#gallery_item_1 {background-image: url(../assets/updated/christian_aid.jpg);}
#gallery_item_2 {background-image: url(../assets/updated/church_interior.jpg);}
#gallery_item_3 {background-image: url(../assets/updated/church_outside.jpg);}
#gallery_item_4 {background-image: url(../assets/updated/coffee.jpg);}
#gallery_item_5 {background-image: url(../assets/updated/foobank.jpg);}
#gallery_item_6 {background-image: url(../assets/updated/good_friday.jpg);}
#gallery_item_7 {background-image: url(../assets/updated/jubilee.jpg);}
#gallery_item_8 {background-image: url(../assets/updated/pentecost.jpg);}

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

img.notices-img {
    width: 100%;
    box-shadow: 3px 4px 11px #dddddd;
}

/* Footer */

footer {
    background-color: white;
    box-sizing: border-box;
    padding-top: 30px;
    border-top: 2px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    column-gap: 80px;
}

img.footer-logo {
    width: 100%;
}

p.footer-mission {
    font-size: 14px;
    color: var(--primary);
    opacity: 0.8;
}

h4.footer-title {
    color: var(--primary);
    margin-top: 0px;
}

img.footer-contact-icon {
    width: 18px;
    margin-right: 6px;
    position: relative;
    top: 3px;
}

a.footer-contact-link, a.sitemap-link {
    color: var(--primary);
    text-decoration: none;
    opacity: 0.7;
    font-size: 14px;
}
a.sitemap-link {display: block;}
a.footer-contact-link:hover, a.sitemap-link:hover {
    opacity: 1.0;
}

.footer-bottom {
    background-color: var(--primary);
    color: white;
    font-size: 12px;
    box-sizing: border-box;
    padding: 20px 0px;
    margin-top: 20px;
    text-align: center;
}

.footer-bottom a {
    color: white;
}

/* Whats On */

.cover-whats-on {
    background-image: url(../assets/whats-on-cover.jpg);
    height: 500px;
    background-size: cover;
    width: 100%;
    box-sizing: border-box;
    padding-top: 320px;
}

.whats-on-title-wrap {
    max-width: 600px;
}

.community-booking-box {
    width: 100%;
    background: var(--background-light);
    box-sizing: border-box;
    padding: 15px 15px;
}

h3.community-booking-title {
    color: var(--primary);
    margin-top: 0px;
}

.community-booking-grid-outer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 20px;
    margin: 20px 0px;
}

.community-booking-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 30px;
    margin-bottom: 8px;
    font-size: 14px;
}

span.community-booking-time {
    font-weight: 600;
}

.community-booking-sidenotice {
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    width: 100%;
    text-align: center;
}

.diary {
    margin: 20px 0px;
}

.diary-row {
    display: grid;
    grid-template-columns: 1fr 3fr;
    box-sizing: border-box;
    padding: 10px 10px;
    font-size: 14px;
}
.diary-row:nth-child(odd) {
    background-color: var(--background-light);
}

.diary-row-inner-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
}

/* About */

.cover-about {
    background-image: url(../assets/church-interior-parallax.jpg);
    height: 500px;
    background-size: cover;
    width: 100%;
    box-sizing: border-box;
    padding-top: 110px;
    text-align: center;
}

.cover-about-title-wrap {
    max-width: 600px;
    margin: 0 auto;
}

hr.about-cover-rule {
    width: 100px;
}

.about-cover-mission {
    color: white;
    font-size: 28px;
    font-weight: 600;
    font-style: italic;
    margin-top: 30px;
    text-shadow: 0px 0px 1px black;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
}

.church-staff {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
}

div.church-staff-roles span, div.church-staff-names span {
    display: block;
    margin-bottom: 6px;
}

.minister-letter {
    background: var(--background-light);
}

.church-staff-roles {
    font-weight: 600;
}

ul.about-links-list {
    padding-left: 20px;
}

li.about-links-list-item {
    margin-bottom: 10px;
}

a.about-link {
    color: var(--text);
    transition: 0.2s;
}
a.about-link:hover {
    color: var(--primary);
}

/* Christmas Service */

.service-item {
    background-color: #002d0a;
    color: white;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
    color: white;
    margin-bottom: 20px;
}

.service-item .date {
    opacity: 0.7;
    font-weight: 600;
}

.service-item .row {
    margin-top: 5px;
}

.service-item .row .time {
    width: 60px;
    display: inline-block;
    font-weight: 600;
    opacity: 0.9;
}

.service-item .row .service {
    margin-left: 10px;
    opacity: 0.9;
}

/* Safeguarding */

.key-contact {
    background: #eee;
    box-sizing: border-box;
    padding: 20px;
    margin-bottom: 20px;
}

.key-contact .position {
    font-weight: 600;
    margin-bottom: 5px;
}

.key-contact .name {
    margin-bottom: 10px;
}

.key-contact a {
    display: block;
}

ul.doc-download-list li, ol.terms-list li {
    margin-bottom: 15px;
}

.booking-alert {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.booking-alert .title {
    font-size: 22px;
    font-weight: 600;
}

.booking-alert ul li a {
    text-decoration: none;
    font-weight: 600;
    color: inherit;
}

.booking-alert ul li a:hover {
    text-decoration: underline;
}

.booking-alert ul li {
    margin-bottom: 15px;
}

.booking-alert a.booking-form-btn {
    background-color: #856404;
    color: #fff3cd;
    width: 100%;
    display: block;
    text-align: center;
    box-sizing: border-box;
    padding: 12px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 30px;
}

/* Media Queries */

@media screen and (max-width: 1000px) {
    .cover-home-title-wrap {width: 600px;}
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        row-gap: 30px;
    }
    img.footer-logo {width: 250px;}
}

@media screen and (max-width: 950px) {
    .about-grid {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }
}

@media screen and (max-width: 800px) {
    .community-booking-grid-outer {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 750px) {
    .header-grid {grid-template-columns: 1fr;}
    header {text-align: center;}
    img.header-img {width: 300px; margin: 0 auto;}
    nav.header-nav {text-align: center;}
}

@media screen and (max-width: 650px) {
    .cover-home-title-wrap {
        float: none;
        text-align: center;
        width: 100%;
    }
    .cover-home {height: 400px; padding-top: 100px;}
    h1.cover-title {font-size: 32px;}
    p.parallax-text {max-width: 100%;}
    .home-bottom-section-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}

@media screen and (max-width: 600px) {
    .home-top-section-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}

@media screen and (max-width: 450px) {
    img.header-img {width: 100%;}
    li.header-nav-list-item {padding: 10px 10px;}
}