* {
    box-sizing: border-box;
    border: 1px solid gray;
}
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}
#page {
    margin: 0 auto;
    width: 100%;
    max-width: 1920px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 2fr 5fr 3fr;
    grid-template-rows:
        minmax(15vh, auto)
        minmax(5vh, auto)
        minmax(60vh, auto)
        minmax(5vh, auto)
        minmax(15vh, auto);
    grid-template-areas:
        "header header header"
        "left nav nav"
        "left main right"
        "bottom bottom right"
        "footer footer footer";
}
#page > header {
    grid-area: header;
    background-color: rgb(228, 228, 228);
}
#page > nav {
    grid-area: nav;
    background-color: rgb(205, 210, 233);
}
#page > main {
    grid-area: main;
    background-color: rgb(244, 241, 237);
}
#page > .left {
    grid-area: left;
    background-color: rgb(233, 231, 242);
}
#page > .right {
    grid-area: right;
    background-color: rgb(233, 231, 242);
}
#page > .bottom {
    grid-area: bottom;
    background-color: rgb(205, 210, 233);
}
#page > footer {
    grid-area: footer;
    background-color: rgb(228, 228, 228);
}

@media screen and (max-width: 960px) {
    #page {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows:
            minmax(15vh, auto)
            minmax(5vh, auto)
            minmax(20vh, auto)
            minmax(40vh, auto)
            minmax(5vh, auto)
            minmax(15vh, auto);
        grid-template-areas:
            "header header"
            "nav nav"
            "left right"
            "main main"
            "bottom bottom"
            "footer footer";
    }
}
@media screen and (max-width: 640px) {
    #page {
        grid-template-columns: 1fr;
        grid-template-rows:
            minmax(15vh, auto)
            minmax(5vh, auto)
            minmax(30vh, auto)
            minmax(15vh, auto)
            minmax(15vh, auto)
            minmax(5vh, auto)
            minmax(15vh, auto);
        grid-template-areas:
            "header"
            "nav"
            "main"
            "left"
            "right"
            "bottom"
            "footer";
    }
}
