#grid {
  display: grid;
  grid-template-areas:
    "one two"
    "three for";
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  margin-left: 10%;
  margin-right: 10%;
  column-gap: 0px;
  row-gap: 0px;
}

#one {
  grid-area: one;
      height: 200px; 
    width: auto;
}

#two {
  grid-area: two;
      height: 200px; 
    width: auto;
}

#three {
  grid-area: three;
      height: 200px; 
    width: auto;
}

#for { 
  grid-area: for;
      height: 200px; 
    width: auto;
}


@media screen and (max-width: 600px) {
#grid {
    display: grid;
    /* sets up the layout of the grid */
    grid-template-areas:
    "one"
    "two"
    "three"
    "for";

    /* sets up the size of the rows */
    grid-template-rows: 1fr;
    
    /* sets up the size of the columns */
    grid-template-columns: 1fr;

    margin-left: 10%;
    margin-right: 10%;

    column-gap: 0px;
    row-gap: 0px;
}
#one{
    grid-area: one;
        height: 200px; 
    width: auto;
}
#two{
    grid-area: two;
        height: 200px; 
    width: auto;
}
#three{
    grid-area: three;
        height: 200px; 
    width: auto;
}
#for{
    grid-area: for;
        height: 200px; 
    width: auto;
}
}
