body {
  background-color: #edf2f8;
  font-family: "Manrope", sans-serif;
}

#box {
  position: relative;
  display: flex;
  width: 600px;
  border-radius: 10px;
  margin: 250px auto;
  height: 265px;
  overflow: hidden;
  box-shadow: 5px 15px 15px 5px #dbe3ee;
  background-color: #ffffff;
}

#image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}
#drawers {
  width: auto;
  height: auto;
  max-width: 340px;
  max-height: 500px;
}
#text-box {
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 7px;
}
#title {
  font-size: 19px;
  color: hsl(217, 19%, 35%);
}
#text {
  font-size: 12px;
  color: hsl(214, 17%, 51%);
  padding: 10px 0;
  line-height: 20px;
}
#info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
#sub-info {
  display: flex;
  gap: 10px;
  align-items: center;
}
#date {
  color: gray;
  padding-top: 5px;
}

/* 사진 동그랗게 만들기 */
#photo-box {
  width: 35px;
  height: 35px;
  border-radius: 70%;
  overflow: hidden;
}
#photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#share {
  width: 30px;
  height: 30px;
  border-radius: 70%;
  background-color: #edf1f9;
  border: none;
}
#share:hover {
  background-color: hsl(217, 19%, 35%);
}
/* svg 색상 바꾸기 어떻게 하는지 모르겠음 */
#icon-share:hover {
  fill: invert(100%);
}

.tooltip {
  display: none;
  position: absolute;
  /* 중앙배치 */
  right: -100px;
  bottom: 80px;
  transform: translateX(-50%);
  background: hsl(217, 19%, 35%);
  padding: 10px 25px;
  border-radius: 8px;
  text-align: center;
  color: hsl(214, 17%, 51%);
  z-index: 999;
}
.tooltip-content {
  display: flex;
  gap: 18px;
  align-items: center;
}
.tooltip:after {
  display: block;
  content: "";
  position: absolute;
  top: 40px;
  left: 160px;
  width: 0px;
  height: 0px;
  border-bottom: 8px solid none;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid hsl(217, 19%, 35%);
}
.wrap:hover .tooltip {
  display: block;
}

@media (max-width: 375px) {
  body {
    background-color: #edf2f8;
    font-family: "Manrope", sans-serif;
  }

  #box {
    display: flex;
    flex-direction: column;
    width: 340px;
    margin: 50px 10px;
    border-radius: 10px;
    height: 500px;
    overflow: hidden;
    box-shadow: 5px 15px 15px 5px #dbe3ee;
    background-color: #ffffff;
  }
  #image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
  }
  #drawers {
    width: auto;
    height: auto;
    max-width: 340px;
    max-height: 500px;
  }
  #text-box {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 30px 25px 30px;
    gap: 7px;
  }
  #title {
    font-size: 18px;
    color: hsl(217, 19%, 35%);
  }
  #text {
    font-size: 13px;
    color: hsl(214, 17%, 51%);
    padding: 10px 5px;
    line-height: 20px;
  }
  #info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding-top: 20px;
  }
  #sub-info {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  #date {
    color: gray;
    padding-top: 5px;
  }

  /* 사진 동그랗게 만들기 */
  #photo-box {
    width: 35px;
    height: 35px;
    border-radius: 70%;
    overflow: hidden;
  }
  #photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #share {
    width: 30px;
    height: 30px;
    border-radius: 70%;
    background-color: #edf1f9;
    border: none;
  }
  #share:hover {
    background-color: hsl(217, 19%, 35%);
  }
  /* svg 색상 바꾸기 어떻게 하는지 모르겠음 */
  #icon-share:hover {
    fill: invert(100%);
    z-index: 999;
  }

  .tooltip {
    display: none;
    overflow: hidden;
    position: absolute;
    /* 중앙배치 */
    width: 100%;
    height: 45px;
    object-fit: cover;
    left: 150px;
    bottom: 0px;

    /* bottom: 15%; */
    background: hsl(217, 19%, 35%);
    padding: 10px 25px;
    text-align: center;
    color: hsl(214, 17%, 51%);
  }
  .tooltip-content {
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
  }
  .wrap:hover .tooltip {
    display: block;
    z-index: 999;
  }
}
