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

:root {
  --darker-greyish-blue: hsl(217, 19%, 35%);
  --dark-greyish-blue: hsl(214, 17%, 51%);
  --greyish-blue: hsl(212, 23%, 69%);
  --light-greyish-blue: hsl(210, 46%, 95%);
}

body {
  background-color: var(--light-greyish-blue);
  font-family: "Manrope", sans-serif;
  color: var(--dark-greyish-blue);
  font-size: 0.8rem;
  line-height: 110%;
  font-weight: 500;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

article {
  background-color: white;
  display: flex;
  max-width: 42rem;
  line-height: 150%;
  border-radius: 0.5rem;
  margin: 4.5rem;
}

.image {
  background-image: url("/images/drawers.jpg");
  background-size: cover;
  background-position: center;
  min-width: 40%;
  height: auto;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-content img {
  border-radius: 50%;
  max-width: 3rem;
}

button {
  height: fit-content;
  border-radius: 50%;
  padding: 0.5rem;
  border: 0;
  background-color: var(--light-greyish-blue);
}

h2,
h3 {
  color: var(--darker-greyish-blue);
  margin: 0;
}

.contact-container p {
  margin: 0.25rem 0;
}

section {
  padding: 2rem;
}

p {
  margin: 1.5rem 0;
}

.popup-container {
  background-color: var(--darker-greyish-blue);
  display: flex;
  width: fit-content;
  gap: 1rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  position: relative;
}

.popup-container h3 {
  color: var(--greyish-blue);
}

.popup-container::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  bottom: -28%;

  width: 0;
  height: 0;
  border: 1rem solid transparent;
  border-bottom: 0;
  border-top: 1rem solid var(--darker-greyish-blue);
}

.popup {
  position: absolute;
  left: -350%;
  top: -270%;
}

button {
  position: relative;
}

button:hover {
  background-color: var(--darker-greyish-blue);
}

button:hover img {
  filter: brightness(0) invert(1);
}

.hide {
  display: none !important;
}

.contact-container .active-button {
  background-color: var(--darker-greyish-blue);
}

.active-icon {
  filter: brightness(0) invert(1);
}

.popup-text {
  font-weight: 500;
  letter-spacing: 0.3rem;
}

.popup-contact-container {
  background-color: var(--darker-greyish-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.popup-contact-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.popup-contact-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3rem;
  color: var(--greyish-blue);
}

.popup-contact-button {
  background-color: var(--dark-greyish-blue);
  margin-left: 1rem;
}

.popup-contact-button:hover {
  background-color: var(--dark-greyish-blue);
}

.popup-contact-button img {
  filter: brightness(0) invert(1);
}

#share-button {
  margin-left: 1rem;
}

@media (max-width: 700px) {
  article {
    flex-direction: column;
    margin: 2rem;
  }

  .image {
    min-width: 100%;
    min-height: 200px;
    border-radius: 0;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
  }

  .contact-container h3 {
    font-size: 0.75rem;
  }

  .contact-container p {
    font-size: 0.75rem;
    line-height: 110%;
  }

  section {
    padding: 0;
    padding-top: 2rem;
  }

  section h2 {
    margin: 0 2rem;
    line-height: 125%;
    font-size: 1rem;
  }

  section p {
    margin: 1rem 2rem;
  }

  .contact-container {
    margin: 1rem 2rem;
    padding-top: 1rem;
  }
}
