@media only screen and (max-width: 47.99rem) {

    #logo-div {
        display: none;
    }

    header {
        position: fixed;
        bottom: 0;
        z-index: 1000;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    header > nav {
        width: 100%;
        padding: 0;
        background-color: var(--color-white);
        font-family: var(--font-display);
    }

    nav ul {
        display: flex;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    nav li {
        /* Removed the border cause it was ugly sorry*/
        flex: 1 1 0;
        border-radius: 8px 8px 0 0;
    }

    nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        text-decoration: none;
        color: inherit;
        color: var(--color-primary);
    }

    .nav-icon {
        display: inline-block;
        width: 1.8rem;
        height: 1.8rem;
        fill: var(--color-primary);
        visibility: visible;
    }

    .hero-card {
        min-width: 90%;
    }

    footer {
        padding-bottom: 95px;
    }

    nav a.current {
        border-radius: 8px 8px 0 0;
        background-color: var(--color-primary);
        color: white;
    }

    nav a.current .nav-icon {
        fill: white;
    }

    #mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    @media only screen and (max-width: 420px) {
        nav a {
            padding-left: 0.8rem;
            padding-right: 0.8rem;
            font-size: 0.85rem;
        }

        .nav-icon {
            width: 1.5rem;
            height: 1.5rem;
        }
    }

    #mobile-header {
        padding: 0 1rem;
        background-color: var(--color-light-gray);
    }

    .nav-settings-li {
        display: none !important;
    }

    #mobile-header img {
        width: 5rem;
        height: auto;
        margin: 1rem 0;
    }

    div#description {
        width: 100%;
        margin-left: 0;
        font-size: 0.75rem;
        /* Smaller font size to fit on one line on mobile */
    }

    .steps-container {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .step-card {
        width: 100% !important;
        margin-bottom: 1rem;
    }

    .stats-grid {
        flex-direction: column !important;
        font-size: 1.5rem;
    }


    .upload-form {
        padding: 1rem;
        margin: 1rem auto;
        max-width: 95vw;
    }

    .item-form {
        gap: 0.8rem;
    }

    .item-form textarea {
        min-height: 80px;
    }

    .secondary-search-items {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .search-actions {
        flex-direction: column;
    }

    .search-actions .btn-primary,
    .search-actions .btn-secondary {
        width: 100%;
    }

    section#call-to-action .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    section#call-to-action .btn-primary,
    section#call-to-action .btn-secondary {
        width: min(100%, 20rem);
        margin-inline: 0;
    }

}
