|
|
|
* { |
|
margin: 0; |
|
padding: 0; |
|
box-sizing: border-box; |
|
} |
|
|
|
body { |
|
font-family: Arial, sans-serif; |
|
background-color: #f3f3f3; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
min-height: 100vh; |
|
} |
|
|
|
.container { |
|
max-width: 700px; |
|
width: 100%; |
|
background-color: #fff; |
|
border-radius: 10px; |
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
|
} |
|
|
|
.chat-window { |
|
padding: 20px; |
|
height: 500px; |
|
overflow-y: auto; |
|
} |
|
|
|
.messages { |
|
display: flex; |
|
flex-direction: column; |
|
height: 100%; |
|
} |
|
|
|
.messages .message { |
|
margin-bottom: 10px; |
|
} |
|
|
|
.messages .user-message { |
|
align-self: flex-end; |
|
background-color: #dcf8c6; |
|
border-radius: 10px 10px 0 10px; |
|
} |
|
|
|
.messages .bot-message { |
|
align-self: flex-start; |
|
background-color: #e6e6e6; |
|
border-radius: 10px 10px 10px 10px; |
|
} |
|
|
|
.input-container { |
|
display: flex; |
|
margin-top: 20px; |
|
} |
|
|
|
#user-input { |
|
flex: 1; |
|
padding: 10px; |
|
border: none; |
|
border-bottom-left-radius: 10px; |
|
font-size: 16px; |
|
} |
|
|
|
#user-input:focus { |
|
outline: none; |
|
} |
|
|
|
#send-button { |
|
background-color: #0077ff; |
|
color: #fff; |
|
border: none; |
|
padding: 10px; |
|
border-top-right-radius: 10px; |
|
cursor: pointer; |
|
} |
|
|
|
#send-button:hover { |
|
background-color: #0066cc; |
|
} |