:root {
  --VeryDarkGrayishBlue: hsl(217, 19%, 35%);
  --DesaturatedDarkBlue: hsl(214, 17%, 51%);
  --GrayishBlue: hsl(212, 23%, 69%);
  --LightGrayishBlue: hsl(210, 46%, 95%);
}

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

body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--LightGrayishBlue);
}

main {
  box-shadow: 0 9px 15px var(--GrayishBlue);
  display: flex;
  width: 700px;
  & .img {
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
    width: 50%;
    background-image: url(./images/drawers.jpg);
    background-size: cover;
    background-position: center;
  }

  .detalils {
    width: 70%;
    background-color: #ffff;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    padding: 20px;
    & h2 {
      color: var(--DesaturatedDarkBlue);
      font-size: 22px;
      margin-bottom: 20px;
    }
    p {
      color: var(--GrayishBlue);
      font-size: 15px;
      margin-bottom: 20px;
    }
    & .avatar-box {
      display: flex;
      justify-content: space-between;
      align-items: center;
     & .box {
      display: flex;
      align-items: center;
      gap: 10px;
      & h3 {
        font-size: 13px;
        color: var(--VeryDarkGrayishBlue);
      }
      & span {
        color:var(--GrayishBlue);
        font-size: 13px;
      }
        & img {
          width: 40px;
          height: 40px;
          border-radius: 50%;
          -webkit-border-radius: 50%;
          -moz-border-radius: 50%;
          -ms-border-radius: 50%;
          -o-border-radius: 50%;
}
      }
      & .share {
        background-color: var(--LightGrayishBlue);
        width: 30px;
        height: 30px;
        display: grid;
        place-content: center;
        cursor: pointer;
        border-radius:50%;
        -webkit-border-radius:50%;
        -moz-border-radius:50%;
        -ms-border-radius:50%;
        -o-border-radius:50%;
        position: relative;
       &  .popup {
          position: absolute;
          padding: 10px 20px;
          gap: 15px;
          border-radius: 8px;
          list-style: none;
          align-items: center;
          display: flex;
          background-color: var(--VeryDarkGrayishBlue);
          -webkit-border-radius: 8px;
          -moz-border-radius: 8px;
          -ms-border-radius: 8px;
          -o-border-radius: 8px;
          left: 50%;
          transform: translateX(-50%);
          top: -60px;
          -webkit-transform: translateX(-50%);
          -moz-transform: translateX(-50%);
          -ms-transform: translateX(-50%);
          -o-transform: translateX(-50%);

          & li:first-child {
            font-size: 12px;
            letter-spacing: 1px;
            color: var(--GrayishBlue);
          }
          &::before {
            content: '';
            position: absolute;
            border: 10px solid ;
            bottom: -19px;
            left: 50%;
            border-color: var(--VeryDarkGrayishBlue) transparent transparent;
            transform: translateX(-50%);
            -webkit-transform: translateX(-50%);
            -moz-transform: translateX(-50%);
            -ms-transform: translateX(-50%);
            -o-transform: translateX(-50%);
}
}
}
    }
  }
}

@media (max-width:767px) {
  body {
    padding: 30px;
  }
  main {
    flex-direction: column;
    width: 100%;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    &  .img {
      width: 100%;
      height: 200px !important;
      border-bottom-left-radius:0;
      border-top-right-radius: 7px;

    } 
   & .detalils {
      width: 100%;
     border-bottom-left-radius: 8px !important;
      border-bottom-right-radius: 8px !important; 
      border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
  }
  main > .detalils  .share > .popup {
    width: calc(100% + 40px);
    top: 0 !important;
    height: 60px; 
    border-top-left-radius: 0 !important; 
    border-top-right-radius: 0 !important;
    
    &::before {
      display: none;
    }
  }
  .share {
  }
  .sh {
    position: relative;
    z-index: 100;
    background-color: var(--GrayishBlue) !important;
    margin-top: 21px;
  }
  main > .detalils > .avatar-box .share {
     background-color: transparent;
    position:initial;
   }
   main .avatar-box {
    position: relative;
   }
}

.none {
  display: none !important;
}