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

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

body {
  font-family: "Manrope", sans-serif;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(210, 46%, 95%);
  padding: 1rem;
}

button {
  border: none;
  background-color: white;
  cursor: pointer;
}

.box {
  background-color: white;
  border-radius: 10px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.box .drawer {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}

.content {
  line-height: 1.5rem;
  padding: 2rem;
  position: relative;
}

.content h4 {
  font-size: 1rem;
  font-weight: bold;
  color: hsl(217, 19%, 35%);
  margin-bottom: 1rem;
}

.content p {
  color: hsl(212, 23%, 69%);
  font-weight: bold;
  font-size: 1rem;
}

.information {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.information .about {
  display: flex;
  align-items: center;
}

.information .about img {
  border-radius: 50%;
  width: 3rem;
}

.information .about .name {
  margin-left: 1rem;
}

.information .about p {
  color: hsl(217, 19%, 35%);
  font-size: 1rem;
}

.information .about span {
  color: hsl(212, 23%, 69%);
}
.information .share {
  position: relative;
}
.information .share img {
  border-radius: 50%;
  background-color: hsl(210, 46%, 95%);
  padding: 1rem;
}

/* Desktop (PC) Styles */
@media (min-width: 700px) {
  .box {
    display: flex;
    align-items: center;
    width: 70%;
    margin: auto;
  }

  .box .drawer {
    width: 40%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
  }

  .box .content {
    width: 60%;
  }

  .content h4 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

/* Hides elements when not active */
.hidden {
  display: none !important;
}

.visible {
  display: flex !important;
}

/* Desktop Share Box */

/* Desktop Share Box */
.share-box {
  color: hsl(0, 0%, 100%);
  display: none; /* Start hidden */
  align-items: center;
  justify-content: center;
  background-color: hsl(217, 19%, 35%);
  position: absolute;
  top: -50px; /* Position above the button */
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 20px;
  border-radius: 10px;
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
  gap: 10px;
}

.share-box.visible {
  display: flex; /* Make visible */
}

/* Arrow for Desktop Share Box */
.share-box::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: hsl(217, 19%, 35%) transparent transparent transparent;
}

.share-box i {
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.share-box i:hover {
  color: hsl(210, 46%, 95%);
}

/* Mobile Share Box */
.box-mobile {
  background-color: hsl(217, 19%, 35%);
  padding: 15px;
  width: 100%;
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}
.box-mobile span {
  font-weight: bold;
  margin: 0 2%;
}
.box-mobile i {
  margin: 0 5%;
}
.exit-btn {
  background-color: hsl(216, 3%, 32%);
  border-radius: 50%;
  padding: 10px;
  margin: 0 0 0 15%;
}
