*, *:before, *:after {
  box-sizing: border-box;
}

h1, p {
  margin: 0 0 1em 0;
}

.wrapper {
  /* max-width: 940px; */
   margin: 0 20px;
  display: grid;
  grid-gap: 10px;
}

@media screen and (min-width: 500px) {

  /* no grid support? */
  /* .sidebar {
    float: left;
    width: 19.1489%;
  } */

  .content {
    /* float: right; */
    width: 100%;
  }

  .wrapper {
    margin: 0 auto;
    grid-template-columns: 1fr;
  }
  
  .header {
    grid-column: 1 / -1;
    /* needed for the floated layout */
    clear: both;
  }

  .footer {
    grid-column: 1fr ;
  }

}

.wrapper > * {
  background-color: #f5f1f1;
  color: #1a1919;
  border-radius: 5px;
  padding: 20px;
  font-size: 150%;
  /* needed for the floated layout*/
  margin-bottom: 10px;
}

/* We need to set the widths used on floated items back to auto, and remove the bottom margin as when we have grid we have gaps. */
@supports (display: grid) {
  .wrapper > * {
    width: auto;
    margin: 0;
  }
}