* {
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  *:before,
  *:after {
    box-sizing: border-box;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  ul,
  p,
  form,
  input {
    margin: 0;
    padding: 0;
    outline: none;
    list-style-type: none;
  }

  button:focus {
    outline: 0;
  }

  button,
  input,
  select {
    border: 0;
    font-family: Arial, Helvetica, sans-serif;
  }

  a {
    text-decoration: none;
  }

  html {
    height: 100%;
  }

  body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    color: #000;
    background: linear-gradient(45deg, #f7e4e4 3%, #fcefdc 100%);
  }

  .wrapper {
    position: relative;
    width: calc(100% - 102px);
    height: 100vh;
    margin: 0 auto;
  }

  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #8c8c8c;
  }

  .model-pic {
    width: 27px;
    height: 27px;
    background-image: url("../img/model.jpg");
    background-size: 100%;
    border-radius: 50%;
    margin: 0 auto;
  }

  .model-name {
    position: relative;
    padding-left: 20px;
    font-size: 16px;
  }

  .model-name::before {
    content: "";
    position: absolute;
    left: 0;
    width: 15px;
    height: 15px;
    background-image: url("../img/emoji_smile.png");
  }

  footer {
    position: absolute;
    left: 60px;
    bottom: 25px;
    width: calc(100% - 120px);
    height: 35px;
    border-radius: 50px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    background-color: #fff;
    color: #8c8c8c;
    padding: 0 12px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .userinput {
    width: calc(100% - 32px);
    height: 25px;
    line-height: 25px;
    font-size: 14px;
    background: transparent;
    border: 0;
  }

  .btn-send {
    width: 12px;
    cursor: pointer;
  }

  .main-box {
    padding-top: 40px;
    width: 100%;
    height: calc(100vh - 118px);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .main-box::-webkit-scrollbar {
    display: none;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes showFirst {
    from {
      opacity: 1;
      height: auto;
    }

    to {
      opacity: 0;
      padding: 0;
      height: 0;
      width: 0;
    }
  }

  @keyframes showSecond {
    from {
      height: auto;
      opacity: 0;
      padding: 0;
    }

    to {
      height: auto;
      opacity: 1;
      padding: 10px 17px 14px 12px;
    }
  }

  .c1 {
    animation-delay: 0s;
  }

  .c2 {
    animation-delay: 3s;
  }

  .c3 {
    animation-delay: 6s;
  }

  .c4 {
    animation-delay: 9s;
  }

  .c5 {
    animation-delay: 12s;
  }

  .chat {
    position: relative;
    padding-left: 62px;
    margin-bottom: 11px;
    text-align: left;
    opacity: 0;
    animation-name: fadeIn;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
  }

  .chat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background-image: url("../img/model.jpg");
    background-size: 100%;
    border-radius: 50%;
  }

  .chat-bg {
    display: inline-block;
  }

  .c1 .loading,
  .c1 .chat-txt {
    animation-delay: 1s;
  }

  .c2 .loading,
  .c2 .chat-txt {
    animation-delay: 4s;
  }

  .c3 .loading,
  .c3 .chat-txt {
    animation-delay: 7s;
  }

  .c4 .loading,
  .c4 .chat-txt {
    animation-delay: 10s;
  }

  .c5 .loading,
  .c5 .chat-txt {
    animation-delay: 13s;
  }

  .loading,
  .chat-txt {
    background: #fff;
    border-top-left-radius: 2px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    animation-fill-mode: forwards;
    animation-duration: 0.1s;
  }

  .chat-txt {
    padding: 0;
    opacity: 0;
    height: 0;
    animation-name: showSecond;
  }

  .ImgOnly .chat-txt {
    padding: 0;
    background: transparent;
  }

  .sendImg {
    border: 3px solid #fff;
    border-radius: 25px;
  }

  .timestamp {
    font-size: 12px;
    padding-bottom: 7px;
    color: #8c8c8c;
  }

  .loading {
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 15px 5px;
    animation-name: showFirst;
  }

  .loading span {
    background: #000;
    border-radius: 50%;
    animation-name: fadeIn;
    animation-duration: 1s;
    animation-iteration-count: infinite;
  }

  .ld1 {
    width: 2px;
    height: 2px;
    margin-right: 8px;
    animation-delay: 0s;
  }

  .ld2 {
    width: 4px;
    height: 4px;
    margin-right: 8px;
    animation-delay: 0.2s;
  }

  .ld3 {
    width: 6px;
    height: 6px;
    animation-delay: 0.4s;
  }

  .popup {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
  }

  .popup-box {
    position: relative;
    top: 30vh;
    width: 320px;
    height: auto;
    padding: 32px 22px 24px;
    margin: 0 auto;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
  }

  .popup-box p {
    text-align: left;
    font-size: 18px;
    line-height: 30px;
    color: #383838;
    padding-bottom: 10px;
  }

  .popup-box a, span {
    display: block;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    height: 50px;
    line-height: 50px;
    background: #f14d68;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
  }

  .wrapper.blur {
    filter: blur(4px);
  }

  .say {
    position: relative;
    right: 0;
    text-align: right;
  }

  .say-box {
    display: inline-block;
    background: #f2faca;
    border-top-left-radius: 25px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    padding: 10px 13px 15px;
    margin-bottom: 11px;
    text-align: left;
  }

  @media (-moz-touch-enabled: 0),
  (pointer: fine) {
    .popup-box a:hover, span:hover {
      background: #f23353;
    }
  }

  @media only screen and (max-width: 1023px) {
    body {
      min-height: calc(var(--vh, 1vh) * 100);
    }

    .wrapper {
      width: calc(100% - 32px);
      height: calc(var(--vh, 1vh) * 100);
    }

    .main-box {
      height: calc(calc(var(--vh, 1vh) * 100) - 118px);
    }

    footer {
      width: 100%;
      left: 0;
    }

    .chat-txt {
      max-width: 250px;
    }
  }