-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchat.css
More file actions
303 lines (268 loc) · 5.41 KB
/
chat.css
File metadata and controls
303 lines (268 loc) · 5.41 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Inter", sans-serif;
}
body {
background: rgb(0, 0, 0);
background: linear-gradient(
0deg,
rgba(0, 0, 0, 1) 0%,
rgba(37, 37, 37, 1) 100%
);
color: white;
min-height: 100vh;
display: flex;
flex-direction: column;
}
header {
padding: 20px 50px;
background-color: #101010;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.8rem;
padding-left: 40px;
}
.nav-links {
display: flex;
gap: 30px;
list-style: none;
align-items: right;
}
.nav-links li a {
text-decoration: none;
color: white;
font-weight: 600;
font-size: 16 px;
}
.auth-buttons {
display: flex;
align-items: right;
border: 2px solid #22f02b;
border-radius: 30px;
padding: 2px;
background: black;
}
.auth-buttons .login-btn,
.signup-btn {
padding: 10px 20px;
border-radius: 20px;
border: none;
text-decoration: none;
font-size: 0.9rem;
font-weight: bold;
}
.login-btn {
color: white;
background: black;
}
.signup-btn {
background: linear-gradient(to right, #22f02b, #f6f335);
color: black;
margin-left: -5px; /* Overlaps with the login button */
}
.nav-right {
display: flex;
align-items: center;
gap: 40px;
padding-right: 40px;
}
main {
margin-top: 80px;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
padding: 40px;
}
.content-wrapper {
display: flex;
align-items: center;
gap: 0px;
}
.input-section {
width: 679px;
}
.chat-section {
width: 715px;
}
h1,
h2 {
font-size: 52px;
}
h1,
.text-section .highlight {
background: linear-gradient(#22f02b, #f6f335);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
font-family: "Inter Tight", sans-serif;
font-optical-sizing: auto;
font-weight: normal;
font-style: normal;
}
h1 p {
font-family: "Inter Tight", sans-serif;
font-weight: bold;
display: inline;
}
h2 {
color: aliceblue;
font-family: "Inter Tight", sans-serif;
font-optical-sizing: auto;
font-weight: 300;
font-style: normal;
margin-bottom: 36px;
}
#option-wrapper {
margin: 1rem;
padding: 1rem 2rem;
padding-left: 0;
text-align: center;
width: 677px;
height: 10px;
display: inline;
justify-content: center;
align-self: center;
align-items: center;
}
.option1 {
width: 677px;
height: 4em;
text-align: center;
padding: 20px 36px;
margin: 0;
margin-bottom: 36px;
}
.option2 {
width: 300px;
padding: 0px 30px;
display: inline-block;
padding: 1rem 1rem;
vertical-align: auto;
margin-right: 32px;
}
.option3 {
width: 278px;
padding: 0px 30px;
display: inline-block;
padding: 1rem 1rem;
vertical-align: auto;
margin-bottom: 36px;
}
.option1,
.option2,
.option3 {
padding: auto;
color: black;
background: linear-gradient(to right, #22f02b, #f6f335);
border-radius: 15px;
font-family: "Urbanist", sans-serif;
font-optical-sizing: auto;
font-weight: 300;
font-size: 22px;
font-style: normal;
text-align: center;
}
#userInput {
width: 600px;
padding: 15px;
padding: 20px 10px;
border-radius: 30px;
font-size: 22.52px;
height: 67.56px;
background-color: black;
color: white;
font-family: "Urbanist", sans-serif;
}
.chat {
padding: 0;
float: right;
}
.chat .floater-icon {
float: right;
height: 67.56px;
}
.chat .floater-icon i {
font-size: large;
}
.gradientinput {
float: left;
background-image: linear-gradient(to right, #22f02b, #f6f335);
border-radius: 30px;
width: 602px;
padding: 2px 1px;
}
.chat input {
padding-right: 30px;
}
#userInput::placeholder {
color: #bdbdbd;
}
/* Style the send button */
#chatForm button {
width: 62.56px;
height: 62.56px;
border-radius: 100%;
background-image: linear-gradient(to right, #22f02b, #f6f335);
margin-left: 30%;
margin-top: 10%;
}
#chatResponse {
position: relative; /* Ensure proper positioning */
background: black; /* Apply the linear gradient background */
border-radius: 33px;
width: 100%;
height: 620px; /* Keep the fixed height */
padding: 15px;
white-space: pre-wrap;
word-wrap: break-word;
color: #b3b3b3;
font-size: 24px;
box-shadow: 0px 0px 10px rgba(162, 255, 0, 0.5);
margin-left: 90px;
overflow: auto; /* Add scrollbars if the content overflows */
}
/* Adjust the pseudo-element to match the border radius of #chatResponse */
#chatResponse::before {
content: "";
position: absolute;
top: -15px;
left: -15px;
right: -15px;
bottom: -15px;
background: linear-gradient(to right, #22f02b, #f6f335);
filter: blur(15px);
z-index: -1;
border-radius: 33px; /* Match the border-radius of #chatResponse */
}
/* Style for user message */
.user-message {
color: cornsilk; /* White text for user messages */
font-weight: bold; /* Optional: make it bold */
margin-bottom: 10px; /* Add spacing between messages */
}
/* Style for AI response */
.ai-response {
color: rgb(150, 241, 49); /* Yellow text for AI responses */
font-weight: normal;
display: inline-block; /* Change to block display to handle text wrapping better */
max-width: 80%; /* Limit the width to the chat box */
word-wrap: break-word; /* Break long words */
overflow-wrap: break-word; /* Ensure long words wrap correctly */
}
/* Optional: Style for any error messages */
.error-message {
color: red; /* Error messages in red */
font-weight: bold;
}
a:hover,
button:hover {
cursor: pointer;
}