/* * BASE STYLES
 * */
* {
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  height: 500px;
  width: calc(50% + 50px);
  background: linear-gradient(to bottom, #CE41FF, #8F3CFE);
  top: 0;
  left: -50px;
  border-bottom-right-radius: 1000px;
}

body::after {
  content: "";
  position: absolute;
  height: 500px;
  width: calc(50% + 50px);
  background: #f5f3f7;
  bottom: -162px;
  right: -50px;
  border-top-left-radius: 1000px;
  z-index: -1;
}

h1 {
  font-size: 2.5em;
  font-weight: 500;
  color: #3e2753;
}

p {
  line-height: 1.7;
}

.wrapper {
  padding-top: 65px;
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
}

.phone {
  border: 10px solid white;
  max-width: 250px;
  margin: 0 auto;
  border-radius: 30px;
  position: relative;
  height: 505px;
  overflow: hidden;
  font-size: 0.5em;
  -moz-box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.phone:after {
  position: absolute;
  content: "";
  width: 130px;
  height: 20px;
  border-radius: 0 0 calc(30px / 2) calc(30px / 2);
  background: white;
  top: -1px;
  left: calc(50% - (130px / 2));
}

.phone-ui {
  position: relative;
  height: 100%;
  background: #f5f3f7;
}

.phone--header {
  background: linear-gradient(to left, #CE41FF, #8F3CFE);
  border-radius: 20px 20px 6px 6px;
  padding: 30px 12px 12px 12px;
  color: white;
  display: flex;
  align-items: center;
}

.chat-avatar {
  position: relative;
  margin-left: 20px;
  margin-right: 10px;
}

.chat-avatar::before {
  content: "";
  position: absolute;
  height: 6px;
  width: 6px;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  margin-left: -12px;
  transform: rotate(45deg);
  top: 8px;
}

.chat-avatar img {
  height: 24px;
  border-radius: 100px;
  border: 1px solid white;
  position: relative;
}

.chat-info {
  width: 100%;
  position: relative;
}

.chat-info p {
  margin-bottom: 0;
}

p.chat-name {
  font-size: 1.2em;
  margin-top: 0;
}

p.chat-status {
  font-size: 0.9em;
  font-weight: 400;
  color: #d89eff;
  margin-top: 3px;
}

.chat-menu,
.chat-menu::before,
.chat-menu::after {
  background: white;
  border-radius: 100px;
  height: 2px;
  width: 2px;
}

.chat-menu::before,
.chat-menu::after {
  position: absolute;
  content: "";
}

.chat-menu {
  position: relative;
  margin-right: 5px;
}

.chat-menu:before {
  top: -4px;
}

.chat-menu:after {
  bottom: -4px;
}

.phone--input {
  background: white;
  position: absolute;
  bottom: 10px;
  left: 10px;
  border-radius: 100px;
  width: calc(100% - 20px);
  padding: 12px 20px;
}

.phone--input:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  border-radius: 100px;
  background: #3e2753;
  right: 5px;
  bottom: 5px;
}

.phone--input:after {
  position: absolute;
  content: "";
  height: 5px;
  width: 5px;
  border-top: 3px solid white;
  border-right: 3px solid white;
  right: 14px;
  bottom: 13px;
  transform: rotate(45deg);
}

.phone--input .placeholder-text {
  color: #c6cacd;
}

#msg-area {
  height: 365px;
  padding: 10px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#msg-area .msg-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  height: 100%;
}

.msg {
  margin-bottom: 8px;
  display: flex;
  position: absolute;
  top: 370px;
  width: calc(100% - 20px);
}

.msg-content {
  padding: 5px 8px;
  background: #d89eff;
  border-radius: 10px;
  max-width: 60%;
}

.msg-content p {
  line-height: 1.5;
  margin: 0;
}

.msg.from-sam .msg-content {
  background: #E7D7F4;
  border-bottom-left-radius: 2px;
  color: #9241c8;
}

.msg.from-me {
  justify-content: flex-end;
}

.msg.from-me .msg-content {
  background: white;
  border-bottom-right-radius: 2px;
  color: #6e5d7e;
}

.msg.from-me:not(.type-image) .msg-content {
  -moz-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.05);
  -webkit-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.05);
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.05);
}

.msg-content img {
  max-width: 40px;
  border-radius: 10px;
}

.msg-content img:not(:last-of-type) {
  margin-right: 8px;
}

.msg.from-me.type-image .msg-content {
  max-width: 80%;
  background: transparent;
  padding: 0;
}

.msg-list > .from-me {
  margin-top: 15px;
}

.msg-list > .from-me ~ .from-me {
  margin-top: 0;
}

.msg:nth-child(5) {
  margin-bottom: 15px;
}

.msg.type-choice .msg-content {
  max-width: 100%;
  width: 80%;
  color: white;
  background: linear-gradient(to right, #CE41FF, #8F3CFE);
  position: relative;
  padding: 10px 10px 10px 32px;
}

.msg.type-choice .msg-content::before {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  border: 1px solid #e570ff;
  border-radius: 100px;
  margin-left: -22px;
  margin-top: -1px;
}

.msg.type-choice .msg-content .price {
  position: absolute;
  right: 15px;
  font-size: 1.6em;
  margin-top: -4px;
  font-weight: 700;
}

.text-area {
  text-align: center;
  padding: 0 30px;
  z-index: 100;
  max-width: 450px;
  margin: 0 auto;
  margin-bottom: 62px;
}

.text-area p {
  color: #a39daa;
}

@media screen and (min-width: 800px) {
  .wrapper {
    display: grid;
    grid-template-columns: 1fr 53%;
    padding-top: 0;
    align-items: center;
  }

  .text-area {
    text-align: left;
    grid-gap: 0;
    margin-top: 0;
    max-width: none;
    margin-bottom: 0;
  }

  body::before {
    height: 700px;
    width: 600px;
    left: auto;
    right: calc(50vw + 300px);
    border-bottom-right-radius: 300px;
    border-bottom-left-radius: 300px;
  }

  body::after {
    height: 700px;
    width: 600px;
    right: auto;
    left: calc(50vw + 300px);
    border-top-right-radius: 300px;
    border-top-left-radius: 300px;
  }
}
@media screen and (min-width: 960px) {
  body::before {
    right: calc(50vw + 320px);
    left: auto;
  }
}

/*# sourceMappingURL=styles.css.map */
