/* ===========================================================
   RESPONSIVE
   Breakpoint overrides. Must load after every other stylesheet above.
   =========================================================== */

@media (max-width: 900px) {
    .browser-window {
        width: min(760px, calc(100vw - 20px));
        height: min(560px, calc(100vh - 20px));
        max-width: 760px;
        max-height: 560px;
    }

    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        min-height: auto;
        max-width: none;
        overflow: auto;
    }

    .top-left,
    .left-bar,
    .bottom-left,
    .center,
    .top-right,
    .middle-right,
    .bottom-right {
        grid-column: auto;
        grid-row: auto;
        min-height: 110px;
    }

    .center {
        min-height: 280px;
    }

    .middle-right {
        overflow-y: auto;
    }
}

@media (max-width: 600px) {
    body {
        padding: 8px 0;
    }

    .browser-window {
        margin: 6px;
        padding: 3px;
    }

    .browser-title {
        font-size: 10px;
    }

    .nav-item {
        padding: 4px 8px;
        font-size: 10px;
    }

    .box,
    .top-left,
    .left-bar,
    .bottom-left,
    .center,
    .top-right,
    .middle-right,
    .bottom-right {
        font-size: 12px;
    }

    .ads-bar {
        flex-wrap: wrap;
        gap: 4px;
    }

    .live-news,
    #headline {
        font-size: 8px;
    }
}
