body {
    background-image: url("../background_pic.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Ensures the background image stays fixed during scroll */
    background-position: center; /* Centers the background image */
    margin: 0;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    font-size: 2em;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque background */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.subtitle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 20vh;
    padding: 1rem 20%;
    background-color: rgba(100, 149, 237, 0.9); /* Cornflower blue color */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.subtitles {
    font-size: 1.35em;
    text-align: center;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 25%;
}

.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque background */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.slider-ul {
    width: 75%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around; 
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.slider-li {
    cursor: pointer;
    padding: 1rem 5%;
    display: flex;
    flex-direction: row;
    position: relative; /* Ensure the pseudo-element is positioned relative to the li */
    font-size: 1.5em;
}

.slider-li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Dark overlay */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.slider-li:hover::before {
    opacity: 1;
}

.slider-li:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.slider-li:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.slider-li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -3.5%; /* Adjust the position as needed */
    color: lightgray;
    font-size: 1.5em; /* Adjust the size as needed */
    top: 50%;
    transform: translateX(50%); /* Center the separator horizontally */
    transform: translateY(-50%); /* Center the separator vertically */
    font-weight: normal;
}

.slider-loading {
    width: 0;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-top: 1rem;
    align-self: flex-start;
    animation: loading 15s linear forwards;
}

.slider-text {
    font-size: 1.5em;
    padding: 1rem 10%;
}

footer {
    display: flex;
    flex-direction: row;
    font-family: 'Quicksand', sans-serif; 
    font-size: 14px; 
    color: #6c757d;
    text-align: center;
    justify-content: center;
}

#footer-p {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}

#footer-a {
    color: #007bff; 
    font-size: 14px;
    text-decoration: none;
    padding: 0 0.25rem;
}



@keyframes loading {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.slider-p {
    transition: opacity 0.1s ease-in-out;
}



* {
    font-family: 'Afacad Flux', sans-serif;
    box-sizing: border-box; 
 }

 @media only screen and (max-width: 720px) {
    h1 {
        font-size: 3em;
    }
    
    .navbar-ul {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    

}

@media only screen and (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    .main {
        justify-content: center;
    }
    #btn-tutoring {
        font-size: 1em;
    }

    .navbar-ul {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        list-style-type: none;
        margin: 0;
        padding: 0;
        font-size: 0.75em;
    }

    #navbar-img {
        max-width: 35px;
        height: auto;
        
    
    }

}


@media (max-width: 480px) {

    #particles-js {
        height: 60%;
    }


    body {
        font-size: 1em;
    }

    .navbar {
        height: 8vh;
    }

    .navbar-ul {
        width: 90%;
    }

    .navbar-li {
        font-size: 1em;
    }

    .main-container {
        padding: 10rem 0;
        font-size: 1.5em;
    }

    .subtitle-container {
        padding: 1rem 10%;
        height: auto;
    }

    .subtitles {
        font-size: 1em;
    }

    .slider-container {
        padding: 0.5rem;
    }

    .slider-ul {
        font-size: 0.75em;
        width: 100%;
    }

    .slider-li {
        padding: 0.5rem 2%;
        font-size: 1.2em;
    }

    .slider-li:not(:last-child)::after {
        right: -2%;
        font-size: 1.2em;
    }

    .slider-text {
        font-size: 1em;
        padding: 0.5rem 2.5%;
    }
}