* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: #1f1c2c; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #928dab,
    #1f1c2c
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #928dab,
    #1f1c2c
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

h1 {
  font-weight: bold;
  font-size: 44px;
  line-height: 34px;
  color: #fff;
  text-align: center;
}

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

p {
  font-size: 18px;
  font-weight: normal;
  line-height: 28px;
  margin: 0;
}

input {
  box-sizing: border-box;
  border: none;
  border-radius: 4px;
  background: whitesmoke;
  color: black;
  padding: 16px;
  font-size: 16px;
  font-family: "Poppins";
  font-weight: 600;
  line-height: 26px;
  margin: 4px;
  flex: 1;
}

select {
  box-sizing: border-box;
  border: none;
  border-radius: 4px;
  background: whitesmoke;
  color: black;
  padding: 7px;
  font-size: 16px;
  font-family: "Poppins";
  font-weight: 600;
  margin: 4px;
  flex: 1;
}

.input-wrapper {
  height: 10%;
}

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

.chat {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  overflow: scroll;
  flex-direction: column;
  padding-bottom: 16px;
}

.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;
}

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

.bubble {
  background: whitesmoke;
  font-weight: 600;
  font-size: 16px;
  line-height: 26px;
  padding: 16px 24px;
  color: black;
  max-width: 60%;
}

.bot-bubble {
  border-radius: 0px 26px 26px 26px;
  margin-left: 8px;
}

.user-bubble {
  border-radius: 26px 0 26px 26px;
  margin-right: 8px;
}

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

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

button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: whitesmoke;
  color: black;
  border: none;
  border-radius: 4px;
  padding: 16px 40px;
  margin: 4px;
  font-size: 16px;
  font-family: "Poppins";
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #b1b5c9;
  transition: all 0.2s ease;
}

.ratingBtns {
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: center;
}

.ratingBtn:nth-child(1) {
  background-color: lightgreen;
}
.ratingBtn:nth-child(1):hover {
  background-color: green;
}

.ratingBtn:nth-child(3) {
  background-color: lightyellow;
}
.ratingBtn:nth-child(3):hover {
  background-color: yellow;
}

.ratingBtn:nth-child(5) {
  background-color: lightcoral;
}
.ratingBtn:nth-child(5):hover {
  background-color: red;
}

a {
  text-decoration: underline;
  color: black;
}

a:visited {
  color: black;
}

@media (max-width: 375px) {
  main {
    margin: 0 auto;
    width: 86%;
    max-width: 560px;
    height: 500px;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  select,
  input {
    width: 85%;
    margin: 0;
  }

  #text-input {
    width: 100%;
  }

  .input-wrapper {
    justify-content: center;
    align-content: center;
    display: flex;
    flex-direction: column;
    padding: 0px;
    height: 20%;
    margin: 0;
  }
  button {
    padding: 7px;
  }
  .yesBtn,
  .noBtn {
    height: 20%;
  }
  .ratingBtns {
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: center;
  }
  .ratingBtn {
    padding: 20px;
  }
}

@media (max-width: 870px) {
  select,
  input {
    width: 85%;
    margin: 0;
    padding: 7px;
  }

  #text-input {
    width: 100%;
  }

  .input-wrapper {
    justify-content: center;
    align-content: center;
    display: flex;
    flex-direction: column;
    padding: 0px;
    height: 20%;
    margin: 0;
  }
  .yesBtn,
  .noBtn {
    height: 20%;
  }
  .ratingBtns {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex: 1;
  }
  .ratingBtn {
    padding: 20px;
  }
}
