footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

/* Ensure footer stays at the bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1; /* Pushes the footer to the bottom */
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-item {
    padding: 0 20px;
}

.footer-line {
    width: 2px;
    height: 20px;
    background-color: #4CAF50;
    margin: 0 10px;
}

footer a {
    text-decoration: none;
    color: inherit;
}

footer a:hover {
    color: grey;
}

footer img {
    width: 24px;
    height: 24px;
    margin: 0 10px;
}

footer .fab {
    margin: 0px 0.6em;
}

.footer-copyright-line {
    height: 2px;
    background-color: #4CAF50;
    margin: 20px auto 10px auto; /* Adjust margin for spacing */
}

@media screen and (min-width: 851px) {
    .footer-copyright-line {
        width: 75%;
    }
}

@media screen and (max-width: 850px) {
    .footer-info {
        flex-direction: column;
    }

    .footer-item {
        margin-bottom: 10px;
        padding: 0;
    }

    .footer-line {
        display: none;
    }

    .footer-copyright-line {
        width: 100%;
    }
}