@import url("https://fonts.googleapis.com/css?family=Quicksand:400,700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fdfdfd;
  font-family: 'Quicksand', serif;
  font-size: 18px;
}

main {
  margin: auto;
  max-width: 100%;
  padding: 1em 2em;
  text-align: center;
}

nav {
  align-items: center;
  display: flex;
  justify-content: space-between; 
}


ul {
  display: flex;
  list-style-type: none;
}

li {
  margin-right: 1em;
}

h1 {
  color: #2c64a8;
  margin-bottom: 0.5em;
}

.container {
  align-items: flex-start;
  display: grid;
  grid-gap: 2em;
  grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
  justify-content: center;
  margin: auto;
  padding: 2em;
}

.card {
  align-self: stretch;
  background-color: #fff;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  border-radius: 10px;
  display: inline-grid;
  height: 475px;
  max-height: 100%;
  padding-bottom: 0;
  width: 100%;

}

.card--avatar {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.card--title {
  color: #222;
  font-size: 1.25em;
  font-weight: 700;
  margin: 1em;
  text-transform: capitalize;
}

.card--link {
  background: #2c64a8;
  border: none;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  padding: 0.66em;
  text-decoration: none;
}

.card--link:focus,
.card--link:hover {
  background-color: #2c83a8;
  font-weight: bolder;
  text-decoration: underline;
}

.card--description {
  margin: 1em;
}

.card--age {
  margin: 0 auto 1em;
}