| body { |
| font-family: Arial, sans-serif; |
| margin: 0; |
| padding: 0; |
| background-color: #f4f4f4; |
| } |
|
|
| .header { |
| background: linear-gradient(135deg, #FFA500, #FF6347); |
| color: #fff; |
| text-align: center; |
| padding: 20px 0; |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); |
| } |
| |
| |
| .header h1 { |
| margin: 0; |
| font-size: 24px; |
| } |
| |
| |
| |
| |
| .chat-container { |
| max-width: 500px; |
| margin: 20px auto; |
| background-color: #fff; |
| border-radius: 20px; |
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
| overflow: hidden; |
| } |
| |
| .chat-box { |
| height: 300px; |
| overflow-y: auto; |
| padding: 20px; |
| } |
| |
| .user-message, |
| .bot-message { |
| background-color: #f2f2f2; |
| padding: 10px; |
| border-radius: 15px; |
| margin-bottom: 10px; |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); |
| } |
|
|
| .chat-message { |
| margin-bottom: 20px; |
| } |
| |
| .user-message { |
| text-align: right; |
| } |
| |
| .bot-message { |
| text-align: left; |
| } |
| |
| .input-container { |
| display: flex; |
| align-items: center; |
| padding: 20px; |
| } |
| |
| #user-input { |
| flex: 1; |
| padding: 15px; |
| margin: 10px; |
| border: none; |
| border-radius: 20px; |
| background-color: #f2f2f2; |
| outline: none; |
| width: 100%; |
| max-width: 70%; |
| } |
| #send-btn { |
| padding: 15px 25px; |
| border: none; |
| border-radius: 25px; |
| background-color: #4CAF50; |
| color: white; |
| font-weight: bold; |
| cursor: pointer; |
| outline: none; |
| transition: background-color 0.3s ease; |
| } |
| |
| #send-btn:hover { |
| background-color: #45a049; |
| } |
| |
| |