body {
  margin: 0;
  background-color: #4AD0C7;
}

body nav {
  background-color: #009E96;
  display: flex;
  align-items: center;
  justify-content: center;
}

body nav p {
  margin: 0;
  font-size: 1.4rem;
  color: white;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: capitalize;
  padding: 9px;
}

.container-profiles {
  background-color: white;
  display: flex;
  /* margin-top: 10%; */
  margin: 3em;
  flex-direction: column;
  margin-bottom: 50px;
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex p {
  font-size: 2rem;
  padding-left: 0.5em;
  border-left: 8px solid #84FFFB;
  margin-top: 0.6em;
  margin-right: 0px;
  margin-bottom: 0.5em;
  margin-left: 0px;
  float: left;
  font-family: pridi;
}

.flex {
  margin-left: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
}

.profile-box {
  display: flex;
  flex-direction: row;
  margin: 20px;
}

.profiles img {
  width: 240px;
  height: 320px;
  margin-bottom: 20px;
  align-self: center;
  margin: 4px;
  margin-bottom: 10px;
}

.profiles {
  margin: 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.2);
  max-width: 30%;
}

.profiles h3 {
  align-self: center;
  margin: 0;
  padding: 0;
  margin-bottom: 5px;
  font-family: Oswald;
  letter-spacing: 1px;
}

.contact-details {
  padding: 1em;
}

.social {
  display: block;
  font-size: 1.2rem;
  text-decoration: none;
  color: #464D4D;
  white-space: nowrap;
}

.social:hover {
  color: lightseagreen;
}

.fa {
  margin: 1em;
  margin-right: 0.2em;
}

@media screen and (max-width: 820px) {
  .profile-box {
    flex-direction: column;
  }

  .profiles {
    max-width: 100%;
  }
}


h3 {
  color: #464D4D;
}