/* General body styles */
html,body {
    background-color: transparent !important;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive Main Content */
main {
    flex: 1; /* Pushes the footer to the bottom */
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 20px auto;
    padding:20px;
    background-color: white;
}

/* Responsive Headings */
h1, h2 {
    color: black;
    font-size: 1.2rem !important;
    margin-bottom: 10px;
    word-wrap: break-word; /* Prevents text from overflowing */
}


/* Responsive Paragraphs */
p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    word-wrap: break-word;
}

/* Responsive Links */
a {
    color: #0078d7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive List styles */
ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

#footerContainer {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    position: relative; 
    bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    main {
        max-width: 90%;
        padding: 15px;
    }

    h1, h2 {
        font-size: 1.1rem !important;
    }

    p {
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    main {
        max-width: 95%;
        padding: 15px;
        margin: 10px auto;
    }

    h1, h2 {
        font-size: 1rem !important;
    }

    p {
        font-size: 0.9em;
    }

    .navbar {
        flex-wrap: nowrap;
        position: relative; /* Required to ensure positioning works */
    }

    .navbar-toggler {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .navbar-nav.mx-auto {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        top: 50%;
        white-space: nowrap;
    }

    .dropdown.ml-auto {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    ul {
        margin-left: 15px;
    }
}

@media (max-width: 480px) {
    main {
        max-width: 100%;
        padding: 10px;
        margin: 5px auto;
    }

    h1, h2 {
        font-size: 0.9rem !important;
    }

    p {
        font-size: 0.85em;
    }

    .dropdown.ml-auto {
        order: 3;
        right: 10px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    ul {
        margin-left: 10px;
    }
}
@media (max-height: 600px) {
    #footerContainer {
        position: absolute;
        bottom: 0;
    }
}
