* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-image: radial-gradient(#08f7e3, #217692);
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  font-style: italic;
  letter-spacing: -0.05rem;
  font-size: 50px;
  line-height: 56px;
  color: #fff;
  text-align: center;
}

h2 {
  font-weight: bold;
  font-size: 24px;
  line-height: 34px;
  color: #fff;
  text-align: center;
  margin-bottom: 36px;
  font-style: italic;
}

h3 {
  font-family: 'Lobster', cursive;
  font-size: 45px;
  color: #fff;
}

h5 {
  text-align: center;
}

p {
  font-size: 17px;
  font-weight: 600;
  line-height: 28px;
  margin: 0;
}

footer p {
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
}


input {
  box-sizing: border-box;
  border: 2px solid #442245;
  border-radius: 6px;
  background:#e773ebd2;
  color: black;
  padding: 16px;
  font-size: 16px;
  font-family: 'Montserrat';
  font-weight: 600;
  line-height: 26px;
  flex: 1;
  column-gap: auto;
  margin-top: 12px;
}

main {
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  height: 660px;
  border-radius: 30px;
  padding: 20px 24px;
  padding-top: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.chat {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  overflow:auto;
  flex-direction: column;
  padding-bottom: 16px;
  border: 2px solid #442245;
  border-radius: 10px;
  background: #367679;
  background-image: linear-gradient(rgba(148, 38, 117, 0.243), rgba(20, 212, 226, 0.243)), url(https://images.pexels.com/photos/6601811/pexels-photo-6601811.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
  
}

.bot-msg {
  display: flex;
  margin: 16px 8px 0 0;
  flex-shrink: 0;
}

.user-msg {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 0 8px;
  flex-shrink: 0;
}

img #wait {
  max-height: 20px;
}

.bot-msg img,
.user-msg img {
  width: 60px;
  height: 60px;
}

.bot-msg img {
  margin: 0 5px 0 10px;
}

.user-msg img {
  margin: 0 10px 0 10px;
}


.bubble {
  background: #e5e9ff;
  font-weight: 600;
  font-size: 16px;
  line-height: 26px;
  padding: 16px 12px;
  color: black;
  max-width: 40%;
  box-shadow: 5px 7px 10px 6px #442245;;
}

.bot-bubble {
  border-radius: 0 26px 26px 26px;
  margin-top: 28px;
  margin-left: 8px;
  background: #22d9e2;
}

.user-bubble {
  border-radius: 26px 0 26px 26px;
  margin-top: 28px;
  margin-right: 8px;
  background: #e773eb;
}

.input-wrapper {
  display: flex;
  justify-content: center;
}

.input-wrapper form {
  width: 100%;
  display: flex;
  align-items: center;
}

label {
  font-size: 16px;
  font-family: 'Montserrat';
  font-weight: 500;
  color: black;
  margin-right: 20px;
  font-weight: bold;
}

button {
  display: inline-block;
  background-color: #e773eb;
  color: black;
  border: 2px solid #442245;
  Border-radius: 50%;
  padding: 16px 40px;
  margin: 8px 4px 0 4px;
  font-size: 16px;
  line-height: 26px;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  text-shadow: 1px 1px 0 #ef19f7;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 2px 2px 3px 2px #442245;;
}

.bot-msg img:hover {
  filter: brightness(1.25);
  transition: all 0.3s ease;
}

.user-msg img:hover,
button:hover {
  filter: brightness(1.35);
  transition: all 0.3s ease;
}

@media screen and (max-width: 667px) {

  .bubble {
    max-width: 70%;
  }

  .chat {
    background-position: center;
  }
}
