@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;500;600;800&family=VT323&display=swap');

body {
  margin: 0;
  font-family: "Poppins";
}

/* To navigate between folds, CTRL SHIFT .  */

/* To collapse all folds, CTRL K then CTRL 0 */
/* To expand all folds, CTRL K then CTRL J */

/* To collapse every fold except the one you're looking at, ALT and click on fold arrow */



.grid-container {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  column-gap: 30px;
}

/* Building Folds 

    highlight code to fold, 
    
    CTRL K then , to create
    CTRL K then . to destroy 
    
    */


/* Header */
header {
  grid-column: span 3;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

/* nav */
nav {
  padding: 30px;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

nav a {
  text-decoration: none
}

/* article */
article {
  padding: 30px;
  max-width: 800px;
}

article h2 {
  font-size: 3.5em;
  text-align: center;
}

article p {
  margin-top: 30px;
  line-height: 2em;
  color: #777;
}

aside {
  padding: 30px;
  border-left: 1px solid #ddd;
}

footer {
  grid-column: span 3;
  text-align: center;
  border-top: 1px solid #ddd;
  padding: 30px;
}

/* Media Queries */
@media screen and (max-width: 1200px) {
  nav {
    grid-column: span 3;
    border-right: 0;
    border-bottom: 1px solid #ddd;
    flex-direction: row;
    justify-content: space-evenly;
  }

  article {
    grid-column: span 2;
  }

  aside {
    padding: 16px;
  }
}

@media screen and (max-width: 980px) {

  article,
  aside {
    grid-column: span 3;
  }

  nav {
    flex-direction: column;
    justify-content: space-evenly;
  }

  aside {
    border-left: 0;
    border-top: 1px solid #ddd;
  }

  article h2 {
    font-size: 2.5em;
  }
}