@import url("https://fonts.googleapis.com/css2?family=Kavoon&display=swap");

* {
  box-sizing: border-box;
}

body {
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: rgb(119, 189, 40);
  word-break: break-word;
}

h1 {
  font-family: "Kavoon";
  font-weight: bold;
  font-size: 25px;
  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: 600;
  line-height: 28px;
  margin: 0;
}

::placeholder {
  font-size: 12px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

input {
  box-sizing: border-box;
  border: none;
  border-radius: 4px 0 0 4px;
  background: #b4f2c5;
  color: #075f29;
  padding: 16px;
  font-size: 16px;
  font-family: "Montserrat";
  font-weight: 600;
  line-height: 26px;
  flex: 1;
  width: 100%;
}

.curtain {
  box-sizing: border-box;
  border: none;
  border-radius: 4px 0 0 4px;
  background: #b4f2c5;
  color: #075f29;
  padding: 16px;
  font-size: 16px;
  font-family: "Montserrat";
  font-weight: 600;
  line-height: 26px;
  flex: 1;
  width: 100%;
}

main {
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  height: 500px;
  border-radius: 30px;
  background: #fff;
  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: 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: #b4f2c5;
  font-weight: 600;
  font-size: 16px;
  line-height: 26px;
  padding: 16px 24px;
  color: #075f29;
}

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

label {
  font-size: 16px;
  font-family: "Montserrat";
  font-weight: 500;
  color: #075f29;
  margin-right: 20px;
}

button {
  background-color: #075f29;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 16px 20px;
  margin-right: 4px;
  font-size: 16px;
  line-height: 26px;
  font-family: "Montserrat";
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  opacity: 0.9;
  transition: all 0.2s ease;
}

@media (min-width: 668px) {
  .bubble {
    max-width: 40%;
  }
  main {
    height: 600px;
  }
  h1 {
    font-size: 40px;
  }

  ::placeholder {
    font-size: 16px;
  }

  form {
    display: flex;
    flex-direction: row;
  }
}
