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

body,
html {
    height: 100%;
    overflow: hidden;
    display: flex;
    /* Use flexbox to ensure footer sticks to bottom */
    flex-direction: column;
    /* Stack elements vertically */
}

.gallery-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex: 1;
    /* Allow this section to grow and fill available space */
}

.gallery {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.image {
    flex-shrink: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    background-repeat: no-repeat;
}

.image-contain {
    background-size: contain;
    background-position: 30%;
}

.image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*  background: rgba(0, 0, 0, 0.3);*/
}

.text-overlay {
    position: absolute;
    top: 50%;
    right: 8.5%;
    transform: translateY(-50%);
    /*    background-color: rgba(212, 216, 227, 0.5);*/
    background-color: #fff;
    padding: 20px;
    width: 35vw;
    border-radius: 5px;
}

.main-color {
    color: #0a1d47;
}

.secondary-color {
    color: #248123;
}

.mybtn-one-color {
    background-color: #0a1d47 !important;
    color: #fff !important;
}

.mybtn-two-color {
    background-color: #248123 !important;
    color: #fff !important;
}

.loader{opacity:.7;background-image:url('loading.gif');background-repeat:no-repeat;background-position:center;position:absolute;width:100%;height:100%;top:0;left:0;z-index:1000;background-color:#fff;display:none}

.nav-link.active.secondary-color {
    color: #248123 !important;
    font-weight: bold !important;
}

.text-overlay h1 {
    margin-bottom: 10px;
    font-size: 2em;
}

.text-overlay p {
    font-size: 1.2em;
    line-height: 1.5;
}

.text-justify {
    text-align: justify;
}

/* Scroll Up and Scroll Down Styles */
.scroll-up,
.scroll-down {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    /*  background-color: rgba(0, 0, 0, 0.6);*/
    /*  background-color: rgba(212, 216, 227, 0.6);*/
    /*    background-color: rgb(212, 216, 227);*/
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #0a1d47;
    font-weight: bold;
}

.scroll-up {
    left: 10px;
    /* Position on the left side */
}

.scroll-down {
    right: 10px;
    /* Position on the right side */
}

.scroll-up i,
.scroll-down i {
    animation: blink 1s infinite alternate;
    /* Apply blinking only to the icon */
}

/* Blinking animation for the icon */
@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.hidden {
    display: none;
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    /* Light background for the footer */
    padding: 15px 0;
    text-align: center;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler {
    border: transparent !important;
}

@media (max-width: 1417px) {
    body {
        overflow: auto;
    }

    .desktop {
        display: none;
    }

    .tablet {
        display: block;
        background-color: #0a1d47;
    }

    .text-overlay2 {
        background-color: #fff;
        padding: 20px;
        border-radius: 5px;
    }

    /*.image {
        background-size: contain;
        background-position: unset;
    }
    .text-overlay {
        font-size: 0.5em;
        display: none;
    }
    .scroll-up, .scroll-down {
        top: 12.5%;
    }*/
}

@media (min-width: 1418px) {
    .desktop {
        background-color: #0a1d47;
    }

    .tablet {
        display: none;
    }
}