@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700&display=swap");
:root {
  --very-dark-grayish-blue: hsl(217, 19%, 35%);
  --desaturated-dark-blue: hsl(214, 17%, 51%);
  --grayish-blue: hsl(212, 23%, 69%);
  --light-grayish-blue: hsl(210, 46%, 95%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: var(--light-grayish-blue);
  color: var(--very-dark-grayish-blue);
}
h1 {
  font-size: 1rem;
  color: var(--very-dark-grayish-blue);
  /* font-weight: bold; */
}

h1,
p {
  margin: 1.5rem;
}
p {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--grayish-blue);
}
li {
  font-size: 0.8rem;
  list-style: none;
  color: var(--desaturated-dark-blue);
}

.name {
  font-weight: 700;
  color: var(--very-dark-grayish-blue);
}

.date {
  color: var(--grayish-blue);
}

.media,
.label,
main,
.label-name,
.pop-up {
  display: flex;
}
.label-name {
  align-items: center;
}
.media {
  background-color: black;
  max-width: 25%;
  color: white;
  /* gap: 0.5rem; */
}
.label-img {
  width: 12%;
  border-radius: 50px;
  margin: 1rem;
}

.label {
  justify-content: space-around;
  align-items: center;
  position: relative;
}
main {
  max-width: 650px;
  border: 1px solid var(--light-grayish-blue);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  background-color: white;
}

img {
  width: 100%;
}

.left {
  display: flex;
}

.attribution {
  display: block;
  font-size: 11px;
  text-align: center;
  margin-top: 1rem;
}
.attribution a {
  color: hsl(228, 45%, 44%);
  text-decoration: none;
}

@media (max-width: 600px) {
  main {
    max-width: 375px;
    flex-direction: column;
    margin: 2rem;
  }
  main .label {
    position: relative !important;
  }

  .label .pop-up {
    position: absolute;
    inset: 0;
    padding: 15px 160px 15px 20px;
    border-radius: 0px 0px 10px 10px;
    max-width: 100%;
    display: flex;
    align-items: center;
  }
  .pop-up:before{
    opacity: 0;
  }
}

.pop-up > img {
  max-width: 20px;
}
.triangulo {
  display: none;
}
.share {
  width: 16px;
}

.bg-share {
  /* deixar circulo perfeito */
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  /* fim */
  /* adc para centralizar img */
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center;
  /* fim */
  background-color: var(--light-grayish-blue);
  padding: 5px;
  margin-right: 30px;
}

.share {
  width: 16px;
  position: relative;
  z-index: 1;
}
.bg-share:hover {
  background-color: var(--desaturated-dark-blue);
  color: white;
}
.bg-share:hover .share {
  filter: brightness(0) invert(1);
}
.pop-up {
  position: absolute;
  background-color: var(--very-dark-grayish-blue);
  color: var(--light-grayish-blue);
  padding: 15px 20px;
  border-radius: 10px;
  top: -87%;
  right: -14%;
  opacity: 0;
}

.pop-up.active,
.triangulo.active {
  opacity: 1;
}

.label-name.active {
  opacity: 0;
}

/* import */
.pop-up * {
  margin: 0 9px;
}

.pop-up > p {
  letter-spacing: 5px;
  color: var(--grayish-blue);
}

button{
  background: none;
  border: none;
  cursor: pointer;
}

.pop-up:before {
  content: "";
  position: absolute;

  border-left: 0.7rem solid transparent;
  border-right: 0.7rem solid transparent;
  border-top: 0.7rem solid var(--very-dark-grayish-blue);
  top: 100%;
  left: 55%;
  transform: translateX(-50%);
}