@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');



* {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body {
  background: hsl(270, 20%, 96%);
  text-align: center;
  padding: 60px 0;
}

span {
  display: inline-block;
  text-align: left;
}

.banner {
  width: 450px;
  height: 500px;
  background-image: linear-gradient(to bottom right, hsl(293,100%,63%),hsl(264,100%,61%));
  border-radius: 0 0 225px 225px;
  position: fixed;
  left: -270px;
  top: 0;
  z-index: -2;
}

main {
  display: flex;
  flex-direction: column;
  gap: 70px;
}


.app {
  width: 250px;
  height: 508px;
  margin: auto;
  overflow: hidden;
  background: hsl(270, 20%, 96%);
  border: 8px solid hsl(0,0%,100%);
  border-radius: 35px;
  box-shadow: 0px 10px 100px -50px;
}

.app header {
  background-image: linear-gradient(to left, hsl(293,100%,63%),hsl(264,100%,61%));
  padding: 0 15px 12px;
  border-radius: 0 0 6px 6px;
  margin-bottom: 10px;
}

.app header .app-top {
  display: block;
  width: 63%;
  height: 18px;
  margin: auto;
  margin-bottom: 12px;
  border-radius: 0 0 12px 12px;
  background: hsl(0,0%,100%);
}

.app header .profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: hsl(0, 0%, 100%);
}

.app header .profile .profile-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px
}

.app header .profile .profile-info .profile-image {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid hsl(0,0%,100%);
  overflow: hidden;
}

.app header .profile .profile-info .profile-image img {
  width: 100%;
  height: 100%;
}

.app header .profile .profile-info .profile-name {
  text-align: left;
}

.app header .profile .profile-info .profile-name h4 {
  font-size: 12px;
  margin-bottom: 3px;
}

.app header .profile .profile-info .profile-name p {
  font-size: 7px;
  color: hsl(276, 100%, 81%);
}

.app .recipient-container {
  text-align: left;
  width: 56%;
  margin-right: 45%;
}

.app .recipient {
  background: hsl(276, 55%, 95%);
  color: hsl(276, 55%, 52%);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
  margin-left: 6px;
  padding: 8px;
  border-radius: 12px 12px 12px 5px;
}

.app .pictures {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
  margin-right: 6px;
  margin-top: 10px;  
}

.app .pictures img {
  width: 40px;
  border-radius: 9px;
}


.app .sender-container {
  text-align: right;
  width: 52%;
  margin: 8px 0 10px 45%;
}

.app .sender-container .sender {
  background: hsl(0,0%,100%);
  color: hsl(271, 15%, 43%);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
  padding: 8px;
  border-radius: 12px 12px 5px 12px;
}

.app .option-container {
  text-align: left;
  width: 75%;
  margin-right: 45%;
  margin-bottom: 20px;
}

.app .option-container .option {
  background-image: linear-gradient(to right, hsl(293,100%,63%),hsl(264,100%,61%));
  color: hsl(0, 0%, 100%);
  font-size: 8px;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
  margin-left: 6px;
  margin-bottom: -5px;
  padding: 10px 12px 10px 8px;
  border-radius: 9px 9px 9px 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
 
.app .option-container .option .option-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app .option-container .option .option-name span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid hsl(289,100%,72%);
}

.app .option-container .option > p {
  font-size: 0.7rem;
}


.app .message {
  background: hsl(0,0%,100%);
  margin: 0 6px 6px;
  position: relative;
  height: 32px;
  width: 228px;
  border-radius: 18px;
}

.app .message input {
  height: 100%;
  width: 100%;
  border: none;
  border-radius: 20px;
  padding: 0 10px;
  padding-right: 0;
}

.app .message input::placeholder {
  color: hsl(206, 6%, 79%);
  font-size: 7px;
  padding-left: 8px;
}

.app .message i {
  background: hsl(271,36%,24%);
  color: hsl(0,0%,100%);
  width: 10px;
  height: 10px;
  padding: 5px 8px 10px;
  border-radius: 50%;
  transform: rotateZ(180deg);
  align-content: center;
  position: absolute;
  right: -6px;  
  top: 3px;  
}


.text {
  padding: 0 30px;
}

.text h1 {
  color: hsl(271,36%,24%);
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 25px;
}

.text p {
  color: hsl(270,7%,64%);
  font-size: 0.95rem;
  line-height: 1.6;
}



.accredition {
  color: hsl(270,7%,64%);
  font-size: 0.8rem;
  margin-top: 60px;
}

.accredition a {
  color: hsl(210,80%,50%);
}



@media(min-width: 1000px){
  .banner {
    height: 850px;
    width: 520px;
    border-radius: 0 0 260px 260px;
    left: -50px;
  }
  
  main {
    flex-direction: row;
    justify-content: center;    
    align-items: center;
    padding-top: 120px;
    width: 750px;
    margin: auto;
  }
  
  .text {
    text-align: left;
    width: 45%;
  }
}

@media(min-width: 1400px){
  .banner {
    height: 800px;
    width: 520px;
    border-radius: 0 0 260px 260px;
    left: -80px;
  }
  
  main {
    flex-direction: row;
    justify-content: center;    
    align-items: center;
    padding-top: 170px;
    max-width: 900px;
    margin-left: 20%;
  }
  
  .text {
    text-align: left;
    width: 45%;
    padding: 0;
  }
}

@media(min-width: 1600px){
  main {
    margin: auto;
  }
}