html, body {
  font: 15px Avenir;
  margin: 0;
  height: 100%;
  width: 100%;
}

h1 {
  font: bold 30px Didot, "Didot LT STD";
  letter-spacing: -2px;
  margin-bottom: 0;
}

h1 + p {
  margin-top: 0;
}

h2 {
  font: bold 20px Didot, "Didot LT STD";
  letter-spacing: -1px;
  margin-bottom: 0px;
}

h3 {
  font: 13px Didot, "Didot LT STD";
}

a {
  font-weight: 900;
  text-decoration: none;
  color: black;
  letter-spacing: -0.5px;
}

article {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

}

article > a > div {
  border-radius: 5px;
  height: 250px;
  background-size: 180px;
  background-repeat: no-repeat;
  background-position: bottom center;
}

article > a > div:hover {
  box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.1);
}

.header {
  grid-area: header;
  background-image: url("../images/background.png");
  background-color: #ffd4d4;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.info {
  grid-area: info;
  padding: 8% 10% 5% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.main {
  padding: 10%;
  grid-area: main;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 60px;
}

.footer {
  grid-area: footer;
  background-color: #ffd4d4;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.display-block {
  display: block;
}

.container {
  display: grid;
  grid-template-rows: 2fr auto 4fr 1fr;
  grid-template-areas:
    "header"
    "main"
    "info"
    "footer";
}

@media (min-width: 700px) and (max-width: 900px){
  .container {
    grid-template-rows: 2fr auto 3fr 1fr;  
  }
  .main {
    padding: 7% 10%;
  }
  .info {
    flex-direction: row;
    justify-content: center;
  }
  article > a > div {
    height: 250px;
    background-size: 180px;
  }
  h1 {
    font-size: 46px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 15px;
    letter-spacing: -0.5px;
  }
}


@media (min-width: 901px){
  .container {
    grid-template-rows: 2fr auto 3fr 1fr;
  }
  .main {
    padding: 7% 10%;
  }
  .info {
    flex-direction: row;
    justify-content: center;
  }
  h1 {
    font-size: 46px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 15px;
    letter-spacing: -0.5px;
  }
}

#chimamanda {
  background-image: url('../images/chimananda.png');
  background-color:#ffa4a2;
}

#malala {
  background-image: url('../images/malala.png');
  background-color:#efc000;
}

#serena {
  background-image: url('../images/serena.png');
  background-color:#00a290;
}

#frida {
  background-image: url('../images/frida.png');
  background-color:#ff764a;
}
