html, body {
  height:100%;
}
body {
  display:flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;


}
#container {
  padding:0.5em 1em;
  border-radius: 1rem;
  font-size: 4.5vw;
  
}

.profile {
  display: flex;
  gap: 0.6em;
  flex-direction: column;
  align-items: center;
}

.profile-img div {
  width:6em;
  height:6em;
  background:#f3f3f3;
  background-image: url(images/avatar_ric.jpg);
  background-size: 105%;
  background-repeat: no-repeat;
  border-radius:50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.profile-data {
  color: rgb(75,75,75);
  text-align: center;
}
h1 {
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 1.3em;
  margin:0;
}
h2 {
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1em;
  margin:0;
  opacity:0.8;
}
h2 span {
  display: block;
}

.contacts a {
  display:flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  color: rgb(100, 100, 100);
  font-size: 0.7em;
  margin-top: 2em;
  opacity:0.7;
}
.contacts a > * {
  display:block;
}
.contacts img { 
  height:1.2em;
  width:auto;
}
.contacts span { 
  padding-top:0.2em
}
.contacts a {
  text-decoration: none;

}


@media only screen and (min-width: 720px) {
 body {
  background-color: rgb(245,245,245);
 }
  #container {
      font-size:1.5rem;
      background: #fff;
      padding:2em 1.5em;
      box-shadow: 0 0 30px rgba(0,0,0,0.05);
  }
  .profile {
    flex-direction: row;
    align-items: center;
    gap: 1.3em;
  }
  .profile-data {
    text-align: left;
  }
  #container h1 {
      font-size:1.5em;
  }
  #container h2 {
    font-size:1em;
  }
  #container h2 span {
    display:initial;
  }
  .contacts a {
      justify-content: start;
      font-size: 0.6em;
      margin-top:1em;
      opacity:0.8;
      filter: saturate(0);
  }
  .contacts a:hover {
      filter: saturate(1);
      opacity:1;
      cursor: pointer;
  }
}