-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
313 lines (265 loc) · 7.41 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
/* Base styles for the body */
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
min-height: 100vh; /* Ensure the body takes the full viewport height */
padding: 20px 0; /* Ensure a minimum padding of 40px at the top and bottom */
box-sizing: border-box; /* Include padding in the body's total height */
}
/* Main container styling */
.container {
margin-top: auto; /* Align the container with a gap from the top */
margin-bottom: auto; /* Ensure it stays centered vertically */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative; /* Make container a positioned element for absolute positioning */
max-width: 100%;
}
/* Header section styling */
.header {
display: flex;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
align-items: center;
padding: 10px;
background: linear-gradient(135deg, #029bd8 0%, #012066 100%);
background-size: cover;
background-position: center;
color: #fff; /* Ensure the text is readable on the background */
}
.logo {
width: 50px; /* Adjust the size as needed */
height: auto;
margin-right: 15px;
}
/* Align header text to the left */
.header-text {
display: flex;
flex-direction: column;
align-items: flex-start; /* Align text to the left */
text-align: left; /* Ensure text is left-aligned */
margin-left: 15px; /* Add some space between the logo and the text */
}
.header-text h1 {
margin: 5px 0;
font-size: 24px; /* Adjust the font size as needed */
font-weight: bold;
}
.header-text h2 {
margin: 0;
font-size: 16px; /* Adjust the font size as needed */
color: #fff;
font-style: italic;
font-weight: 600;
}
/* Card styling */
.card {
width: 100%;
max-width: 650px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
overflow: hidden;
position: relative; /* Make card a positioned element */
}
.card-title {
text-align: center;
}
/* Chat window styling */
.chat-window {
height: 450px;
overflow-y: auto;
border-bottom: none; /* Remove border-bottom to avoid line */
margin-bottom: 10px;
scrollbar-width: thin; /* For Firefox */
scrollbar-color: #888 #fff; /* For Firefox */
}
.chat-window::-webkit-scrollbar {
width: 8px; /* For WebKit browsers */
}
.chat-window::-webkit-scrollbar-thumb {
background-color: #888; /* Handle color */
border-radius: 10px;
}
.chat-window::-webkit-scrollbar-track {
background: #fff; /* Track color */
}
.output {
display: flex;
flex-direction: column;
gap: 15px; /* Add spacing between chat bubbles */
}
/* Input container styling */
.input-container {
display: flex;
align-items: center; /* Center items vertically */
border-radius: 25px; /* Rounded corners */
background-color: #f5f5f5; /* Background color */
padding: 5px 15px; /* Padding inside the container */
width: calc(100% - 20px); /* Full width with margin consideration */
box-sizing: border-box; /* Include padding in the element's total width and height */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Slight shadow for better look */
margin: 0 10px 20px 10px; /* Margins to avoid touching edges */
}
/* Input field styling */
#user-input {
flex-grow: 1; /* Make input take available space */
border: none;
outline: none;
background-color: transparent; /* Transparent to blend with container */
padding: 10px 0; /* Padding inside the input */
font-size: 16px; /* Font size */
line-height: 24px; /* Line height */
color: #333; /* Text color */
margin: 0; /* Remove default margins */
box-sizing: border-box; /* Include padding in the element's total width and height */
}
/* Remove the green underline on focus */
#user-input:focus {
border-bottom: none;
box-shadow: none;
}
/* Send button styling */
#send-btn {
border: none;
outline: none;
transition: background-color 0.3s, box-shadow 0.3s, transform 0.1s; /* Add transition for transform */
cursor: pointer; /* Pointer cursor on hover */
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
border-radius: 50%; /* Round button */
margin-left: 10px; /* Space between input and button */
background-color: #029bd8; /* Background color */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add slight shadow */
}
#send-btn:hover {
background-color: #012066; /* Slightly darker on hover */
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Enhance shadow on hover */
}
#send-btn svg {
fill: #ffffff; /* Icon color */
width: 20px; /* Icon width */
height: 20px; /* Icon height */
}
#send-btn:active {
transform: scale(0.95); /* Slightly reduce size on click for press effect */
}
/* Chat message styling */
.user {
align-self: flex-end;
background-color: #029bd8;
color: #fff;
padding: 10px;
border-radius: 10px;
margin: 5px;
max-width: 70%;
}
.bot {
align-self: flex-start;
background-color: #f1f1f1;
color: #333;
padding: 10px;
border-radius: 10px;
margin-top: 0;
padding-top: 5px;
max-width: 75%;
}
.message {
margin: 0;
padding: 5px 10px;
}
/* Switch container styling */
.switch-container {
position: absolute;
top: 10px; /* Adjust position as needed */
right: 20px; /* Adjust position as needed */
z-index: 1000; /* Ensure it's above other elements */
}
.switch {
margin-left: auto;
}
/* Dark theme styling */
.dark-theme {
background-color: #333;
color: #f5f5f5;
}
.dark-theme .header {
background: linear-gradient(135deg, #029bd8 0%, #012066 100%);
color: #fff; /* Ensure the text is readable on the background */
}
.dark-theme .header-text h2 {
color: #fff;
}
.dark-theme .card {
background-color: #444;
}
.dark-theme .chat-window {
background-color: #444; /* Slightly lighter background for better contrast */
scrollbar-width: thin; /* For Firefox */
scrollbar-color: #888 #444; /* For Firefox */
}
.dark-theme .chat-window::-webkit-scrollbar-thumb {
background-color: #888; /* Handle color */
border-radius: 10px;
}
.dark-theme .chat-window::-webkit-scrollbar-track {
background: #444; /* Track color */
}
.dark-theme .input-container {
background-color: #666; /* Slightly lighter background for input container */
border-top: 1px solid #666;
}
.dark-theme #user-input {
background-color: #666; /* Darker background color for input field in dark mode */
color: #f5f5f5; /* Light text color for input field in dark mode */
}
.dark-theme #user-input::placeholder {
color: #ccc; /* Make placeholder text more visible in dark mode */
}
.dark-theme .user {
background-color: #029bd8;
}
.dark-theme .bot {
background-color: #e4e1e1;
color: #000;
}
.dark-theme #send-btn {
background-color: #ffffff; /* Light background color for button */
}
.dark-theme #send-btn:hover {
background-color: #ddd; /* Slightly darker on hover */
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Enhance shadow on hover */
}
.dark-theme #send-btn svg {
fill: #000; /* Icon color */
}
.indicator-container {
display: flex;
justify-content: space-between;
width: 100%;
margin-bottom: 10px; /* Adjust as needed */
}
.indicator {
flex: 1;
text-align: center;
padding: 5px;
border-radius: 5px;
color: #fff;
margin: 0 2px; /* Adjust as needed */
}
.indicator.green {
background-color: #4caf50; /* Green */
}
.indicator.orange {
background-color: #ff9800; /* Orange */
}
/* Media queries for responsive font sizes */
@media (max-width: 768px) {
.header-text h1 {
font-size: 20px; /* Adjust font