@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --background-navbar: #C79469;
    --background-navbar-active: #b17645;
    /* --main-red: #982f00; */
    --main-red: #c00113;
    --link-active: #f1c14b;
    --link: #EFC65F;
    --link-hover: #E35D27;
    --title-color: #313E2A;
    --light-gray-bg: #F1F1F1;
    --text-color: #5c697b;
}

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

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    word-break: break-word;
    color: var(--link-active);
    transition: color .2s ease;
}

a:hover {
    color: var(--link-hover);
}

body {
    font-family: 'Roboto', sans-serif;
}

.container {
    max-width: 1140px;
    margin: auto;
}

.header-bg {
    height: 100vh;
}

p {
    color: var(--text-color);
}

.header-title {
    color: var(--main-red);
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    font-weight: 500;
    /* text-shadow: -1px 1px 1px var(--main-red); */
}

.header-subtitle {
    color: var(--main-red);
    font-family: 'Times New Roman', Times, serif;
    /* text-shadow: -1px 1px 1px var(--main-red); */
}

.header-extra-sub {
    color: var(--main-red);
    font-size: 28px;
    font-weight: 400;
}

.heading-wrapper>.middle {
    text-align: center;
}

.logo-left {
    min-width: 120px;
}

.navigation>.navlist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    padding: 10px 30px;
}

.navigation>.navlist li a {
    color: #FFF;
    font-size: 18px;
    opacity: 1;
    transition: .2s ease;
}

.navigation>.navlist li a:hover {
    background: var(--background-navbar-active);
}

.navigation>.navlist li a.active {
    background: var(--background-navbar-active);
    color: #fff;
}

.main-logos {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
}

.main-logos img {
    width: 100%;
}


.footer .copyright {
    background-color: #f1f1f1;
    color: gray;
    font-size: 14px;
    text-align: center;
    padding: 1rem;
}

h1.title {
    color: var(--title-color);
    font-size: 40px;
    text-transform: uppercase;
    text-align: center;
    margin: 40px 0;
}

.light-bg {
    background-color: var(--light-gray-bg);
    padding: 30px 0;
}

.header-title-wrapper {
    align-items: center;
    display: flex;
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    padding: 16px;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

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

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.header-content-box aside.content-box {
    padding: 2rem;
}

.header-content-box aside.content-box p {
    color: #fff;
}

.header-content-box aside.content-box h1 {
    color: #212121;
    font-size: clamp(1.4rem, 2vw - 10px, 1.8rem);
    margin: 0 0 2rem;
}

.footer-float {
    position: absolute;
}

@media only screen and (max-width: 768px) {
    .logo-right {
        text-align: center;
    }

    .footer-float {
        inset: auto auto 20px 15%;
        text-align: center;
    }

    .footer-float p {
        color: #212121;
        font-size: .9rem;
    }

    .header-bg {
        background-image: none;
        background: #F1F1F1;
    }

    .header-bg-mobile {
        /* background-image: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.9)), url('../images/header-bg-no-title.jpg');
        background-position: 15%; */
    }

    .header-logo {
        display: none;
    }

    .main-content {
        background-image: linear-gradient(to bottom, rgba(0 0 0 / .7), rgba(0 0 0 / .9)), url('../images/pan-de-vida.jpg');
        background-position: center;
    }

    .header-title-wrapper {
        margin-top: 50px;
        padding: 0 10px;
    }

    .main-logos {
        grid-template-columns: auto;
        padding: 15px;
    }

    .middle {
        padding-top: 10px;
    }

    .logo-right {
        display: block;
        margin: 10px auto;
        width: 100px;
    }

    .navigation {
        background-color: var(--background-navbar);
    }

    .navigation>.navlist {
        display: none;
    }

    .navigation {
        padding: 10px 0;
        position: relative;
    }

    .bar {
        align-items: flex-end;
        cursor: pointer;
        margin-right: 30px;
        display: flex;
        flex-direction: column;
    }

    .content-box p {
        font-size: .9rem;
    }

    .bar1,
    .bar2,
    .bar3 {
        width: 35px;
        height: 4px;
        background-color: white;
        margin: 3px 0;
        -webkit-transition: 0.4s;
        transition: 0.4s;
    }

    .change .bar1 {
        -webkit-transform: rotate(-45deg) translate(-9px, 6px);
        transform: rotate(-45deg) translate(-9px, 6px);
    }

    .change .bar2 {
        opacity: 0;
    }

    .change .bar3 {
        -webkit-transform: rotate(45deg) translate(-8px, -12px);
        transform: rotate(45deg) translate(-8px, -6px);
    }

    .navigation>.toggle-nav {
        display: block;
        position: absolute;
        width: 100%;
        background-color: var(--background-navbar);
        z-index: 10;
    }

    .navigation>.toggle-nav li {
        padding: 10px 0;
    }

    .navigation>.toggle-nav li:not(:last-child) {
        border-bottom: 1px solid #ccc;
    }

    .header-content-box aside.content-box p {
        color: #212121;
    }

    a {
        color: var(--main-red);
    }

}

@media only screen and (min-width: 768px) {
    .header-title-wrapper {
        gap: 20px;
        height: calc(100vh - 230px);
        justify-content: flex-end;
    }

    .header-logo-right {
        padding-right: 60px;
    }

    .footer-float {
        inset: auto 60px 20px auto;
    }

    .header-content-box {
        align-items: center;
        display: flex;
        justify-content: flex-end;
        margin: 80px 60px 0 0;

    }

    .header-content-box aside.content-box {
        border: 1px solid #ccc;
        border-radius: 5px;
        width: 580px;
    }

    .header-content-box aside.content-box p {
        color: #212121;
    }

    .header-content-box aside.content-box h1 {
        color: #212121;
    }

    .main-content::before {
        aspect-ratio: 1 / 1;
        background-image: url('../images/iglesia-bautista-heading.png');
        background-size: cover;
        content: '';
        filter: grayscale(100%);
        inset: auto auto 15px auto;
        opacity: .5;
        position: absolute;
        width: 200px;
    }

    .header-title {
        font-size: 5rem;
    }

    .header-subtitle {
        font-size: 2rem;
    }

    .heading-wrapper {
        display: flex;
        justify-content: space-between;
        padding: 2rem 60px;
    }

    .logo-right {
        height: 120px;
        width: 120px;
    }

    .navigation>.navlist {
        padding: 30px 60px 0;
    }

    .navigation>.navlist a {
        background-color: var(--background-navbar);
        padding: 8px 30px;
    }

    .navigation>.navlist {
        justify-content: flex-end;
    }

    .navigation>.navlist li:not(:last-child) {
        margin-right: 20px;
    }
}

/* width */
::-webkit-scrollbar {
    width: 15px;

}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;

}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    height: 4em;

}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}