@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins' , sans-serif;
}

body{
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100dvh;
}

:root{
  --primary-color: #4F6BFE;
  --light-primary-color: #4F6BFE1A;
  --secondary-color: #4F6CFE1A;
  --error-color: #ff3030;
}

.container{
  background: white;
  width: 25rem;
  height: 90%;
  max-height: 35rem;
  border-radius: 0.75rem;
  margin-inline: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 5px 10px rgba(0,0,0,0.05);
}

.header{
  background: var(--primary-color);
  padding: 1rem;
  text-align: center;
  color: white;
}

.content{
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: auto;
}

.answer-section{
  border-radius: 0.5rem 0.5rem 0.5rem 0;
  padding: 0.5rem;
  background: var(--light-primary-color);
  width: fit-content;
  display: flex;
  align-items: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.error-section {
  border-radius: 0.5rem;
  padding: 0.5rem;
  color: white;
  background: var(--error-color);
  width: fit-content;
  display: flex;
  align-items: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.question-section{
  background: var(--primary-color);
  color: white;
  padding: 0.5rem;
  width: fit-content;
  border-radius: 0.5rem 0.5rem 0 0.5rem;
  margin-left: auto;
  overflow-wrap: anywhere;
}

.chat-form{
  border-top: 1px solid #F2F2F2;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.chat-input{
  border: none;
  outline: none;
  flex: 1;
  height: 2.5rem;
}

.send-button{
  border: none;
  background: var(--primary-color);
  border-radius: 100%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
}

.send-button-noneactive {
  opacity: 0.1;
  background: black;
  pointer-events: none;
}

.send-button:active{
  transform: scale(0.9);
}