/* Reset */
html {
  overflow-x: hidden;
}
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

a {
  color: inherit;
  display: inline-block;
}

button,
[type="submit"] {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* End Reset */

/* Global */
body {
  font-size: 1rem;
  font-family: "Rubik";
  background-color: hsl(100, 10%, 100%);
}
.container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
}

.h1-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/*End Global */

/* mobile */
.mobile {
  width: 18rem;
  border: 10px solid white;
  border-radius: 30px;
  background-color: hsl(270, 20%, 96%);
  justify-self: end;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.2);
}

.mobile_header {
  font-size: 0.75rem;
  color: white;
  background: linear-gradient(
    to left,
    hsl(293, 100%, 63%),
    hsl(264, 100%, 61%)
  );
  padding: 1.875rem 0.9375rem 0.625rem 0.9375rem;
  border-radius: 25px 25px 5px 5px;
  position: relative;
  display: flex;
  gap: 0.5rem;
}

.mobile_header::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 60%;
  height: 40%;
  background-color: white;
  top: -9px;
  right: 20%;
  border-radius: 0 0 20px 20px;
}

.previous-icon {
  font-size: 1.25rem;
  text-decoration: none;
  display: inline-block;
  align-self: center;
  font-weight: bold;
}

.pirson_img {
  width: 1.5625rem;
  height: 100%;
  display: inline-block;
  border: 2px solid white;
  border-radius: 50%;
}

.pirson_info {
  display: inline-block;
  margin-left: 0.3125rem;
}

.pirson_name {
  font-weight: 500;
}

.pirson_stat {
  font-size: 0.5rem;
  opacity: 0.7;
}

.dots {
  display: inline-block;
  font-size: 0.9375rem;
  align-self: center;
  margin-left: auto;
}

.mobile_main {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0.625rem;
  font-size: 0.5625rem;
}

@keyframes fadeup {
  /* 0% {
    opacity: 0;
    transform: translatex(-100%);
  }
  25% {
    opacity: 0.25;
    transform: translatex(-75%);
  }
  50% {
    opacity: 0.5;
    transform: translatex(50%);
  }
  75% {
    opacity: 0.75;
    transform: translatex(25%);
  }
  100% {
    opacity: 1;
    transform: translatex(0%);
  } */
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animat {
  animation: fadeup 0.6s ease-out both;
}
.messege {
  width: 60%;
  padding: 0.625rem;
  padding-right: 0.625rem;
}

.sent_messege {
  color: hsl(278, 100%, 62%);
  background-color: hsl(270, 15%, 92%);
  border-radius: 15px 15px 15px 5px;
}

.imgs {
  margin-left: auto;
}
.dog_img {
  display: inline-block;
  width: 2.8125rem;
  border-radius: 15px;
}

.recive_messege {
  background-color: white;
  border-radius: 15px 15px 5px 15px;
  margin-left: auto;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.7;
}

.short_messege {
  width: auto;
}
.offer {
  background: linear-gradient(
    to left,
    hsl(293, 100%, 63%),
    hsl(264, 100%, 61%)
  );
  color: white;
  border-radius: 15px 15px 15px 5px;
  width: 70%;
  display: flex;
  padding: 0.625rem;
  gap: 0.625rem;
  align-items: center;
}

.offer_label {
  display: inline-block;
  width: 0.9375rem;
  height: 0.9375rem;
  border: 1px solid wheat;
  border-radius: 50%;
  border-color: white;
}
.checkbox {
  display: none;
}

.offer_price {
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 700;
}

.messege-fild {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: gray;
  border-radius: 20px;
  margin-top: 0.625rem;
}

.messege-fild_placeholder {
  padding: 0.937rem;

  display: inline-block;
  opacity: 0.7;
}

.send_icon {
  display: inline-block;
  width: 1.56rem;
  height: 1.56rem;
  color: white;
  background-color: black;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-left: auto;
  margin-right: 5px;
}

.mobile-side {
  display: flex;
  align-items: center;
  justify-content: end;
  position: relative;
  height: 48rem;
}

.mobile-side::before {
  content: "";
  position: absolute;
  display: inline-block;
  height: 48rem;
  width: 100%;
  background: linear-gradient(hsl(293, 100%, 63%), hsl(264, 100%, 61%));
  z-index: -1;
  left: -120px;
  top: -50px;
  border-radius: 0 0 50% 50%;
}

/*End mobile */
/* description */

.description {
  width: 29rem;
  color: hsl(278, 59%, 29%);
  margin-left: 8rem;
}

.description_words {
  font-size: 1.0625rem;
  opacity: 0.6;
  line-height: 1.7;
}

.description-side {
  display: flex;
  align-items: center;
  justify-content: start;
  position: relative;
  height: 48rem;
}

.description-side::before {
  content: "";
  position: absolute;
  display: inline-block;
  height: 44rem;
  width: 60%;
  background: hsl(270, 20%, 96%, 0.5);
  z-index: -1;
  right: -180px;
  bottom: -50px;
  border-radius: 50% 50% 0 0;
}

/* End decription */

/* media */
@media screen and (max-width: 1200px) {
  html {
    font-size: 14px;
  }
}

@media screen and (max-width: 1100px) {
  html {
    font-size: 12px;
  }
}

@media screen and (max-width: 900px) {
  html {
    font-size: 10px;
  }
}

@media screen and (max-width: 400px) {
  html {
    font-size: 12px;
  }
  .container {
    grid-template-columns: 1fr;
  }
  .mobile-side {
    justify-content: center;
  }
  .mobile {
    width: 20rem;
    border: 5px solid white;
  }

  .mobile_header::before {
    top: -5px;
  }

  .mobile-side::before {
    width: 80%;
    height: 80%;
    left: -12rem;
  }

  .description-side {
    align-items: flex-start;
    height: auto;
  }

  .description-side::before {
    display: none;
  }

  .h1-heading {
    margin-bottom: 2rem;
  }

  .description_words {
    text-align: center;
    width: 70%;
    margin-bottom: 3rem;
  }
}
/* End media */
