Spaces:
Runtime error
Runtime error
| body { | |
| font-family: 'Helvetica Neue', Arial, sans-serif; | |
| margin: 0; | |
| padding: 0; | |
| background: url('/static/background.jpg') no-repeat center center fixed; | |
| background-size: cover; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| height: 100vh; | |
| } | |
| .chat-container { | |
| width: 100%; | |
| max-width: 900px; | |
| height: 90vh; | |
| display: flex; | |
| background-color: rgb(236, 59, 177); | |
| box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); | |
| border-radius: 10px; | |
| overflow: hidden; | |
| } | |
| .sidebar { | |
| width: 120px; | |
| background-color: hsl(280, 48%, 28%); | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| padding: 20px 10px; | |
| } | |
| .sidebar button { | |
| background-color: #071c32; | |
| color: rgb(255, 255, 255); | |
| border: none; | |
| padding: 15px 20px; | |
| border-radius: 20px; | |
| margin: 20px 0; | |
| cursor: pointer; | |
| font-size: 16px; | |
| box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| width: 100px; /* Ensure buttons are the same width */ | |
| text-align: center; | |
| } | |
| .sidebar button:hover { | |
| transform: scale(1.05); | |
| box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); | |
| } | |
| .main-content { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| background-color: rgba(125, 130, 131, 0.455); | |
| } | |
| .chat-box { | |
| flex: 1; | |
| padding: 20px; | |
| overflow-y: auto; | |
| border-bottom: 1px solid #e91199; | |
| } | |
| .message { | |
| margin: 10px 0; | |
| padding: 10px 15px; | |
| border-radius: 20px; | |
| max-width: 75%; | |
| word-wrap: break-word; | |
| box-shadow: 0 0 5px rgb(203, 60, 146); | |
| } | |
| /* Markdown specific styling */ | |
| .message.bot p { | |
| margin: 0 0 10px; | |
| } | |
| .message.bot ul { | |
| margin: 10px 0; | |
| padding-left: 20px; | |
| } | |
| .message.bot ol { | |
| margin: 10px 0; | |
| padding-left: 20px; | |
| } | |
| .message.bot li { | |
| margin-bottom: 5px; | |
| } | |
| .message.bot code { | |
| background-color: rgba(27, 31, 35, 0.05); | |
| padding: 2px 4px; | |
| border-radius: 3px; | |
| font-family: 'Courier New', Courier, monospace; | |
| } | |
| .message.bot pre { | |
| background-color: rgba(27, 31, 35, 0.1); | |
| padding: 10px; | |
| border-radius: 5px; | |
| overflow-x: auto; | |
| font-family: 'Courier New', Courier, monospace; | |
| } | |
| /* User messages */ | |
| .message.user { | |
| background-color: hwb(285 20% 63% / 0.815); | |
| color: rgba(214, 199, 199, 0.879); | |
| align-self: flex-end; | |
| } | |
| .message.bot { | |
| background-color: hwb(297 45% 14% / 0.815) ; | |
| color: #151415; | |
| align-self: flex-start; | |
| } | |
| .input-container { | |
| display: flex; | |
| padding: 15px; | |
| border-top: 1px solid #ddd; | |
| background-color: rgba(250, 250, 250, 0.9); | |
| } | |
| input[type="text"] { | |
| flex: 1; | |
| padding: 10px; | |
| border: 1px solid #ddd; | |
| border-radius: 20px; | |
| margin-right: 10px; | |
| font-size: 16px; | |
| } | |
| button.send-button { | |
| padding: 10px 20px; | |
| background-color: hsl(280, 48%, 28%); | |
| color: white; | |
| border: none; | |
| border-radius: 20px; | |
| cursor: pointer; | |
| font-size: 16px; | |
| box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| button.send-button:hover { | |
| transform: scale(1.05); | |
| box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); | |
| } | |