* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    height: 100vh;
    display: flex;
    overflow: hidden;
  }
  
  header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #00873c;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  main {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-top: 80px;
    padding: 1rem;
  }
  
  .chat-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 82vh;
    width: 90%;
    max-width: 600px;
    margin: 60px auto 0; /* Account for the fixed header */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }
  
  .messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f3f3f3;
    margin-top: 10px;
  }
  
  .message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
  }
  
  .message.user {
    justify-content: flex-end;
  }
  
  .message-text {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 1rem;
  }
  
  .message.user .message-text {
    background-color: #00873c;
    color: #fff;
  }
  
  .message.bot .message-text {
    background-color: #ddd;
    color: #333;
  }
  
  .input-container {
    display: flex;
    padding: 10px;
    width: 100%;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .input-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 1rem;
    outline: none;
  }
  
  .input-container button {
    margin-left: 10px;
    padding: 10px 15px;
    background-color: #00873c;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .input-container button:hover {
    background-color: #00682c;
  }
  