* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --side-div-width: 500px;
  --color-div-height: 85%;
  --color-div-width: calc(var(--side-div-width) * 1.3);
  --point: 0.6;

  --Purple300: hsl(276, 100%, 81%);
  --Purple600: hsl(276, 55%, 52%);
  --Gray500: hsl(270, 7%, 64%);
  --Gray300: hsl(206, 6%, 79%);
  --Purple950: hsl(271, 36%, 24%);

  --Pink500: hsl(293, 100%, 63%);
  --Purple500: hsl(264, 100%, 61%);

  --White: hsl(0, 100%, 100%);
  --Gray100: hsl(270, 20%, 96%);

  --Purple950: hsl(271, 36%, 24%);
  --Pink-400: hsl(289, 100%, 72%);
}
body {
  min-height: 100vh;
  width: 100%;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  position: relative;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}
#wallpaper {
  display: flex;
  justify-content: space-between;
  min-height: 100%;
  width: 100%;
  z-index: -1;
  position: absolute;
  top: 0;
}
#left-div {
  height: 100%;
  width: 30%;
  position: absolute;
  left: 0;
}
#right-div {
  height: 100%;
  width: 18%;
  position: absolute;
  right: 0;
}
.color-div {
  height: var(--color-div-height);
  width: var(--color-div-width);
  background: #000;
  position: absolute;
}
#left-color-div {
  border-bottom-left-radius: calc(var(--color-div-width) * 0.5);
  border-bottom-right-radius: calc(var(--color-div-width) * 0.5);
  top: 0;
  right: 20%;
  background: linear-gradient(to left, var(--Pink500), var(--Purple500));
}
#right-color-div {
  border-top-left-radius: calc(var(--color-div-width) * 0.5);
  border-top-right-radius: calc(var(--color-div-width) * 0.5);
  bottom: 0;
  left: 0;
  background: var(--Gray100);
}
main {
  width: 80%;
  height: 100vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1;
  /* transition: width 0.5s ease-in-out; */
  transition-property: flex-direction;
  transition-duration: 1s;
  transition-timing-function: ease-in-out;
}
#mobile {
  width: calc(var(--point) * 375px);
  height: calc(var(--point) * 375px * 2);
  background: var(--White);
  border-style: solid;
  border-color: var(--White);
  border-width: calc(var(--point) * 18px);
  border-radius: calc(var(--point) * 45px);
  box-shadow: 0 30px 90px rgba(30, 30, 30, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 4;
}
#notch {
  height: calc(var(--point) * 30px);
  width: calc(var(--point) * 209px);
  border-bottom-left-radius: calc(var(--point) * 20px);
  border-bottom-right-radius: calc(var(--point) * 20px);
  background: var(--White);
  position: absolute;
  top: 0;
  z-index: 5;
}
#mobile-screen {
  height: 100%;
  width: 100%;
  background: var(--Gray100);
  z-index: 1;
  box-shadow: -0.5px -0.5px 1px 1px inset rgba(0, 0, 0, 0.05);
}
#chat-app-bar {
  height: calc(var(--point) * 110px);
  width: 100%;
  background: linear-gradient(to bottom left, var(--Pink500), var(--Purple500));
  border-bottom-left-radius: calc(var(--point) * 15px);
  border-bottom-right-radius: calc(var(--point) * 15px);
  position: absolute;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: calc(var(--point) * 20px);
  padding-right: calc(var(--point) * 15px);
  padding-bottom: (var(--point) * 15px);
  padding-left: calc(var(--point) * 15px);
}
#back-button {
  font-size: 1rem;
  color: var(--White);
}
#contact-photo img {
  height: calc(var(--point) * 40px);
  width: calc(var(--point) * 40px);
  border-radius: 50%;
  border: solid calc(var(--point) * 2px) var(--White);
  margin: 0 calc(var(--point) * 3px);
}
#contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* gap: calc(var(--point) * 0.2rem); */
  margin-left: calc(var(--point) * 10px);
  flex-grow: 1;
}
#contact-name {
  color: var(--White);
  font-size: 0.9rem;
  font-weight: 400;
}
#contact-status {
  color: var(--Purple300);
  font-size: 0.6rem;
  font-weight: 400;
  line-height: 1rem;
}
#menu-button i {
  font-size: 0.7rem;
  color: var(--White);
}
#chat-app-screen {
  padding-top: calc(var(--point) * 113px);
}
.msg {
  width: fit-content;
  padding: calc(var(--point) * 9px);
  border-radius: calc(var(--point) * 15px);
  font-size: calc(var(--point) * 13px);
  line-height: calc(var(--point) * 20px);
  margin: calc(var(--point) * 6px);
}
.received-msg {
  max-width: 65%;
  background: rgb(235, 224, 235);
  color: var(--Purple500);
  border-bottom-left-radius: calc(var(--point) * 5px);
}
.sent-msg {
  max-width: 65%;
  background: var(--White);
  color: var(--Purple950);
  border-bottom-right-radius: calc(var(--point) * 5px);
  margin-left: auto;
  box-shadow: 0 10px 9px 0px rgba(0, 0, 0, 0.05);
}
.sent-img {
  display: flex;
  justify-content: flex-end;
  gap: calc(var(--point) * 10px);
  margin-left: auto;
  margin: calc(var(--point) * 6px);
  /* margin: calc(var(--point) * 10px); */
}
.sent-img img {
  height: calc(var(--point) * 60px);
  width: calc(var(--point) * 60px);
  border-radius: calc(var(--point) * 15px);
  object-fit: cover;
  box-shadow: 0 10px 9px 0px rgba(0, 0, 0, 0.05);
}
.reactive-received-msg {
  color: var(--Gray100);
  display: flex;
  justify-content: start;
  align-items: center;
  gap: calc(var(--point) * 10px);
  padding: calc(var(--point) * 17px) calc(var(--point) * 12px);
  margin: calc(var(--point) * 10px);
  width: 75%;
  background: linear-gradient(to bottom left, var(--Pink500), var(--Purple500));
  border-bottom-left-radius: calc(var(--point) * 5px);
}
.check {
  height: calc(var(--point) * 20px);
  width: calc(var(--point) * 20px);
  border-radius: 50%;
  border-style: solid;
  border-width: calc(var(--point) * 2px);
  border-color: var(--Pink-400);
  display: flex;
  justify-content: center;
  align-items: center;
}
.check-icon {
  margin-top: calc(var(--point) * 6px);
  display: none;
}
.reactive-received-msg p {
  display: flex;
  flex-grow: 1;
}
.price {
  margin-left: auto;
  font-size: calc(var(--point) * 20px);
  font-weight: 700;
}
#chat-app-input {
  height: calc(var(--point) * 55px);
  width: 92%;
  background: var(--White);
  border-radius: calc(var(--point) * 30px);
  position: absolute;
  bottom: calc(var(--point) * 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#chat-app-input #place-holder {
  color: var(--Gray300);
  font-size: calc(var(--point) * 13px);
  line-height: calc(var(--point) * 60px);
  padding-left: calc(var(--point) * 30px);
}
#send-button {
  margin-right: calc(var(--point) * 10px);
  margin-top: calc(var(--point) * 10px);
  font-size: calc(var(--point) * 35px);
  baseline-shift: 30px;
  color: var(--Purple950);
  cursor: pointer;
}
#content {
  width: 50%;
  text-align: left;
}
#content p {
  color: var(--Gray500);
  font-size: 1rem;
  line-height: 1.6rem;
}
#content h2 {
  color: var(--Purple950);
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 25px;
}
@media screen and (min-width: 1700px) {
  main {
    width: 65%;
  }
}
@media screen and (min-width: 900px) and (max-width: 1700px) {
  main {
    width: 80%;
  }
}
@media screen and (min-width: 700px) and (max-width: 900px) {
  main {
    width: 90%;
  }
}
@media screen and (max-width: 700px) {
  :root {
    --point: 0.8;
  }
  main {
    flex-direction: column;
    width: 80%;
    height: auto;
    justify-content: space-evenly;
    border: none;
  }
  #mobile {
    margin: 80px 0;
  }
  #content {
    width: 90%;
    text-align: center;
  }
  #content h2 {
    font-size: 2.5rem;
  }
  #content p {
    padding-bottom: 20%;
  }
  #left-div {
    width: 50%;
  }
  #right-div {
    width: 50%;
  }
  .color-div {
    height: 55%;
  }
  #left-color-div {
    right: 0;
  }
  #right-color-div {
    left: 0;
  }
}
@media screen and (max-width: 500px) {
  :root {
    --point: 0.6;
  }
  #content h2 {
    font-size: 2rem;
    font-weight: 500;
  }
  #content p {
    font-size: 0.9rem;
  }
}
@media screen and (max-width: 350px) {
  body {
    width: 350px;
  }
  main {
    width: 90%;
    margin: 0 auto;
  }
  #content h2 {
    font-size: 1.6rem;
    font-weight: 500;
  }
  #content p {
    font-size: 0.8rem;
  }
}
