* {
  box-sizing: border-box;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #9a9c98;
}
/* Style the header */
.header {
  grid-area: header;
  background-color: #f1f1f1;
  padding: 30px;
  text-align: center;
  font-size: 35px;
}
/* The grid container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 equal columns matching grid-template-areas */
  grid-template-rows: auto auto auto;    /* 3 rows */
  grid-template-areas: 
    'header header header header header header' 
    'left left middle middle right right' 
    'footer footer footer footer footer footer';
  column-gap: 10px; /* gap between columns */
} 
.left,
.middle,
.right {
  padding: 10px;
  height: auto; 
}
/* Style the left column */
.left {
  grid-area: left;
  color: white;
}
/* Style the middle column */
.middle {
  grid-area: middle;
}
/* Style the right column */
.right {
  grid-area: right;
  color: white;
}

.footer {
  background-color: #f1f1f1;
  padding: 10px;
  text-align: center;
}
@media (max-width: 600px) {
  .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;   /* three equal columns */
    grid-template-areas: 
      "header header header"
      "left middle right"
      "footer footer footer";
  }
}