:root {
    /* color theme */
    --mycolor-main: #E4E6C3;
    --mycolor-secondary: #50723C;
    --mycolor-accent: #87BCDE;
    --mycolor-logo: #7F0000;
    --mycolor-black: #243B4A;
    --mycolor-black2: #2D4654;
    --mycolor-white: #F7F7F2;
}


html {
    min-height: 100%;
    height: 100%;
}


body {
    height: 100%;
    overflow-x: hidden;
}



.logo {
    max-width: 250px;
}

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





/* NAVBAR */
.nav-item {
    margin: 0 1em;
}

.nav-item,
.dropdown-item {
    font-weight: bold;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--mycolor-white, white) ; /*override bootstrap blue*/
}





/* BANNERS */
.fixed-bg, .scroll-bg {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;  
}

.fixed-bg {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    
    overflow: auto;

    width: 100%;
    height: 100%;
    height: 90vh;

    padding-bottom: 10vh;
    
    background-attachment: cover;
    
    color: var(--mycolor-black, black);
}

.fixed-bg h1,
.fixed-bg h3,
.fixed-bg p {
    letter-spacing: 0.1em;
    word-spacing: 0.2em;
    text-align: center;
    color: var(--mycolor-white, white);
    text-shadow: 2px 2px 8px var(--mycolor-black, black);
}

.fixed-bg h1 {
    padding-top: 25%;
    padding-bottom: 0.75em;
}

.scroll-bg {
    background-color: var(--mycolor-black, black);
    padding: 70px 70px;
    color: var(--mycolor-white, white);
}

.scroll-bg.bg-light {
    background-color: var(--mycolor-white, white);
    color: var(--mycolor-black, black) !important; 
}

/* TABLET */
@media all and (max-width: 960px) {
    .fixed-bg, .scroll-bg {
        padding: 1.5em;
    }

    .fixed-bg h1 {
        font-size: 2em;
    }
}





/* CAROUSEL */
.carousel-inner {
    height: 0;
    padding-bottom: 56%;  /*sets carousel aspect ratio (25% = 4:1) */ 
    /* padding-bottom: 100%; height adj on it's own */
}

.carousel-item {
    position: absolute !important; /* Bootstrap is insistent */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.carousel-item img {
    height: 100%; /* Bootstrap handles width already */
    object-fit: cover; /* or 'contain' if you want stretch instead of crop */
}





/* ARROWS */
.arrow {
    border: solid var(--mycolor-white, white);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    margin: 2px;
}

.arrow.dark {
    border: solid var(--mycolor-black, black);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    margin: 2px;
    width: 0.75em;
    height: 0.75em;
}

.arrow.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    position: relative;
    left: 0px;
    margin-right: 8px;
}

.arrow.left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    position: relative;
    left: 6px;
}

.arrow.up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    position: relative;
    left: 6px;
    top: 6px;
    margin-left: 8px;
    margin-right: 16px;
}

.arrow.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    position: relative;
    left: 6px;
    top: -1px;
    margin-left: 8px;
    margin-right: 16px;
}





/* BUTTON */
.button {
    border-radius: 36px;
    width: fit-content;
    padding: 0.75em 2.5em;
    background-color: var(--mycolor-secondary, green);
    font-weight: bolder;
    text-align: center;
    cursor: pointer;
    color: var(--mycolor-white, white);
}

.carousel-caption .button {
    margin: 0 auto;
}

.button:hover {
    text-decoration: underline;
}



/* BACK TO TOP BUTTON */
/* uses contact-icon--btn styles bc I'm lazy */
.contact-icon--btn#btn-back-to-top {
    aspect-ratio: 1/1;
    width: 32px;
    height: 32px;
    padding: 0.5em;
    border-radius: 50%;
    background-color: var(--mycolor-white, white);
}

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}





/* BREADCRUMB */

#breadcrumb {
    /* height: 3.25em; */
    /* background-color: var(--mycolor-white, white); */
    background-color: white;
    padding: 1.5em 3em 1.5em !important; /*override wrapper padding*/
}

/* TABLET */
@media all and (max-width: 960px) {
    #breadcrumb {
        padding: 1em 1.5em 1em !important; /*override wrapper padding*/
    }
}



/* WRAPPERS & PANELS */

.wrapper {
    display: flex;
    flex-direction: row;
    padding: 0 3em 3em;
    /* background-color: var(--mycolor-white, white); */
    background-color: white;
}

.panel-side {
    width: 25%;
}

.panel-side.left {
    padding: 0 3em 0 0;
    min-width: 320px;
}

.panel-side.right {
    padding: 0 0 0 3em;
}

.panel-main {
    display: flex;
    flex-direction: column;
    width: 75%;
}

.panel-sub {
    display: flex;
    flex-direction: row;
    
}

.panel-sub .panel-main {
    padding: 0 3em 0 0;
}

.sidebar {
    list-style: none;
}

.sidebar--item {
    justify-content: center;
    border-bottom: solid 1px var(--mycolor-white, white);
    padding: 1em 1em;
    text-align: end;
}

.sidebar--item.sub {
    padding: 1em 2.5em;
}

.sidebar--item:hover {
    cursor: pointer;
    /* underline <h3><a> */
    text-decoration-line: underline;
}

.sidebar--item h3 {
    margin: 0 1em;
    font-size: 0.75em;
    text-transform: uppercase;
    color: var(--mycolor-black2, black);
}



/* TABLET */
@media all and (max-width: 960px) {
/* @media all and (max-width: 992px) { */
    .wrapper,
    .panel-sub {
        flex-direction: column;
    }

    .wrapper {
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    .panel-main,
    .panel-side {
        width: 100%;
    }

    .panel-sub .panel-main {
    padding: 0 0 0 0;
    }

    .sidebar--item {
        text-align: start;
    }
}




.textbox-highlight {
    background-color: var(--mycolor-black2, black);
    color: white;
}

.color-white {
    color: white;
}





.article--img {
    align-self: center;
    margin: 1.5em;
    width: 50%;
}

.article--img img {
    width: 100%;
}

.article--img .caption {
    font-family: 'Libre Baskerville', Arial, Helvetica, sans-serif ;
    font-size: 0.75em;
    text-align: center;
    align-self: center;
}

/* MOBILE navbar */
@media all and (max-width: 700px) {
    .article--img {
        align-self: center;
        margin: 1.5em;
        width: 100%;
    }

    .article--img img {
        width: 100%;
    }
}





/* NO WRAP */
.stopwrap {
    white-space: nowrap;
}





/* CONTACT DETAILS (table) */

.contact-icon {
    padding: 6px;
    text-align: center;
    align-self: center;

}

.footer--content .contact-info{
    font-size: 0.75em;
}




.contact-icon--btn {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 32px;
    height: 32px;

    box-shadow: 0px 4px 16px #2D465433; /* --mycolor-black2*/
    border: solid 1px var(--mycolor-black, black);
    border-radius: 50%;

    background-color: var(--mycolor-black, black);
}

.contact-icon--btn:hover {
    transition: all 0.2s ease-out;
    box-shadow: 0px 4px 8px var(--mycolor-black2, black);
    background-color: var(--mycolor-black2, black);
}

.contact-icon--btn a {
    /* bc a tag was bigger than icom img, so it wasn't centredin btn */
    width: min-content;
    height: min-content;
}





/* BIBLE VERSES */

.bible-passage {
    align-self: center;
    width: 75%;
    margin: 1em 0;

    font-style: italic;
    font-family: 'Libre Baskerville', Arial, Helvetica, sans-serif ;
    text-align: center;
}

/* insert &nbsp; before each verse so that the number will not be alone at the end of the line*/
.bible-verse {
    font-size: 0.5em;
    vertical-align: super;
}

.bible-ref {
    white-space: nowrap;
    display: inline-block; /* allows margin on span */
    margin: 0.5em 0;
    color: var(--mycolor-black2, black);
}




/* CHURCHES */

/* 1 churches--banner */

.churches--banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)), url('/images/churches/GospelTrend_Waterloo/GospelTrend\ Kitchener\ -\ Jesus\ in\ the\ City\ 2022.09.11.jpg');
}



#church-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1em;
}

/* MOBILE */
@media all and (max-width: 700px) {
    #church-list {
        justify-content: space-around;
    }
}

.church-card {
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    box-shadow: 0px 4px 8px #2D465433; /* --mycolor-black2*/
    border: solid 1px var(--mycolor-black, black);
    border-radius: 18px;
    width: 240px;
    height: 320px;
    padding: 1em;
    font-size: 0.75em;
}

.church-card:hover {
    transition: all 0.2s ease-out;
    box-shadow: 0px 4px 8px var(--mycolor-black2, black);
}

.church-card .logo {
    display: flex;
    flex: 1;
    max-height: 214px;
    aspect-ratio: 1 / 1;
    /* background-color: white; */
}

.church-card .logo img {
    flex: 1;
    /* to ake sure it doesn't overflow .logo div */
    max-width:100%;
    max-height: 100%;
    /* to centre vertically */
    margin: auto auto; 
}

.card-title {
    min-height: 3em;
    z-index: 2; /* keep on top of submenu-bg logo */
}

.card-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}

.icons-list {
    display: flex;
    flex-direction: row;
}



/* church-card w multiple locations; submenu NOT ACTIVE*/

.church-card--submenu {
    display: none;
    transition: all 0.5s ease;
    z-index: 2; /* in front of submenu-bg logo */
}

/* church-card w multiple locations; submenu IS ACTIVE*/

.submenu-active .church-card--submenu {
    display: block;
}

.church-card.has-submenu.submenu-active {
    justify-content: space-between;
}

.church-card.has-submenu.submenu-active .card-contents {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.church-card.has-submenu.submenu-active .card-contents .card-details{
    margin-top: auto; /* align "View Less" to bottom of card */
}



/* toggle normal church logo */

.has-submenu .logo {
    display: block;
}

.has-submenu.submenu-active > .logo {
    display: none;
}


/* toggle submenu logo */
.church-card .card-contents .logo.submenu-bg img {
    display: block;
    opacity: 0.1;
}

.church-card .card-contents .logo.submenu-bg {
    display: none;
}

.church-card.has-submenu.submenu-active .card-contents .logo.submenu-bg {
    display: block;
    position: absolute;
    z-index: 1;
}




.church-card--subitem{
    list-style: none;
    margin: 0.25em 0;
}






/* CHURCH PAGES */



/* church map */

#map {
    width: 100%;
    max-width: 100%;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

#map iframe {
    position: absolute;
    left: 0;
    width: 100% !important;
}




/* STAFF */

.staff--banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)), url('/images/CPMI_23rd_Anniversary_2023.04.22-ptrs.JPG');
}

.staff-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1em;
}

/* MOBILE */
@media all and (max-width: 700px) {
    .staff-list {
        justify-content: space-around;
    }
}

.staff-card {
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 240px;
    height: 320px;
    padding: 1em;
    font-size: 0.75em;
}

.staff-card--img {
    display: flex;
    justify-content: center;
    aspect-ratio: 1 / 1; /* stop stretching into oval */

    /* circle frame: */
    box-shadow: 0px 4px 8px #2D465433; /* --mycolor-black2*/
    /* border: solid 1px var(--mycolor-black, black); */
    border-radius: 50%;
    overflow:hidden;
}

.staff-card--img img {
    /* fill circle frame */
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.staff-card .card-contents {
    text-align: center;
}


/* temp hide unknown ptrs & those wout pics */
.staff-card.noinfo {
    display: none;
}

.staff-card.nopic {
    /* display: none; */
}


/* SUPPORT US */

.donate--banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)), url('/images/support-us/2024.04.19 - Cagers for Christ.jpg');
    height: 50vh;
}
