*,
*::after,
*::before {
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  background: #f1f1f1;
}

.main-card {
  position: relative;
  background: white;
  border-radius: 8px;
  max-width: 45%;
  margin: 0 auto;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.12);
  margin-top: 100px;
  padding-top: 50px;
  padding-bottom: 20px;
}

.main-card p {
  margin: 20px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: 0.01071em;
}

.main-avatar {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  background: rgb(186, 255, 186);
  height: 100px;
  width: 100px;
  border-radius: 100px;
  top: -50px;
  left: 25px;
}

.main-avatar img {
  height: 100%;
  width: 100%;
  position: relative;
  object-fit: cover;
  border-radius: 100px;
}

.main-avatar::before {
  content: "";
  position: absolute;
  display: block;
  width: 100px;
  height: 100px;
  background: url(images/face.jpeg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 100px;
  overflow: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0) scale(1.05);
  filter: blur(5px);
}

.contact {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 80%;
  height: 35px;
}

.contact a {
  display: block;
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  height: 35px;
  width: 35px;
  padding: 0;
  margin: 0;
  border-radius: 35px;
  transition: all 300ms ease-in-out;
}

.contact a:hover,
.contact a:active {
  background-color: rgba(0, 0, 0, 0.1);
}

.twitter {
  background: url("images/twitter-logo.png");
}

.github {
  background: url("images/github-logo.png");
}

.email {
  background: url("images/email.png");
}

.linkedin {
  background: url("images/linkedin-logo.png");
}

h1 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.33;
  letter-spacing: 0em;
  padding: 20px 0;
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.0075em;
  padding-top: 20px;
}

.card {
  display: block;
  position: relative;
  background: white;
  border-radius: 8px;
  max-width: 35%;
  margin: 0 auto 30px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.12);
  min-height: 200px;
  min-width: 35%;
  padding-left: 150px;
  padding-right: 20px;
  opacity: 1;
  transform-origin: center;
  transition:
    transform 450ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: scale(1.03);
}

.card:active {
  transform: scale(0.97);
}

a.card {
  text-decoration: none;
  color: inherit;
}

.avatar {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  height: 175px;
  width: 175px;
  border-radius: 6px;
  top: 12px;
  left: -40px;
  overflow: hidden;
}

.avatar img {
  height: auto;
  width: 120px;
}

.avatar-green {
  background: rgb(186, 255, 186);
  box-shadow: 4px 4px 20px 1px rgba(56, 252, 115, 0.3);
}

.avatar-lime {
  background: #0f0;
  box-shadow: 4px 4px 20px 1px rgba(0, 255, 0, 0.5);
}

.avatar-indigo {
  background: #acc0f7;
  box-shadow: 4px 4px 20px rgba(112, 146, 241, 0.3);
}

.avatar-purple {
  background: #f0a4d6;
  box-shadow: 4px 4px 20px rgba(229, 53, 171, 0.4);
}

.avatar-dark {
  background: rgb(34, 36, 37);
  box-shadow: 4px 4px 20px rgba(34, 36, 37, 0.3);
}

.avatar-blue {
  background: #304fff;
  box-shadow: 4px 4px 20px rgba(48, 79, 255, 0.4);
}

.avatar-blue img {
  width: 150px;
  height: 150px;
}

.avatar-cyan {
  background: rgb(176, 233, 255);
  box-shadow: 4px 4px 20px rgba(19, 187, 253, 0.3);
}

.card p {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: 0.01071em;
}

@media (max-width: 850px) {
  h1 {
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
  }

  .main-card {
    max-width: 90%;
  }

  .card {
    max-width: 80% !important;
    height: auto;
    width: auto;
    padding-bottom: 20px;
    padding-left: 90px;
    margin: 20px auto;
  }

  .avatar {
    height: 100px;
    width: 100px;
    overflow: hidden;
    max-height: 100px;
    max-width: 100px;
    top: 25%;
    left: -25px;
  }

  .avatar img {
    height: auto;
    width: 60px;
  }

  .avatar-blue img {
    width: 80px;
    height: 80px;
  }

  .card--large {
    min-height: 220px;
    margin-bottom: 20px;
  }

  .card--large .avatar {
    top: 30%;
  }
}

@media (orientation: portrait) and (max-height: 600px) {
  .card--large {
    min-height: 280px;
  }
}

@media (orientation: landscape) and (max-width: 850px) {
  .card {
    min-height: 200px;
  }

  .avatar {
    top: 18%;
  }

  .card--large .avatar {
    top: 18%;
  }
}

.card-hidden {
  opacity: 0.1;
  transform: scale(0.7);
}
