.container {
  margin-top: 56px;
  width: 100%;
  min-height: 100vh;
  background-color: #1b2e38;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.app-container {
  width: 50%;
  height: 60vh;
  display: flex;
}

.chat-container {
  flex: 1;
  border: 1px solid white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.chat-header h1 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.action-button {
  padding: 8px 16px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.action-button:hover {
  background-color: #45a049;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 300px;
  word-wrap: break-word;
  width: max-content;
}

.user-message {
  background-color: #007bff;
  color: white;
  margin-left: auto;
}

.bot-message {
  background-color: #e9ecef;
  color: #333;
}

.chat-input-container {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
  color: black;
}

button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

.loading {
  display: inline-block;
  margin-left: 5px;
}

.button-container {
}

.question-button {
  border: 1px solid black;
}

/*Esitä kysymys laatikko ja nappi allekkain*/
@media (max-width: 700px) {
  .container {
  }

  .app-container {
    width: 100%;
  }

  .chat-container {
    flex: 1;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .chat-input-container {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }

}

@media (max-width: 600px) {
  .bot-input {
    flex-direction: column;
    align-items: stretch;
  }

  .user-input {
    border-radius: 25px;
  }

  .send-input-btn {
    border-radius: 25px;
    width: 100%;
    margin-top: 0.5rem;
  }
}
