/* Base Reset & Mobile Scaling */
body {
  margin: 0;
  padding: 0;
  background: #FFF;
  color: #555;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings with nicer font */
h1, h2, h3 {
  font-family: 'Poppins', sans-serif !important;
  margin-top: 0;
}

/* Header/Footer */
header, footer {
  background: #fff;
  color: #555;
  padding: 10px 0;
  text-align: center;
}

/* Logo */
.logo {
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 800px;
  margin: auto;
  padding: 15px;
  box-sizing: border-box;
}

/* Form Elements */
form {
  margin-top: 20px;
  width: 100%;
}

input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  font-size: 1.1em;
  border-radius: 20px;
  border: 1px solid #ccc;
  box-shadow: 4px 0px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  box-sizing: border-box;
}

/* Button Style */
button, .askButton {
  margin-top: 10px;
  padding: 12px;
  font-size: 1.1em;
  background-color: #277B0A;
  color: white;
  cursor: pointer;
  width: 100%;
  border-radius: 20px;
  border: 1px solid #eee;
  box-sizing: border-box;
}

/* Chat Output Area */
#chat-response {
  margin-top: 20px;
  padding: 15px 0;
  background: #ffffff;
  font-family: 'Roboto', sans-serif;
  border-radius: 6px;
  display: flex;
  flex-direction: column-reverse;
}

/* Message Blocks */
.message-block {
  margin-bottom: 1.5em;
}

.user-msg, .bot-msg {
  padding: 15px;
  border-radius: 8px;
  margin-top: 5px;
  white-space: pre-wrap;
  box-sizing: border-box;
}

.user-msg {
  background-color: #e0f7fa;
  border: 1px solid #eee;
}

.bot-msg {
  background-color: #f1f8e9;
  border: 1px solid #eee;
}

/* Text alignment helper */
.textcenter {
  text-align: center;
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5em;
  }

  input[type="text"], button {
    font-size: 1em;
    padding: 10px;
  }

  .user-msg, .bot-msg {
    padding: 12px;
  }
}
