Spaces:
Sleeping
Sleeping
| /* Mobile-first responsive design */ | |
| body { | |
| font-family: Arial, sans-serif; | |
| margin: 0; | |
| padding: 0; | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| background-color: #f4f4f4; | |
| } | |
| header { | |
| background-color: #333; | |
| color: #fff; | |
| text-align: center; | |
| padding: 1rem; | |
| } | |
| header a { | |
| color: #fff; | |
| text-decoration: none; | |
| } | |
| header a:hover { | |
| text-decoration: underline; | |
| } | |
| main { | |
| flex: 1; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 1rem; | |
| } | |
| .chat-container { | |
| width: 100%; | |
| max-width: 600px; | |
| background-color: #fff; | |
| border-radius: 8px; | |
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
| display: flex; | |
| flex-direction: column; | |
| height: 80vh; | |
| max-height: 500px; | |
| } | |
| .chat-messages { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 1rem; | |
| border-bottom: 1px solid #ddd; | |
| } | |
| .message { | |
| margin-bottom: 1rem; | |
| } | |
| .message.user { | |
| text-align: right; | |
| } | |
| .message.bot { | |
| text-align: left; | |
| } | |
| .chat-input-container { | |
| display: flex; | |
| padding: 1rem; | |
| } | |
| #user-input { | |
| flex: 1; | |
| padding: 0.5rem; | |
| border: 1px solid #ddd; | |
| border-radius: 4px; | |
| margin-right: 0.5rem; | |
| } | |
| #send-button { | |
| padding: 0.5rem 1rem; | |
| background-color: #007bff; | |
| color: #fff; | |
| border: none; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| } | |
| #send-button:hover { | |
| background-color: #0056b3; | |
| } | |
| /* Responsive adjustments */ | |
| @media (max-width: 768px) { | |
| .chat-container { | |
| height: 90vh; | |
| } | |
| } |