Spaces:
Runtime error
Runtime error
Create style.css
Browse files
style.css
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* General styling for the body and main container */
|
| 2 |
+
body, html {
|
| 3 |
+
height: 100%;
|
| 4 |
+
margin: 0;
|
| 5 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 6 |
+
background-color: #f7f8fa;
|
| 7 |
+
display: flex;
|
| 8 |
+
justify-content: center;
|
| 9 |
+
align-items: center;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
#chat-container {
|
| 13 |
+
width: 100%;
|
| 14 |
+
max-width: 800px;
|
| 15 |
+
height: 80%;
|
| 16 |
+
display: flex;
|
| 17 |
+
flex-direction: column;
|
| 18 |
+
background-color: #ffffff;
|
| 19 |
+
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
| 20 |
+
border-radius: 10px;
|
| 21 |
+
overflow: hidden;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
#chatbox {
|
| 25 |
+
flex: 1;
|
| 26 |
+
padding: 20px;
|
| 27 |
+
overflow-y: auto;
|
| 28 |
+
display: flex;
|
| 29 |
+
flex-direction: column;
|
| 30 |
+
gap: 10px;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
#userInput {
|
| 34 |
+
display: flex;
|
| 35 |
+
padding: 10px;
|
| 36 |
+
background-color: #f0f0f0;
|
| 37 |
+
border-top: 1px solid #e0e0e0;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
#textInput {
|
| 41 |
+
flex: 1;
|
| 42 |
+
padding: 10px;
|
| 43 |
+
border: none;
|
| 44 |
+
border-radius: 5px;
|
| 45 |
+
background-color: #e9ecef;
|
| 46 |
+
font-size: 16px;
|
| 47 |
+
color: #333;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
#textInput:focus {
|
| 51 |
+
outline: none;
|
| 52 |
+
background-color: #ffffff;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.submit-button {
|
| 56 |
+
margin-left: 10px;
|
| 57 |
+
padding: 10px 20px;
|
| 58 |
+
background-color: #0b93f6;
|
| 59 |
+
color: white;
|
| 60 |
+
border: none;
|
| 61 |
+
border-radius: 5px;
|
| 62 |
+
cursor: pointer;
|
| 63 |
+
font-size: 16px;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
.submit-button:hover {
|
| 67 |
+
background-color: #007bff;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.userText, .botText {
|
| 71 |
+
max-width: 75%;
|
| 72 |
+
margin: 5px 0;
|
| 73 |
+
padding: 10px;
|
| 74 |
+
border-radius: 10px;
|
| 75 |
+
font-size: 16px;
|
| 76 |
+
line-height: 1.4;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.userText {
|
| 80 |
+
align-self: flex-end;
|
| 81 |
+
background-color: #0b93f6;
|
| 82 |
+
color: white;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
.botText {
|
| 86 |
+
align-self: flex-start;
|
| 87 |
+
background-color: #e5e5ea;
|
| 88 |
+
color: black;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
/* Scrollbar styling */
|
| 92 |
+
#chatbox::-webkit-scrollbar {
|
| 93 |
+
width: 8px;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
#chatbox::-webkit-scrollbar-thumb {
|
| 97 |
+
background-color: #ccc;
|
| 98 |
+
border-radius: 10px;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
#chatbox::-webkit-scrollbar-thumb:hover {
|
| 102 |
+
background-color: #aaa;
|
| 103 |
+
}
|