/*Variables*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(198, 173, 145);
}

/* In this method of CSS Grid, we use grid-template-areas to establishOTH the columns and the rows. Each column contains a name, while the rows are repeated.*/
#container {
  display: grid;
  grid-template-areas: "header header header header header header" "nav nav nav nav nav nav" "left main main main main right" "callout callout callout callout callout callout" "footer footer footer footer footer footer";
  width: 80%;
  max-width: 1080px;
  font-family: Helvetica, Ariel, sans-serif;
  margin: 20px auto;
  background-color: white;
  border: 2px solid black;
  border-radius: 15px;
}

header {
  grid-area: header;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-content: center;
  background-color: #DBEAF0;
  padding: 1.8em;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

nav {
  grid-area: nav;
  color: white;
  background-color: #176282;
  padding: 0.75em;
}
nav ul li {
  list-style-type: none;
  margin-right: 1.8em;
  display: inline;
}
nav a {
  color: white;
  text-decoration: none;
}
nav a:hover {
  list-style-type: none;
  color: #85A9E0;
}

main {
  grid-area: main;
  background-color: #DEE9ED;
  padding: 0.5em;
  border-right: 1px solid black;
  border-top: 1px solid black;
}

aside {
  grid-area: left;
  background-color: #ccb9da;
  padding: 0.5em;
}

#sidebar_b {
  grid-area: right;
  background-color: #cdf1c3;
  padding: 0.5em;
}

#sidebar_b li {
  list-style-position: inside;
}

/* You can also have a grid within a grid. 
We use the grid template columns to position the image boxes.
You can also use justify-content and align content similar
to flexbox properties.*/
section {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  height: 250px;
}

.graybox {
  background-color: lightgray;
  width: 75px;
  padding: 20px;
  border: 1px solid black;
  margin: 10px;
}

/* You can use grid-template areas within a div. 
In this case we need to use the nth:child property to separate the callouts.*/
#calloutcontainer {
  grid-area: callout;
  display: grid;
  grid-template-areas: "child1 child2 child3";
  border-top: 1px solid black;
}

.callout {
  padding: 10px;
}

.callout:nth-child(1) {
  grid-area: child1;
  background-color: #85C5E0;
}

.callout:nth-child(2) {
  grid-area: child2;
  background-color: #cdf1c3;
}

.callout:nth-child(3) {
  grid-area: child3;
  background-color: #ccb9da;
  order: 1;
}

footer {
  grid-area: footer;
  color: white;
  background-color: black;
  text-align: center;
  padding: 1.2em;
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
}

/* For responsive design we simply convert the grid-template areas to 
single columns, and multiple rows..*/
@media screen and (max-width: 500px) {
  #container {
    display: grid;
    grid-template-areas: "header" "nav" "left" "main" "right" "callout" "footer";
    width: 100%;
    margin: 0 auto;
    background-color: white;
    border: 2px solid black;
    border-radius: 15px;
  }
  #calloutcontainer {
    grid-template-areas: "child1" "child2" "child3";
  }
  header {
    grid-template-columns: auto;
    justify-content: center;
    align-content: center;
  }
}/*# sourceMappingURL=grid_layout1.css.map */