/* General styling for the body and main container */ body, html { height: 100%; margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f7f8fa; display: flex; justify-content: center; align-items: center; } #chat-container { width: 100%; max-width: 800px; height: 80%; display: flex; flex-direction: column; background-color: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-radius: 10px; overflow: hidden; } #chatbox { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; } #userInput { display: flex; padding: 10px; background-color: #f0f0f0; border-top: 1px solid #e0e0e0; } #textInput { flex: 1; padding: 10px; border: none; border-radius: 5px; background-color: #e9ecef; font-size: 16px; color: #333; } #textInput:focus { outline: none; background-color: #ffffff; } .submit-button { margin-left: 10px; padding: 10px 20px; background-color: #0b93f6; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; } .submit-button:hover { background-color: #007bff; } .userText, .botText { max-width: 75%; margin: 5px 0; padding: 10px; border-radius: 10px; font-size: 16px; line-height: 1.4; } .userText { align-self: flex-end; background-color: #0b93f6; color: white; } .botText { align-self: flex-start; background-color: #e5e5ea; color: black; } /* Scrollbar styling */ #chatbox::-webkit-scrollbar { width: 8px; } #chatbox::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 10px; } #chatbox::-webkit-scrollbar-thumb:hover { background-color: #aaa; }