@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@1,300&display=swap");

body {
  font-family: "Open Sans", sans-serif;
}
header,
footer {
  background: orange;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  border: 1px solid red;
}

h1 {
  color: blue;
}

.cards {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  font-size: 0.8rem;
}

.cards section {
  margin: 0.5rem;
  border: 1px solid #bbb;
  padding: 0 1rem;
  background-color: #eee;
  color: purple;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cards section img {
  width: 100%;
  height: auto;
  border: 1px solid #bbb;
}

@media only screen and (min-width: 25em) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet Views ******************************/
@media only screen and (min-width: 37.5em) {
  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Desktop Views ****************************/
@media only screen and (min-width: 60em) {
  .cards {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
