@media (max-width: 1280px) {

    /* = Footer = */
    .footer__button a {
        scale: 0.7;
    }

    /* = Sidebar = */
    .sidebar-pop {
        scale: 0.7;
    }

    /* = Languages = */
    .language-selector__button div {
        scale: 0.7;
    }
}

@media (max-width: 798px) {

    /* = Footer = */
    .footer__button a {
        scale: 0.5;
    }

    /* = Sidebar = */
    .sidebar-pop {
        scale: 0.5;
    }

    /* = Languages = */
    .language-selector__button div {
        scale: 0.5;
    }
}

@media (max-width: 640px) {

    /* = Touch =  */
    .l-name {
        font-size: var(--font-64-size);
    }

    /* = Footer = */
    .footer__button a {
        scale: 0.6;
    }

    /* = Sidebar = */
    .sidebar-pop {
        scale: 0.6;
    }

    /* = Languages = */
    .language-selector__button div {
        scale: 0.6;
    }
}

@media (max-width: 480px) {

    /* = Footer = */
    .footer__button a {
        scale: 0.5;
    }

    /* = Sidebar = */
    .sidebar-pop {
        scale: 0.5;
    }

    /* = Languages = */
    .language-selector__button div {
        scale: 0.5;
    }
}

/* = Portrait = */
@media (orientation: portrait) {

    .gmail-sidebar-copy {
        font-size: 1cqh;
    }

    :root {
        --copy-portrait: translate(90%, -65%);
    }

    .copy-ownerinfo {
        transform: translate(90%, -30%);
    }

    .copy-ownerinfo div {
        font-size: 2.5cqh;
    }

    /* = Touch = */
    .title-line {
        display: none;
    }

    .title-box {
        grid-area: 5 / 1 / 6 / 2;
        position: relative;
        /* align-self: center; */
    }

    .l-name {
        font-size: 6.5vw;
        letter-spacing: 0.4em;
    }

    .sidebar-info {
        font-size: 5vw;
        white-space: normal;
        opacity: 0 !important;
    }

    .title-text {
        align-self: flex-end;
        color: var(--text-color-text);
    }

    .title-text>span {
        display: block;
        font-size: 2cqh;
    }

    /* = Footer = */
    .l-name-sidebar {
        grid-area: 1 / 2 / 2 / 7;
    }

    /* = Sidebar = */
    #l-button {
        padding: 0 1.2vw;
        font-size: 7vw;
        border: 1.5px solid;
        border-image: var(--main-frame-border-image);
    }

    #sidebar span {
        font-size: 7vw;
        display: var(--letter-display);
    }

    #sidebar a {
        margin-top: 10vw;
    }

    .extra-space {
        height: 2vw;
    }

    #home-sidebar {
        grid-area: 2 / 1 / 4 / 2;
    }

    /* = Languages = */
    .language-selector__button {
        grid-area: 6 / 1 / 7 / 2;
    }


    .flag-container, #languages-portrait__container {
        position: relative;
        height: 100%;
        width: 100%;
        justify-self: center;
        grid-area: 5 / 1 / 6 / 2;
    }

    .languages-selection {
        display: flex;
        position: absolute;
        width: 100%;
        height: 100%;
        bottom: 2vh;
        row-gap: 4vh;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }

    .language__button {
        width: 75%;
        aspect-ratio: 5 / 3;
        font-size: 2.25cqh;
    }

    /* Overlapping Flag with Letters */
    .flag-overlap__portrait{
        grid-area: 6 / 2 / 7 / 6;

        .languages-selection {
            flex-direction: row;    
            justify-content: flex-start;
            bottom: 0vh;
        }

        .language__button {
            margin: 2vw;
        }
        
    }

    /* = Phone Portrait = */
    @media (max-width: 1280px) {

        /* = Footer = */
        .footer__button a {
            scale: 1.2;
        }

        /* = Sidebar = */
        .sidebar-pop {
            scale: 1.2;
        }

        /* = Languages = */
        .language-selector__button div {
            scale: 1;
        }

    }

    @media (max-width: 920px) {

        /* = Footer = */
        .footer__button a {
            scale: 1.1;
        }

        /* = Sidebar = */
        .sidebar-pop {
            scale: 1.2;
        }
    }

    @media (max-width: 640px) {

        /* = Footer = */
        .footer__button a {
            scale: 0.7;
        }

        /* = Sidebar = */
        .sidebar-pop {
            scale: 0.8;
        }

        /* = Languages = */
        .language-selector__button div {
            scale: 0.8;
        }
    }

    @media (max-width: 480px) {

        /* = Footer = */
        .footer__button a {
            scale: 0.6;
        }

        /* = Sidebar = */
        .sidebar-pop {
            scale: 0.65;
        }

        /* = Languages = */
        .language-selector__button div {
            scale: 0.65;
        }
    }
}

@media (orientation: landscape) {
    /* Title */
    #title-container{
        opacity: 1 !important;
    }
}
