/* iPad or Custom Screens */
@media screen and (max-width: 1200px) {

    body {
        overflow-x: hidden; 
        max-width: 100vw;
        touch-action: pan-y;
    }

    #sidebar {
        width: 140px;
        font-size: .9em;
    }

    .sidebar-item {
        margin-bottom: 8px;
    }

    #main-header {
        right: 0px;
        padding: 2px 8px;
    }

    .search-input {
        display: none;
    }

    #content {
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .content-inner {
        width: calc(100% - 140px);
        margin-left: 140px;
        padding-left: 12px;
    }

    .hide-ipad-mobile {
        display: none;
    }

    .modal-inner {
        width: 70vw;
    }

}

/* Mobile Screens */
@media screen and (max-width: 600px) {
    body {
        overflow-x: hidden;
        font-size: 1.05rem;
        line-height: 1.5;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.85rem;
        line-height: 1.3em;
    }

    h3 {
        font-size: 1.55rem;
    }

    #center-nav,
    .desktop-only, #sidebar {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    #content {
        margin-bottom: 40px;
    }

    .content-inner {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }

    .hide-primary-nav {
        visibility: visible;
    }

    #primary-nav {
        gap: 10px;
        padding-left: 0;
        max-width: 50vw;
    }

    #secondary-nav {
        gap: 5px;
        width: 300px;
        margin-right: 5px;
        padding-right: 3px;
    }

    .search-input {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }

    #mobile-menu {
        display: block;
        position: fixed;
        width: 100vw;
        height: 42px;
        bottom: 0;
        top: auto;
        left: 0;
        background-color: rgba(0, 0, 0, 0.25);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        padding: 6px;
        z-index: 1000;
    }

    .mobile-menu-inner {
        display: flex;
        position: inherit;
        justify-content: space-evenly;
        align-items: start;
        gap: 0;
        width: 100%;
        margin: 0;
        right: 0;
    }

    .mobile-menu-div {
        width: calc(100%/5);
        line-height: 2em;
        text-align: center;
    }

    .post-menu {
        width: fit-content;
        top: auto;
        bottom: 10px;
        left: calc(50% - 75px);
        opacity: 99%;
    }

    .post-menu-item {
        color: #eee;
        font-size: .9rem;
        padding: 0 10px;
    }

    .post-menu-item:hover {
        font-size: 1rem;
    }

    .nav-icon-button {
        margin-top: auto;
        margin-bottom: auto;
        z-index: 1000;
        height: 27px;
        width: 27px;
        fill: #fff;
    }

    .nav-bar-icon {
        height: 27px;
        width: 27px;
        margin-top: 4px !important;
    }

    .messages-icon {
        width: 36px;
        height: 36px;
        margin-top: 1px !important;
    }

    .desktop-nav-icon {
        margin-top: 0;
    }

    .active-nav-icon {
        fill: #ff0;
    }

    .profile-pic {
        width: 27px;
        height: 27px;
        margin-top: 1px;
    }

    .login-link {
        padding: 0;
        background-color: transparent;
    }

    .login-link img {
        border-radius: 15px;
        border: 1px solid #444;
    }

    .login-link:hover {
        background-color: transparent;
    }

    .notifications-container,
    .notifs-div {
        left: 0;
        right: auto;
        min-width: 100%;
    }

    .search-item-image {
        width: 20vh;
        height: 27vh;
        border-radius: 10px;
    }

    .modal-inner {
        width: 90%;
        min-width: unset;
    }

    .scroll-to-top {
        right: 20px;
        bottom: 50px;
        margin: 0 !important;
    }

    .footer-div {
        padding: 5px;
        padding-bottom: 40px;
    }
    
    .footer-text {
        display: flex;
        justify-content: flex-start;
    }

    .row-article-video-icon {
        width: 80px;
        height: 80px;
        left: 40%;
        bottom: 40%;
    }

    .row-article-mute-icon {
        opacity: 0.8;
    }

    .thoxt-row-article-box {
        padding: 10px;
    }
    
    .row-cover-rect {
        width: 100vw;
    }
}