body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 600px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin: 20px;
}

header {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #e6f2f2;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.logo {
  width: 120px;  
  height: 120px; 
  margin-right: 20px;
  object-fit: contain;
  border-radius: 5px;
}

h1 {
  color: #2c6e6e;
  margin: 0;
  font-size: 1.5em;
  word-wrap: break-word; 
}

#chat-interface {
  padding: 20px;
}

#chat-messages {
  height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  padding: 10px;
  margin-bottom: 15px;
  word-wrap: break-word; 
}

.input-area {
  display: flex;
}

#user-input {
  flex-grow: 1;
  margin-right: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none;
  min-height: 100px; 
}

#send-btn {
  background-color: #2c6e6e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  align-self: flex-start; 
}

#send-btn:hover {
  background-color: #3e9090;
}

.user-message, .ai-message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  max-width: 90%; 
  word-wrap: break-word;
}

.user-message {
  background-color: #e6f2f2;
  align-self: flex-start;
}

.ai-message {
  background-color: #f0f0f0;
  align-self: flex-start;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .input-area {
    flex-direction: column;
  }
  
  #user-input {
    margin-right: 0;
    margin-bottom: 10px;
  }
}