@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");

:root {
  --ff: "Manrope", sans-serif;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--ff);
  font-size: 0.8125rem;
  position: relative;
  background-color: #edf2f8;
}

.container {
  display: flex;
  width: 60rem;
  height: 25rem;
  flex-direction: row;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
}

.info-container {
  padding: 2rem 3rem;
}

.socials-overlay {
  position: absolute;
  top: 31rem;
  right: 26rem;
  width: 14rem;
  border-radius: 0.4rem;
  height: 4rem;
  background-color: #49556b;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
}

.socials-overlay::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 52%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 0 10px;
  border-color: #49556b transparent transparent transparent;
}

.hidden {
  opacity: 0;
}

.visible {
  opacity: 1;
}

.socials-overlay h1 {
  color: #fff;
  font-weight: 200;
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  margin-left: -0.5rem;
}

.facebook {
  background-image: url("/images/icon-facebook.svg");
  background-repeat: no-repeat;
  background-size: cover;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
}
.twitter {
  background-image: url("/images/icon-twitter.svg");
  background-repeat: no-repeat;
  background-size: cover;
  width: 1.5rem;
  height: 1.5rem;
  padding-right: 0.125rem;
  cursor: pointer;
}
.pinterest {
  background-image: url("/images/icon-pinterest.svg");
  background-repeat: no-repeat;
  background-size: cover;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
}

.back-img {
  background: url("/images/drawers.jpg");
  background-size: cover;
  background-position: center;

  height: 100%;
  width: 80%;
}

.main-text h1 {
  line-height: 2.4rem;
}
.main-text p {
  font-size: 1rem;
  line-height: 1.5rem;
}

.account-info {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 3rem;
}

button {
  border-radius: 50%;
  height: 2rem;
  width: 2rem;
  border: none;
  background: #e0e3ec;
  cursor: pointer;
  transition: all 0.2s;
}

button:active {
  transform: translateY(0.1875rem);
}

.button-container {
  margin-left: auto;
}

.user-img {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 50%;
}

.user-info {
  font-size: 0.4rem;
  width: 24%;
  margin-left: 0.5rem;
}

.user-info span {
  font-weight: 300;
}

@media (max-width: 27.5rem) {
  html {
    font-size: 80%;
  }

  .container {
    flex-direction: column;
    width: 25rem;
    height: 40rem;
  }
  .back-img {
    width: 25rem;
    height: 10rem;
    padding-bottom: 15rem;
  }

  .main-text h1 {
    font-size: 1.2rem;
    line-height: 1.5rem;
  }

  .user-info {
    width: 40%;
  }

  .socials-overlay {
    position: absolute;
    top: 45rem;
    right: 8.5%;
    width: 23rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0.4rem;
    border-bottom-left-radius: 0.4rem;
    height: 4rem;
    background-color: #49556b;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
  }

  .socials-overlay::after {
    border: 0;
  }
}
