@media only screen and (max-width: 700px) {

    /* Make navigation vertical and center-aligned */
    nav {
        
        flex-direction: column;
        align-items:stretch ;
             
    }

    /* Header styling for mobile */
    header {
        display: inline-flex;
        flex-wrap: wrap;
        background-color: rgb(129, 123, 123);
        height: auto;
        width: 100%;
        color: azure;
        justify-content: space-between;
        
    }

    header label {
        display: inline-flex;
        font-family: oldenglish;
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }

    header>span {
        margin-left: auto;
            margin-right: auto;
    }

    /* Hide desktop-specific elements */
    .parent,
    main>.tg {
        display: none;
    }

    /* Show only on mobile */
    .mobile {
        display: flex;
        flex-direction: column;
    }

    /* Make footer stick to bottom (only if needed) */
    footer,
    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 0.5rem 1rem;
        background-color: rgba(0, 0, 255, 0.6);
        /* semi-transparent blue */
        color: white;
        font-size: 0.85rem;
    }

    /* Optional: prevent content from hiding under fixed footer */
    body {
        padding-bottom: 3rem;
    }
}