@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Big+Shoulders:opsz,wght@10..72,100..900&family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Karla:ital,wght@0,200..800;1,200..800&family=Kumbh+Sans:wght@100..900&family=League+Spartan:wght@100..900&family=Lexend+Deca:wght@100..900&family=Manrope:wght@200..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap");

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

:root {
  --pale-violet: hsl(276, 100%, 81%); /* sub-heading at the top of the app UI */
  --moderate-violet: hsl(276, 55%, 52%); /* chat on the left */
  --desaturated-dark-violet: hsl(271, 15%, 43%); /* chat on the right */
  --grayish-blue: hsl(206, 6%, 79%); /* placeholder text */
  --very-dark-desaturated-violet: hsl(271, 36%, 24%); /* main heading */
  --dark-grayish-violet: hsl(270, 7%, 64%); /* paragraph */

  /* Gradients */
  --light-magenta: hsl(293, 100%, 63%);
  --light-violet: hsl(264, 100%, 61%);

  /* Secondary */
  --white: hsl(0, 0%, 100%);
  --light-grayish-violet: hsl(270, 20%, 96%); /* app background */
  --submit-btn-bg: hsl(271, 36%, 24%); /* submit button background */
  --very-light-magenta: hsl(289, 100%, 72%); /* radio button outline */
}

body {
  font-family: "Rubik", sans-serif;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--light-grayish-violet);
}

.main {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.div-1 {
  position: absolute;
  /* width: 501px;
    height: 627px; */
  min-width: 301px;
  min-height: 427px;
  width: 32vw;
  height: 40vw;

  /* transform: translate(-10%, -10%); */
  /* left: -50%vw;
    top: -50%vh; */
  background: linear-gradient(
      199deg,
      var(--light-magenta) -41%,
      var(--light-violet)
    )
    73%;
  border-bottom-left-radius: 46%;
  border-bottom-right-radius: 58%;
  /* border-radius: 0 0 48% 48%; */
  margin-left: -113px;
  /* margin-left: 1vw; */
}

.div-2 {
  position: absolute;
  /* width: 501px;
    height: 627px; */
  min-width: 301px;
  min-height: 427px;
  width: 33vw;
  height: 40vw;

  bottom: 0%;
  right: 0%;
  background: hsla(293, 100%, 95%, 0.47);

  border-radius: 58% 46% 0 0;
  margin-right: -133px;
}
.inner {
  z-index: 5;
  position: absolute;
  width: 1000px;
  height: 560px;
  /* height: fit-content; */
  /* height: 490px; */
  top: 10%;
  left: 18vw;
  display: flex;
  gap: 15%;
  
  /* background-color:var(--white); */

  /* -webkit-box-shadow: -2px 11px 37px -4px rgba(83,51,106,0.75);
-moz-box-shadow: -2px 11px 37px -4px rgba(83,51,106,0.75); */
}
.one {
  width: 28%;
  border-radius: 1.8rem;
  background-color: var(--white);
  box-shadow: -2px 11px 37px -4px rgba(83, 51, 106, 0.75);
}

.chat-box {
  /* width: 80%; */
  height: 100%;
  padding: 0.7rem;
}


header {
  position: relative;
  width: 100%;
  height: 12%;
  padding-top: 1.5rem;
  background: linear-gradient(
    260deg,
    var(--light-magenta),
    var(--light-violet)
  );
  border-radius: 1rem 1rem 0.4rem 0.4rem;
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
}
header .part-1 {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-left: 0.5rem;
  width: 85%;
}
.header-content h2 {
  font-size: 0.7rem;
  color: var(--white);
  font-weight: 500;
  padding-bottom: 0.2rem;
  /* margin-left: 10px; */
}
.header-content p {
  font-size: 0.6rem;
  color: var(--light-grayish-violet);
  font-weight: 100;
}
header .avatar {
  width: 30px;
  border-radius: 50%;
  border: 1px solid var(--white);
}
.header-icon {
  color: white;
}
.back {
  width: 20px;
  fill: var(--white);
}

header::before {
  content: "";
  width: 8rem;
  height: 1.8rem;
  z-index: 13;
  position: absolute;
  margin: 25%;
  margin-top: -7%;
  border-radius: 1rem;
  background-color: var(--white);
}

/* SECTION  */

section,
footer {
  padding: 0.6rem;
  background-color: var(--light-grayish-violet);
}

.message {
  max-width: 62%;
  display: inline-block; /* this will automatically set the width based on the content length */
  font-size: 0.55rem;
  margin-bottom: 0.28rem;
  margin-top: 0.3rem;
  padding: 0.4rem;
  line-height: 0.8rem;
}
section .receiver {
  border-radius: 0.8rem 0.8rem 0.8rem 0.4rem;
  color: var(--moderate-violet);
  background-color: hsl(276, 64%, 92%);
}

.receiver:nth-child(3n) {
  margin-top: 2.5rem;
}
section .sender {
  float: right;
  clear: both;
  border-radius: 1rem 1rem 0.5rem 1rem;
  color: var(--desaturated-dark-violet);
  background-color: var(--white);
}

.message-image img {
  float: right;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: 0.5rem;
  width: 45px;
  border-radius: 0.5rem;
}

.price-tag {
  max-width: 80%;
  height: 40px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  justify-content: space-between;
  /* display: inline-block; this will automatically set the width based on the content length */
  font-size: 0.6rem;
  margin-bottom: 0.5rem;
  margin-top: 0.3rem;
  padding: 0.5rem 0.9rem;
  line-height: 1rem;
  border-radius: 1rem 1rem 1rem 0.5rem;
  background: linear-gradient(
    260deg,
    var(--light-magenta),
    var(--light-violet)
  );
}
.time {
  gap: 0.5rem;
  align-items: center;
  display: flex;
}

.icon {
  width: 16px;
  height: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.304);
  font-size: 1.3rem;
  border-radius: 50%;
}
.price-tag > p {
  font-size: 0.8rem;
  font-weight: 500;
}

.message-send {
  background-color: var(--white);
  border-radius: 2rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
}
input {
  border: none;
  outline: none;
  padding-left: 0.7rem;
  font-size: 0.7rem;
  color: var(--very-dark-desaturated-violet);
}
.send {
  width: 20px;
}
.send-button {
  width: 25px;
  height: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 50%;
  padding-top: 0.2rem;
  color: var(--white);
  border: none;
  background-color: var(--submit-btn-bg);
}
footer {
  margin-top: -8px;
  border-radius: 0 0 1.3rem 1.3rem;
}

.two {
  /* min-width: 30%; */
  width: 35vw;
  margin-left: -3rem;
}
.two .content h1{
  color: var(--very-dark-desaturated-violet);
  font-size: 2.6rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.two .content p {
  color: var(--dark-grayish-violet);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.7rem;
}
.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  /* background: white; */
}

@media (max-width:885px) {
  body{
    overflow: visible;
    overflow-x: hidden;
  }
  .inner {
    height:auto;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    margin-left:-26vw;
   
  }
  .one {
    /* width: 90%;
    height: 80%;
    margin-top: 1rem; */
  }
  .two {
    text-align: center;
    width: 60%;
    margin-left: 0;
    margin-top: 1rem;
    padding:  2.5rem;
  }
 header::before{
  margin-top: -3%;
 }
 .div-2{
  bottom: -30%;
 }
}

@media (max-width: 800px) {
  .inner {
     margin-left:-36vw;
  }

}

@media (max-width:  713px) {
  .inner {
     margin-left:-46vw;
  }
 
  .two {
   width: 55%;
  }
}@media (max-width: 600px) {
  .inner {
     margin-left:-56vw;
  }
 
  .two {
   width: 50%;
  }
}
@media (max-width: 560px) {
  .inner {
     margin-left:-66vw;
  }
 
}
@media (max-width: 493px) {
  .inner {
     margin-left:-75vw;
  }

  .two {
   width: 45%;
  }
  .div-2{
  bottom: -35%;
 }
}

@media (max-width: 450px) {
  .inner {
     margin-left:-86vw;
  }

}

@media (max-width: 400px) {
  .inner {
     margin-left:-96vw;
  }

  .two {
    width: 40%;
  }
  .div-2{
  bottom: -38%;
 }
}
@media (max-width: 390px) {
  body{
    overflow-x: hidden;
  }
  .inner {
     margin-left:-103vw;
  }


}