@charset "UTF-8";

body {
    background-color: #000080;
    margin: 0rem;
    padding: 0px;
    height: 100vh;
    font-family: Arial, sans-serif;
    display: grid;
    grid-gap: .1vw;
    grid-template-columns: 6.5rem 1fr;
    grid-template-rows: 6rem 1fr 3rem;
    grid-template-areas: 
		"header header"
		"sidebar content"
		"footer footer";
}

header{
    grid-area: header;
    text-transform: uppercase;
    padding-top: 1px;
    padding-bottom: 1px;
    color: #cfe2f3;
    border-style: solid;
    border-width: 2px;
    display: grid;
    align-items: center;
    justify-items: center;
}

aside{
    grid-area: sidebar;
    color: #cfe2f3;
    border-width: 2px;
    border-style: solid;
    float: left;
    width: 6.2rem;
    display: grid;
    align-items: center;
    justify-items: center;
}

footer{
    grid-area: footer;
    color:#cfe2f3;
    border-width: 2px;
    border-style: solid;
    clear: both;
    display: grid;
    align-items: center;
    justify-items: center;
}

main{
    grid-area: content;
    float: right;
    width: calc(100% - 7.2rem);
    padding: 5px;
    background: #cfe2f3;
    display: grid;
    grid-gap: 0.1vw;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(12rem, 1fr));
}

@supports (display: grid) {
    main, aside {
      width:  auto;
    }
  }

main>article{
    background: #2986cc;
    color: #000080;
	border-color: #000080;
    border-width: 5px;
    display: grid;
    align-items: center;
    justify-items: center;
}

main article:nth-child(2){
    grid-column: 2/span 4;
    grid-row: 1/span 2;
}

@media all and (max-width: 575px) {
    body {
      grid-template-rows: 6rem  1fr 5.5rem  5.5rem;
      grid-template-columns: 1fr;
      grid-template-areas:
        "header"
        "content"
        "sidebar"
        "footer";
    }
}