body {
    font-family: 'Lato', sans-serif;
    position: relative;
}

body::before {
    content: "";
    background: url('../images/family-pic.jpeg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.4;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}

.navbar {
    border-radius: 0;
}

.nav-link {
    color: #fff !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

section {
    padding: 50px 0;
}

.sticky-nav+#hero-section {
    position: sticky;
    top: 70px;
    z-index: 999;
}

.hero-section {
    /* background-color: white; */
    padding: 20px 0;
    transition: all 0.3s ease-in-out;
}

.hero-section.sticky {
    position: sticky;
    top: 0;

}

.hero-section.spread {
    padding-top: 50px;
    padding-bottom: 50px;
}

.section-title {
    margin-top: 0;
    transition: all 0.3s ease-in-out;
}

.section-description {
    margin-bottom: 0;
    transition: all 0.3s ease-in-out;
}

.card {
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.card:hover .caption-overlay {
    transform: translateY(0%);
}

.card:active {
    transform: translateY(0);
    box-shadow: none;
}

.card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-deck {
    display: flex;
    flex-wrap: wrap;
}

.card-deck .card {
    flex: 1;
    margin: 10px;
    display: flex;
    flex-direction: column;
}

.card-deck .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 10px;
}

.caption-overlay {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: transform 0.2s ease-in-out;
    transform: translateY(100%);
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0px 0px 5px #000;
    text-align: center;
}

.card-title a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: normal;
    margin-top: 1rem;
}

.card-title a:hover {
    text-decoration: underline;
}


.card-text {
    color: #777;
    height: 200px;
    /* Set a fixed height for all card-text elements */
    overflow-y: auto;
    /* Enable vertical scrolling if the content overflows the fixed height */
}

.card-footer {
    background-color: #fff;
    border-top: none;
}

.card-footer small {
    color: #777;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.form-control {
    border-radius: 0;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show>.btn-primary.dropdown-toggle {
    background-color: #0062cc;
    border-color: #005cbf;
}

@media (min-width: 992px) {
    .sticky-top {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1020;
    }
}

@media (max-width: 991.98px) {
    .navbar-expand-sm .navbar-nav .nav-link {
        color: #333 !important;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
    /* Set the width of the scroll bar */
}

::-webkit-scrollbar-track {
    background-color: #f2f2f2;
    /* Set the background color of the scroll bar track */
}

::-webkit-scrollbar-thumb {
    background-color: #ccc;
    /* Set the background color of the scroll bar thumb */
    border-radius: 10px;
    /* Set the border radius of the scroll bar thumb */
    border: 2px solid #f2f2f2;
    /* Set the border style of the scroll bar thumb */
}