|
body { |
|
font-family: Arial, sans-serif; |
|
background-color: #f4f4f4; |
|
margin: 0px; |
|
padding: 0; |
|
display: flex; |
|
justify-content: center; |
|
} |
|
|
|
.container { |
|
max-width: 45%; |
|
margin: 50px auto; |
|
background-color: #fff; |
|
padding: 20px; |
|
padding: 20px; |
|
border-radius: 5px; |
|
width: 600px; |
|
} |
|
|
|
.chat-box { |
|
border: 1px solid #e0e0e0; |
|
padding: 20px; |
|
height: 300px; |
|
overflow-y: scroll; |
|
margin-bottom: 10px; |
|
} |
|
|
|
.demo { |
|
margin: 50px auto; |
|
|
|
|
|
|
|
width: 45%; |
|
|
|
margin-right: auto; |
|
} |
|
|
|
button { |
|
background-color: #007BFF; |
|
color: #fff; |
|
border: none; |
|
padding: 10px 15px; |
|
border-radius: 5px; |
|
cursor: pointer; |
|
width: 100%; |
|
margin: 10px; |
|
|
|
} |
|
|
|
.user-message, .bot-message { |
|
margin: 10px 0; |
|
width: 70%; |
|
padding: 10px; |
|
border-radius: 5px; |
|
} |
|
|
|
.user-message { |
|
background-color: #e0e0e0; |
|
|
|
float: right; |
|
} |
|
|
|
.bot-message { |
|
background-color: #007BFF; |
|
color: white; |
|
|
|
float: left; |
|
} |
|
|
|
input[type="text"] { |
|
width: 100%; |
|
padding: 10px; |
|
margin: 10px 0; |
|
border: 1px solid #ccc; |
|
border-radius: 4px; |
|
box-sizing: border-box; |
|
transition: 0.3s; |
|
} |
|
|
|
input[type="text"]:focus { |
|
border-color: #007BFF; |
|
box-shadow: 0 0 5px rgba(0,123,255,0.5); |
|
} |
|
|
|
|
|
input[type="text"]::placeholder { |
|
color: #aaa; |
|
} |
|
|
|
|
|
label { |
|
display: block; |
|
margin-bottom: 8px; |
|
font-weight: bold; |
|
} |
|
|
|
|
|
.outside-container { |
|
position: relative; |
|
} |
|
|
|
.typing-indicator { |
|
width: 50px; |
|
position: absolute; |
|
bottom: 0; |
|
left: 0; |
|
padding: 5px 10px; |
|
background-color: #f0f0f0; |
|
border-radius: 10px; |
|
margin: 10px; |
|
color: #757575; |
|
font-size: 0.8em; |
|
} |
|
|
|
.typing-indicator span { |
|
|
|
} |
|
|