@media (max-width:700px)
/* Phone */
    {


    main {
        padding-top: 60px;
    }


    #popupWindow {
        visibility: hidden;
        position: fixed;
        transition: all 0.2s ease;
        transform: translateY(100%);
        box-sizing: border-box;
        height: auto;
        width: calc(100% - 2rem);
        bottom: 0;
        z-index: 999;
        margin: 0;
        margin-inline: 1rem;
        text-align: left;
        border-bottom: none;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;

        & #popupWindow button {
            position: relative;
            right: -50%;
            transform: translateX(-50%);
            box-sizing: border-box;
            padding: 1.4rem 3rem;
            text-align: center;
        }
        &.show {
            transition: all 0.2s ease;
            visibility: visible;
            transform: translateY(0%);
        }
    }

    #popupOverlay {
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 998;
        background-color: rgba(0, 0, 0, 0.5);
    }

    aside {
        position: fixed;
        height: 100dvh;
        left: 0;
        transform: translateX(-100%);
        z-index: 10;
        transition: all 0.2s ease;
    }

    .card {
        min-width: 0;
    }


    #navRibbon {
        display: flex;
        position: fixed;
        visibility: visible;
        cursor: pointer;
        box-sizing: content-box;
        height: 50px;
        width: 50px;
        top: 0;
        left: 0;
        padding: 5px;
        border-bottom-right-radius: 10px;
        justify-content: center;
        align-items: center;
        background: var(--accent-color);
        z-index: 9;
        transition: all 0.2s ease;

        &:active {
            background: var(--accent-accent-color-accent);
        }

        & img {
            height: 80%;
            aspect-ratio: 1/1;
            filter: invert();
        }
    }

    #navContainer>ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #navOverlay {
        display: none;
        position: fixed;
        height: 100%;
        width: 100%;
        left: 0;
        top: 0;
        z-index: 9;
        background: rgba(0, 0, 0, 0.5);
        transition: all 0.3s ease;
    }

    #legal {
        bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
        border-bottom-left-radius: 0;
        border-end-end-radius: 0;
        text-align: center;
    }
}