/* Mobile-first CSS styles: find overrides for tablet and desktop below */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F5F5F5;
    color: #333333;
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

nav {
    display: inline;
    left: 0;
    position: fixed;
    text-shadow: 1px 1px 4px grey;
    top: 0;
    white-space: nowrap;
    width: 100vw;
    z-index: 99;
}

nav .brand-logo {
    color: #0D5EAA;
    font-size: 2.0rem;
}

#nav-mobile a {
    color: #0D5EAA;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

#our-values, #investor-services, #about-us, #contact {
    /* Ensure target displayed with some space above */
    scroll-margin-top: 7.2rem;
    transition: color 0.3s ease;
}

/* Pretty picture when landing */
.banner-image {
    border: 2px solid black;
    height: 100vh;
    position: relative; /* Allow positioning child elements within it */
}

/* Advisers to Discerning Investors */
.banner-text {
    animation: fadeInUp 2.5s ease forwards; /* Apply the animation */
    color: white;
    font-size: 3.5rem;
    font-style: italic;
    left: 50%;
    line-height: 8.0rem;
    opacity: 0; /* Initially hide the text */
    position: absolute;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    top: 47%;
    transform: translate(-50%, -50%); /* Center the text */
    width: 80%;
    z-index: 2;
}

.container {
    margin: 0 auto;
    width: 90%;
}

.slide-container {
    height: 100%;
    position: relative;
    width: 100%;
}

.slide-container img {
    /* (`n` seconds delay times num images) */
    animation: slideShow 25s infinite;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    width: 100%;
}

/* Must be a perfect multiple of slideShow animation duration */
.slide-container img:nth-child(1) { animation-delay: 0s; }
.slide-container img:nth-child(2) { animation-delay: 5s; }
.slide-container img:nth-child(3) { animation-delay: 10s; }
.slide-container img:nth-child(4) { animation-delay: 15s; }
.slide-container img:nth-child(5) { animation-delay: 20s; }

@keyframes slideShow {
    0% {
        opacity: 0;
        z-index: 1;
    }
    20% { opacity: 1; }
    80% {
        opacity: 0;
        z-index: 0;
    }
}

/* "Visavis is a licensed investment counseling firm. We offer..." */
.banner {
    font-family: 'Noto Sans';
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 6vh;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.fancy-hr {
    border: none;
    height: 4px;
    background-image: linear-gradient(to right, #949494, #0D5EAA, #949494);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%); /* Start slightly above */
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%); /* End at the center */
    }
}

section {
    font-size: 120%;
    margin-bottom: 5vh;
    margin-top: 2vh;
}

.first {
    margin-top: 100px;
}

section h1 {
    color: #0D5EAA;
    font-size: 200%;
    margin-top: 3rem;
    text-decoration: bold;
    transition: color 0.3s ease;
}

section h3 {
    font-size: 150%;
    margin-top: 2.5rem;
    padding-bottom: 1.5rem;
}

section p {
    font-size: 120%;
}

section ul li {
    font-size: 130%;
    list-style-type: none;
    margin-bottom: 2.5rem;
    margin-left: 3%;
    text-indent: -2.7rem;
}

section > ul > li::before {
    content: "►";
    font-size: 90%;
    list-style-type: none;
    margin-right: 1.2rem;
}

hr {
    border: 0;
    border-top: 2px solid #bbb; /* Adjust color and thickness as needed */
    margin: 2rem 0;
}

.vis-pic {
    border-radius: 7px; /* Slightly rounded corners */
    box-shadow: 1px 3px 7px rgba(0, 0, 0, 0.3);
    height: auto; /* Maintain aspect ratio */
    margin: 20px auto; /* Center the image horizontally with spacing */
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 320px;
}

.vis-pic:hover {
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.4); /* Enhance the shadow */
    transform: translateY(-5px); /* Move the image slightly up */
}

.bio-container {
    margin-left: 2rem;
/*     display: flex; */
}

.contact {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.discuss {
    font-style: italic;
    margin-bottom: 2.0rem;
    text-align: center;
}

footer {
    background-color: #0D5EAA;
    bottom: 0;
    font-size: 1.2rem;
    left: 0;
    text-shadow: 1px 1px 2px black;
    z-index: 99;
}

footer ul li {
    list-style-type: none;
}

footer ul li::before {
    color: white;
    content: "►";
    display: inline-block;
    font-size: 60%;
    margin-right: 1rem;
}

.col.l3.s12 ul {
    padding-left: 0; /* Remove default padding from the ul */
}

.footer-copyright {
    padding-bottom: 3rem;
    padding-top: 2rem;
}

/* Tablet styles */
@media (min-width: 768px) {
    body {
        line-height: 2.0;
    }
    nav {
        padding-left: 1vw;
        padding-right: 1vw;
    }
    nav .brand-logo {
        color: #0D5EAA;
        font-size: 2.5rem;
    }
    .banner-text {
        font-size: 5.0rem;
    }
    .container {
        margin: 0 auto;
        width: 85%;
    }
    section h1 {
        font-size: 275%;
    }
    section h3 {
        font-size: 200%;
    }
    .bio-container {
        align-items: center;
        display: flex;
    }
    .bio {
        margin-left: 2rem;
    }
    .privacy-policy {
        margin-top: 150px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    nav {
        padding-left: 1.5vw;
        padding-right: 1.5vw;
    }
    nav .brand-logo {
        color: #0D5EAA;
        font-size: 2.5rem;
    }
    .banner-text {
        font-size: 6.0rem;
    }
    .banner {
        font-size: 2.0rem;
        line-height: 1.7;
    }
    .container {
        width: 75%;
    }
}
