@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
.wrapper {
  width: 100%;
  max-width: 450px;
  border-radius: 14px;
  font-weight: 500;
  box-shadow: 0 14px 28px #00000073, 0 10px 10px #0000006b;
  color: #aaa;
}
.form {
  padding: 25px 30px;
}
.form header {
  font-size: 25px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #79797c;
  font-weight: bold;
  color: #aaa;
}
.form form {
  margin: 20px 0;
}
.form form .error-text {
  color: #721c24;
  padding: 8px 10px;
  text-align: center;
  border-radius: 5px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  margin-bottom: 10px;
  display: none;
}
.form form .name-details {
  display: flex;
}
.form .name-details .field:first-child {
  margin-right: 10px;
}
.form .name-details .field:last-child {
  margin-left: 10px;
}
.form form .field {
  display: flex;
  margin-bottom: 10px;
  flex-direction: column;
  position: relative;
}
.form form .field label {
  margin-bottom: 5px;
}
.form form .input input {
  height: 40px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  padding: 0 10px;
  border-radius: 5px;
  color: #2c3033;
  background-color: #aaa;
  border: none;
  box-shadow: 0 7px 14px #00000073, 0 5px 5px #0000006b;
  outline: none;
}
.form form .field input {
  outline: none;
}
.form form .image input {
  display: none;
}
.custom-file-upload {
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
  height: 40px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  color: #2c3033;
  background-color: #aaa;
  border: none;
  box-shadow: 0 7px 14px #00000073, 0 5px 5px #0000006b;
  outline: none;
}
.form form .button input {
  height: 45px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  border-radius: 5px;
  background-color: #aaa;
  color: #333;
  border: none;
  box-shadow: 0 7px 14px #00000073, 0 5px 5px #0000006b;
  outline: none;
  padding: 0 15px;
}
.form form .field i.fa-eye {
  position: absolute;
  right: 15px;
  top: 70%;
  color: #333;
  cursor: pointer;
  transform: translateY(-50%);
}
.form form .field i.active::before {
  color: #333;
  content: "\f070";
}
.form .link {
  text-align: center;
  margin: 10px 0;
  font-size: 17px;
}
.form .link a {
  color: #007bff;
}
.form .link a:hover {
  text-decoration: underline;
}

/* Users List CSS Start */
.users {
  padding: 25px 30px;
}
.users header,
.users-list a {
  display: flex;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #79797c;
  justify-content: space-between;
}
.wrapper img {
  object-fit: cover;
  border-radius: 50%;
}
.users header img {
  height: 50px;
  width: 50px;
}
:is(.users, .users-list) .content {
  display: flex;
  align-items: center;
}
:is(.users, .users-list) .content .details {
  color: #79797c;
  margin-left: 20px;
}
:is(.users, .users-list) .details span {
  font-size: 18px;
  font-weight: 600;
  color: #aaa;
}
.users header .logout {
  display: block;
  background: #aaa;
  color: #333;
  outline: none;
  border: none;
  padding: 7px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 7px 14px #00000073, 0 5px 5px #0000006b;
}
.users .search {
  margin: 20px 0;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
}
.users .search .text {
  font-size: 18px;
  color: #79797c;
}
.users .search input {
  position: absolute;
  outline: none;
  height: 45px;
  width: calc(100% - 50px);
  font-size: 16px;
  font-weight: 600;
  padding: 0 15px;
  border-radius: 5px 0 0 5px;
  color: #2c3033;
  background-color: #aaa;
  border: none;
  box-shadow: 0 7px 14px #00000073, 0 5px 5px #0000006b;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}
.users .search input.show {
  opacity: 1;
  pointer-events: auto;
}
.users .search button {
  position: relative;
  z-index: 1;
  width: 47px;
  height: 45px;
  font-size: 17px;
  cursor: pointer;
  border: none;
  background: #79797c;
  color: #333;
  outline: none;
  border-radius: 0 5px 5px 0;
  transition: all 0.2s ease;
}
.users .search button.active {
  background: #333;
  color: #aaa;
  box-shadow: 0 7px 14px #00000073, 0 5px 5px #0000006b;
}
.search button.active i::before {
  content: "\f00d";
}
.users-list {
  max-height: 350px;
  overflow-y: auto;
}
:is(.users-list, .chat-box)::-webkit-scrollbar {
  width: 0px;
}
.users-list a {
  padding-bottom: 10px;
  margin-bottom: 15px;
  padding-right: 15px;
  border-bottom-color: #79797c;
}
.users-list a:last-child {
  margin-bottom: 0px;
  border-bottom: none;
}
.users-list a img {
  height: 40px;
  width: 40px;
}
.users-list a .details span {
  color: #aaa;
  font-weight: 600;
}
.users-list a .details p {
  color: #79797c;
}
.users-list a .status-dot {
  font-size: 12px;
  color: #468669;
  padding-left: 10px;
}
.users-list a .status-dot.offline {
  color: #aaa;
}

/* Chat Area CSS Start */
.chat-area header {
  display: flex;
  align-items: center;
  padding: 18px 30px;
}
.chat-area header .back-icon {
  color: #aaa;
  font-size: 18px;
}
.chat-area header img {
  height: 45px;
  width: 45px;
  margin: 0 15px;
}
.chat-area header .details span {
  font-size: 17px;
  font-weight: 500;
}
.chat-box {
  position: relative;
  min-height: 500px;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px 30px 20px 30px;
  background: #ddd;
  box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 5%),
    inset 0 -32px 32px -32px rgb(0 0 0 / 5%);
}
.chat-box .text {
  position: absolute;
  top: 45%;
  left: 50%;
  width: calc(100% - 50px);
  text-align: center;
  transform: translate(-50%, -50%);
}
.chat-box .chat {
  margin: 15px 0;
}
.chat-box .chat p {
  word-wrap: break-word;
  padding: 8px 16px;
  box-shadow: 0 0 32px rgb(0 0 0 / 8%), 0rem 16px 16px -16px rgb(0 0 0 / 10%);
}
.chat-box .outgoing {
  display: flex;
}
.chat-box .outgoing .details {
  margin-left: auto;
  max-width: calc(100% - 130px);
}
.outgoing .details p {
  background: #333;
  color: #eee;
  border-radius: 18px 18px 0 18px;
}
.chat-box .incoming {
  display: flex;
  align-items: flex-end;
}
.chat-box .incoming img {
  height: 35px;
  width: 35px;
}
.chat-box .incoming .details {
  margin-right: auto;
  margin-left: 10px;
  max-width: calc(100% - 130px);
}
.incoming .details p {
  background: #eee;
  color: #333;
  border-radius: 18px 18px 18px 0;
}
.typing-area {
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
}
.typing-area input {
  height: 45px;
  width: calc(100% - 58px);
  font-size: 16px;
  outline: none;
  border-radius: 5px 0 0 5px;
  font-weight: 600;
  padding: 0 15px;
  border-radius: 5px;
  color: #2c3033;
  background-color: #ddd;
  border: none;
  box-shadow: 0 7px 14px #00000073, 0 5px 5px #0000006b;
  outline: none;
}
.typing-area button {
  color: #eee;
  width: 55px;
  border: none;
  outline: none;
  background: #333;
  font-size: 19px;
  cursor: pointer;
  opacity: 0.7;
  pointer-events: none;
  border-radius: 0 5px 5px 0;
  transition: all 0.3s ease;
  box-shadow: 0 7px 14px #00000073, 0 5px 5px #0000006b;
}
.typing-area button.active {
  opacity: 1;
  pointer-events: auto;
}

/* Responive media query */
@media screen and (max-width: 450px) {
  .form,
  .users {
    padding: 20px;
  }
  .form header {
    text-align: center;
  }
  .form form .name-details {
    flex-direction: column;
  }
  .form .name-details .field:first-child {
    margin-right: 0px;
  }
  .form .name-details .field:last-child {
    margin-left: 0px;
  }
  .users header img {
    height: 45px;
    width: 45px;
  }
  .users header .logout {
    padding: 6px 10px;
    font-size: 16px;
  }
  :is(.users, .users-list) .content .details {
    margin-left: 15px;
  }
  .users-list a {
    padding-right: 10px;
  }
  .chat-area header {
    padding: 15px 20px;
  }
  .chat-box {
    min-height: 400px;
    padding: 10px 15px 15px 20px;
  }
  .chat-box .chat p {
    font-size: 15px;
  }
  .chat-box .outogoing .details {
    max-width: 230px;
  }
  .chat-box .incoming .details {
    max-width: 265px;
  }
  .incoming .details img {
    height: 30px;
    width: 30px;
  }
  .chat-area form {
    padding: 20px;
  }
  .chat-area form input {
    height: 40px;
    width: calc(100% - 48px);
  }
  .chat-area form button {
    width: 45px;
  }
}
.root {
  width: 100%;
  min-width: 375px;
  min-height: 100vh;
  overflow: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 2rem 0;
  margin: 0 auto;
  background: hsl(93, 44%, 80%)
    linear-gradient(180deg, hsl(93, 44%, 80%) 0%, hsl(93, 44%, 80%) 100%);
}

main {
  width: 100%;
  max-width: 1200px;
  position: relative;
  padding: 0 0 0 45px;

  &::before {
    content: "";
    position: absolute;
    top: 206px;
    left: -48px;
    background: url("/assets/img/svgs/illboxdes.svg")
      no-repeat 0 0;
    width: 190px;
    height: 200px;
    z-index: 10;
    animation: bounce 0.5s;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(0.5, 0.05, 1, 0.5);
    animation-iteration-count: infinite;
  }
}

@keyframes bounce {
  from {
    transform: translate3d(0, -10px, 0);
  }
  to {
    transform: translate3d(0, 10px, 0);
  }
}

@-webkit-keyframes bounce {
  from {
    -webkit-transform: translate3d(0, -10px, 0);
    transform: translate3d(0, -10px, 0);
  }
  to {
    -webkit-transform: translate3d(0, 10px, 0);
    transform: translate3d(0, 10px, 0);
  }
}

article {
  background: white
    url("/assets/img/svgs/myownbg.svg") no-repeat -580px -294px;
  border-radius: 0;
  display: flex;
  max-width: 100%;
  min-width: 300px;
  padding: 65px 95px 85px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: -10px 40px 37px -5px rgb(0 0 0 / 20%);

  &::before {
    content: "";
    background: url("/assets/img/svgs/illboxonl.svg")
      no-repeat 0 0;
    position: absolute;
    width: 472px;
    height: 360px;
    top: 70px;
    left: -86px;
  }

  .contentWrapper {
    width: 500px;
    margin-left: auto;
  }

  h2 {
    font-size: 14px;
    font-weight: 400;
    color: hsl(237, 12%, 33%);
    margin: 0;

    &:hover {
      color: hsl(14, 88%, 65%);
    }
    
    label {
      cursor: pointer;
      width: 100%;
      display: block;
      padding: 0 0 18px;
      
      
    }
  }
  h9 {
    font-size: 18px;
    font-weight: 400;
    color: white;
    margin: 0;

    &:hover {
      color: hsl(14, 88%, 65%);
    }
    }
  ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;

    li {
      position: relative;
      border-top: 1px solid hsl(240, 5%, 91%);
      padding: 17px 0 0;
      margin: 0;
      overflow: hidden;

      &:first-child {
        padding: 0;
        border: none;
      }

      &:last-child {
        border-bottom: 1px solid hsl(240, 5%, 91%);
      }
    }

    input[type="checkbox"] {
      height: 0;
      width: 0;
      visibility: hidden;
      position: absolute;
      top: 0;
      left: 0;
    }
  }

  .answer {
    width: 95%;
    height: 0;
    line-height: 1.5em;
    margin: 0;
    transition: all 0.5s cubic-bezier(0, 1, 1, 1);
  }

  input:checked ~ .answer {
    height: auto;
    margin: 0 0 18px;
  }

  input:checked ~ h2 {
    font-weight: 700;

    label {
      padding: 0 0 10px;

      &::after {
        transform: scaleY(-1);
      }
    }
  }
}

}

@media screen and (min-height: 768px) and (min-width: 1440px) {
  .root {
    padding: 8.125rem 0 4rem;
  }
}

@media screen and (max-width: 1100px) {
  article {
    .contentWrapper {
      width: 300px;
    }
  }
}

@media screen and (max-width: 1050px) {
  article {
    .contentWrapper {
      width: 280px;
    }

    h2 {

      label {
        &::after {
          margin: 6px 0 0 0;
        }
      }
    }
  }
}

@media screen and (max-width: 991px) {
  h1 {
    text-align: center;
    margin: 0 0 32px;
  }

  .root {
    padding: 3rem 0;
  }

  main {
    padding: 109px 0 0;

    &::before {
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      background: url("/assets/img/svgs/illboxdesmob.svg")
        no-repeat 0 0;
      width: 239px;
      height: 182px;
      z-index: 10;
      animation: none;
    }

    &::after {
      content: "";
      position: absolute;
      top: 107px;
      left: 50%;
      transform: translateX(-50%);
      background: url("/assets/img/svgs/mybgownnmob.svg")
        no-repeat 0 0;
      width: 239px;
      height: 182px;
      z-index: 8;
    }
  }

  article {
    padding: 130px 23.5px 48px;
    background-color: white;
    background-image: none;
    min-width: 327px;

    &::before {
      display: none;
    }

    h2 {
      font-size: 13px;

      &:hover {
        color: hsl(237, 12%, 33%);
      }

      label {
        &::after {
          margin: 6px 0 0;
        }
      }
    }

    .contentWrapper {
      width: 100%;
      margin-left: 0;
    }

    input:active ~ h2 {
      color: hsl(14, 88%, 65%);
    }
  }
}