* {
  font-size: 63, 5%;
  margin: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  background-color: #f4f7fe;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  width: 50rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

#card1,
#card2,
#card3 {
  height: 18rem;
  padding: 2rem;
  background-color: #ffffff;
  -webkit-box-shadow: 0px 5px 15px 8px #e4e7fb;
  box-shadow: 0px 5px 15px 8px #e4e7fb;
}

#card1 {
  width: 17rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  right: 2rem;
  bottom: 2rem;
}

#card2 {
  width: 23rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#card3 {
  width: 30rem;
  height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile {
  width: 6rem;
  height: 6rem;
  border-radius: 5rem;
}

.profile:hover {
  animation: bounce;
  animation-duration: 2s;
}

#card1 .profile-text {
  text-align: center;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  font-weight: normal;
  cursor: default;
}

h1 {
  color: #0a0d1e;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

h2 {
  color: #6c7072;
  font-size: 0.9rem;
  font-weight: 400;
}

h3 {
  color: #0a0d1e;
  font-size: 0.8rem;
  font-weight: 500;
}

h4 {
  color: #6c7072;
  font-size: 0.95rem;
  font-weight: 400;
}

h4 strong {
    font-size: 0.95rem; 
}

.following {
  height: 2rem;
  width: 6rem;
  font-size: 0.8rem;
  background-color: #ffffff;
  color: #6c7072;
  border: 0.1rem solid #e8e9ed;
  border-radius: 3rem;
  cursor: pointer;
}

.follow {
  height: 2rem;
  width: 6rem;
  font-size: 0.8rem;
  background-color: #10162e;
  color: #ffffff;
  border: 0.1rem solid #e8e9ed;
  border-radius: 3rem;
  cursor: pointer;
}

@media (max-width: 845px) {
  * {
    font-size: 85%;
  }
}

@media (max-width: 685px) {
  * {
    font-size: 75%;
  }
}

@media (max-width: 580px) {
  * {
    font-size: 75%;
  }
  main {
    width: 30rem;
  }
  #card1 {
    right: 0;
    bottom: 0;
  }
}

@media (max-width: 400px) {
  * {
    font-size: 63%;
  }
}
