/*{
  outline: 1px solid red;
} */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif; /* Default font */

  background-image: url(assets/holiday.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  max-height: 100%;
  overflow-x: hidden;
}

h1 {
  font-family: "Great Vibes", cursive;
  font-weight: 595;
  font-size: 90px;
  line-height: 34px;
  color: #fff;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 25px;
  line-height: 65px;
}

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

input {
  box-sizing: border-box;
  border: none;
  border-radius: 4px 0 0 4px;
  background: #e7e8e6;
  color: #232222;
  padding: 16px;
  font-size: 16px;
  font-weight: 550;
  line-height: 26px; /*make it airy*/
  flex: 1;
  width: 100%;
}

input::placeholder {
  font-size: 16px; /* Default size for larger screens */
}

input:focus,
select:focus {
  outline: none;
}

select {
  border: none;
  border-radius: 4px;
  /* color: #e43838; */
  font-size: 20px;
  font-weight: 600;
  height: 60px;
  background: #e7e8e6;
  width: 100%;
  padding: 0 20px;
  cursor: pointer;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
main {
  margin: 0 auto; /* vertical 0, horizontal auto, equally centered*/
  width: 100%; /*responsive*/
  max-width: 700px; /*responsive*/
  height: 600px;
  border-radius: 30px;
  background: #fff;
  padding: 20px 24px;
  padding-top: 0;
  box-sizing: border-box; /* everything fits in the box */
  display: flex;
  flex-direction: column;
  opacity: 90%;
}

.chat {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  overflow: scroll; /* essential */
  flex-direction: column;
  padding-bottom: 16px;
}
#chat {
  padding-bottom: 65px; /* makes bottom space so that the last message appears fully */
  overflow-y: auto;
}

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

.user-msg {
  display: flex;
  justify-content: flex-end; /*moves the msg to the right side*/
  margin: 16px 0 0 8px;
  flex-shrink: 0;
}

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

.bubble {
  background: #e7e8e6;
  font-family: "Montserrat";
  font-weight: 600;
  font-size: 16px;
  line-height: 26px;
  padding: 16px 24px;
  color: 232222;
  max-width: 40%; /*put a media for 320*/
  word-wrap: break-word; /* Ensure long text breaks within the bubble */
}

.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 {
  background-color: #2791e3;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 16px 20px;
  margin-right: 4px;
  font-size: 16px;
  line-height: 26px;
  font-family: "Montserrat";
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Media Query for Small Screens */

@media (max-width: 600px) {
  .bubble {
    max-width: 70%; /* Increase the width of bubbles on smaller screens */
  }

  .bot-msg img,
  .user-msg img {
    width: 50px; /* Reduce the size of user/bot images */
    height: 50px;
  }

  p {
    font-size: 15px; /* Smaller font size for paragraphs */
    line-height: 20px;
  }

  button {
    font-size: 14px; /* Smaller font size for buttons */
    padding: 12px 16px; /* Adjust padding for buttons */
  }

  main {
    width: calc(
      100% - 40px
    ); /* Reduce width on smaller screens for more background visibility */
    margin: 0 20px; /* Adjust margins to create space on the sides */
  }

  input::placeholder {
    font-size: 14px; /* Smaller font size for smaller screens */
  }

  h1 {
    font-size: 70px; /* Smaller font size for headings on smaller screens */
    line-height: 40px; /* Adjust line height for readability */
  }

  select {
    font-size: 15px; /* Smaller font size for smaller screens */
  }

  body {
    background-attachment: scroll; /* Allow the background to scroll normally */
    background-size: cover; /* Make sure the image covers the full screen */
    min-height: 100vh; /* Ensure the image takes the full height */
  }
}
