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;
}

a {
    color: lightgray;
    font-size: 1.5em;
    text-decoration: none;
}

a:hover {
    color:white;
}

.navbar-li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.contact-info-li {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.icon-images {
    width: 1.5em;
    height: auto;
    filter: opacity(0.8);
    margin-right: 1.5em;
}

#mail-a {
    font-size: 1.2em;
}

img {
    max-width: 65px;
    height: auto;
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

img:hover {
    transform: scale(1.1); /* Slightly enlarge the image on hover */
}

.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%;
}

.contact-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    padding: 2rem;
    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 */
    margin: 0;
}

.contact-info, .contact-form {
    width: 45%;
}

.contact-info h2, .contact-form h2 {
    font-size: 1.75em;
    margin-bottom: 1rem;
}

.contact-info ul {
    list-style-type: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    font-size: 1.25em;
}

.contact-info a {
    color: #007BFF;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.25em;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    height: auto;
    padding: 0.5rem;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#message {
    padding-bottom: 5rem; 
}

.contact-form button {
    padding: 0.75rem 1.5rem;
    font-size: 1.25em;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0056b3;
}

* {
    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;
    }

    .contact-container {
        flex-direction: column;
        padding: 1rem;
    }

    .contact-info, .contact-form {
        width: 100%;
    }

    .contact-info h2, .contact-form h2 {
        font-size: 1.5em;
    }

    .contact-info li, .contact-form label {
        font-size: 1em;
    }

    .contact-form button {
        font-size: 1em;
    }
}