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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #1e1e1e;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.layout {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  justify-content: space-between;
  align-items: center;
}

.left-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

header {
  color: #ffffff;
}

h1 {
  font-weight: 900;
  font-size: 36px;
  margin-bottom: 10px;
}

p {
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 20px;
}

.bot-image {
  max-width: 80%;
  height: auto;
}

.right-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #333;
  border-radius: 15px;
  height: 100%;
  padding: 20px;
  max-width: 600px;
}

.chat {
  flex-grow: 1;
  overflow-y: scroll;
  padding: 10px;
  background-color: #2c2c2c;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
}

/* Bot Message */
.bot-msg {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.bot-msg img {
  width: 50px;
  height: 50px;
}

.bot-msg .bubble {
  background-color: #444;
  color: white;
  padding: 10px;
  border-radius: 10px;
  margin-left: 10px;
  max-width: 60%;
  font-weight: 600;
}

/* User Message */
.user-msg {
  display: flex;
  justify-content: flex-end; /* Moves user messages to the right */
  align-items: flex-start;
  margin-bottom: 10px;
}

.user-msg img {
  width: 50px;
  height: 50px;
  order: 1; /* Ensures the image comes after the message on the right */
  margin-left: 10px;
}

.user-msg .bubble {
  background-color: #85c8ff;
  color: black;
  padding: 10px;
  border-radius: 10px;
  margin-right: 10px; /* Adds space between message and right edge */
  max-width: 60%;
  font-weight: 600;
}

form {
  display: flex;
  width: 100%;
}

input {
  padding: 15px;
  flex-grow: 1;
  border-radius: 10px;
  border: none;
  outline: none;
}

/* Add this CSS for the inputWrapper and buttons */

.input-wrapper {
  display: flex;
  justify-content: center; /* Center the buttons horizontally */
  gap: 10px; /* Add space between the buttons */
  margin-top: 10px; /* Space between message bubbles and buttons */
}

.input-wrapper button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #1e95c8;
  border: 2px solid #ccc;
  border-radius: 5px;
}

.input-wrapper button:hover {
  background-color: #3e6ab7; /* Slight hover effect */
}

/* Media Query for devices with width under 550px */
@media (max-width: 550px) {
  .layout {
    flex-direction: column; 
    height: auto; 
    justify-content: flex-start; 
  }

  .left-side {
    display: none;
  }

  .right-side {
    width: 100%;
    max-width: 100%; 
    margin-top: 20px; 
  }

  .chat {
    height: 70vh; 
    margin-top: 0;
    z-index: 1; 
  }

  .input-wrapper {
    flex-direction: column; 
    gap: 5px; 
  }

  .input-wrapper button {
    width: 100%; 
    padding: 12px 10px; 
    font-size: 14px; 
  }
}

