ehristoforu commited on
Commit
881407a
·
verified ·
1 Parent(s): df139f3

Rename style.css to styles.css

Browse files
Files changed (2) hide show
  1. style.css +0 -28
  2. styles.css +395 -0
style.css DELETED
@@ -1,28 +0,0 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
styles.css ADDED
@@ -0,0 +1,395 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ body {
6
+ margin: 0;
7
+ padding: 0;
8
+ font-family: "Poppins", sans-serif;
9
+ background-color: #f8f9fa;
10
+ }
11
+
12
+ a {
13
+ text-decoration: none;
14
+ color: #1a0dab;
15
+ }
16
+
17
+ a:hover {
18
+ text-decoration: underline;
19
+ }
20
+
21
+ .main-content {
22
+ display: flex;
23
+ flex-direction: column;
24
+ align-items: center;
25
+ padding: 50px 20px;
26
+ }
27
+
28
+ .search-container {
29
+ width: 100%;
30
+ max-width: 700px;
31
+ position: relative;
32
+ width: 60%;
33
+ margin-bottom: 20px;
34
+ }
35
+
36
+ .search-box {
37
+ width: 100%;
38
+ padding: 12px 16px;
39
+ border: 2px solid #4285f4;
40
+ border-radius: 24px;
41
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
42
+ transition: box-shadow .2s ease-in-out, width .3s ease, border-color .3s ease;
43
+ display: flex;
44
+ align-items: center;
45
+ }
46
+
47
+ .search-box:focus-within {
48
+ box-shadow: 0 4px 8px rgba(32,33,36,0.35);
49
+ border-color: #ea4335;
50
+ }
51
+
52
+ #search-query {
53
+ width: calc(100% - 40px);
54
+ border: none;
55
+ outline: 0;
56
+ font-size: 16px;
57
+ padding: 4px 0;
58
+ transition: font-size .2s ease;
59
+ }
60
+
61
+ #search-query::placeholder {
62
+ color: #9aa0a6;
63
+ transition: color .2s ease;
64
+ }
65
+
66
+ #search-query:focus {
67
+ font-size: 18px;
68
+ }
69
+
70
+ #search-query:focus::placeholder {
71
+ color: transparent;
72
+ }
73
+
74
+ #search-form button {
75
+ background: 0 0;
76
+ border: none;
77
+ cursor: pointer;
78
+ padding: 8px;
79
+ margin-left: 10px;
80
+ transition: transform .2s ease;
81
+ }
82
+
83
+ #search-form button:hover {
84
+ transform: scale(1.1);
85
+ }
86
+
87
+ #search-form button svg {
88
+ display: none;
89
+ }
90
+
91
+ #search-form button::after {
92
+ content: "\f002";
93
+ color: #9aa0a6;
94
+ transition: color .2s ease, transform .2s ease;
95
+ font: 900 1.2em "Font Awesome 5 Free";
96
+ }
97
+
98
+ #search-form button:hover::after {
99
+ color: #4285f4;
100
+ transform: scale(1.1);
101
+ }
102
+
103
+ #suggestions {
104
+ width: calc(80% - 32px);
105
+ background-color: #fff;
106
+ border: none;
107
+ border-radius: 8px;
108
+ box-shadow: 0 4px 6px rgba(32,33,36,0.28);
109
+ display: none;
110
+ position: absolute;
111
+ top: 100%;
112
+ left: 0;
113
+ z-index: 10;
114
+ opacity: 0;
115
+ transform: translateY(10px);
116
+ transition: opacity .3s ease, transform .3s ease;
117
+ padding: 10px 0;
118
+ }
119
+
120
+ @keyframes spin {
121
+ 0% { transform: rotate(0); }
122
+ 100% { transform: rotate(360deg); }
123
+ }
124
+
125
+ #suggestions ul {
126
+ list-style-type: none;
127
+ padding: 0;
128
+ margin: 0;
129
+ }
130
+
131
+ #suggestions li {
132
+ padding: 8px 12px;
133
+ cursor: pointer;
134
+ border-bottom: 1px solid #eee;
135
+ transition: background-color .2s ease;
136
+ }
137
+
138
+ #suggestions li:hover {
139
+ background-color: #e9e9e9;
140
+ }
141
+
142
+ #suggestions li.selected {
143
+ background-color: #f0f0f0;
144
+ }
145
+
146
+ .search-box:focus-within + #suggestions,
147
+ .search-box:hover + #suggestions {
148
+ display: block;
149
+ opacity: 1;
150
+ transform: translateY(0);
151
+ }
152
+
153
+ #results {
154
+ width: 100%;
155
+ max-width: 700px;
156
+ margin-top: 20px;
157
+ }
158
+
159
+ .result, .ai-result {
160
+ margin-bottom: 20px;
161
+ padding: 15px;
162
+ border-radius: 8px;
163
+ background-color: #fff;
164
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
165
+ opacity: 0;
166
+ transform: translateY(10px);
167
+ transition: opacity .3s ease, transform .3s ease;
168
+ animation: fadeInUp .5s ease forwards;
169
+ }
170
+
171
+ .ai-result {
172
+ background-color: #f0f0f5;
173
+ width: 100%;
174
+ max-width: 800px;
175
+ }
176
+
177
+ @keyframes fadeInUp {
178
+ from {
179
+ opacity: 0;
180
+ transform: translateY(20px);
181
+ }
182
+ to {
183
+ opacity: 1;
184
+ transform: translateY(0);
185
+ }
186
+ }
187
+
188
+ .result.show, .ai-result.show {
189
+ opacity: 1;
190
+ transform: translateY(0);
191
+ }
192
+
193
+ .result:hover, .ai-result:hover {
194
+ box-shadow: 0 4px 8px rgba(0,0,0,0.2);
195
+ }
196
+
197
+ .result h3 {
198
+ margin: 0 0 5px;
199
+ font-size: 1.2rem;
200
+ color: #222;
201
+ }
202
+
203
+ .result .url {
204
+ color: #202124;
205
+ font-size: .9rem;
206
+ margin-bottom: 8px;
207
+ display: block;
208
+ max-width: 100%;
209
+ white-space: nowrap;
210
+ overflow: hidden;
211
+ text-overflow: ellipsis;
212
+ }
213
+
214
+ .result p {
215
+ color: #555;
216
+ font-size: .9rem;
217
+ line-height: 1.6em;
218
+ margin: 0;
219
+ }
220
+
221
+ .loading-overlay {
222
+ display: none;
223
+ position: fixed;
224
+ top: 0;
225
+ left: 0;
226
+ width: 100%;
227
+ height: 100%;
228
+ background-color: rgba(0,0,0,0);
229
+ z-index: 1000;
230
+ }
231
+
232
+ .loading-spinner {
233
+ position: absolute;
234
+ top: 50%;
235
+ left: 50%;
236
+ transform: translate(-50%,-50%);
237
+ width: 40px;
238
+ height: 40px;
239
+ border-radius: 50%;
240
+ border: 5px solid #f3f3f3;
241
+ border-top: 5px solid #3498db;
242
+ animation: spin 1.2s linear infinite;
243
+ }
244
+
245
+ .loading-text {
246
+ margin-left: 10px;
247
+ font-size: 1rem;
248
+ color: #333;
249
+ }
250
+
251
+ #no-results {
252
+ display: none;
253
+ text-align: center;
254
+ padding: 20px;
255
+ font-size: 1.1em;
256
+ color: #555;
257
+ }
258
+
259
+ .result .actions button {
260
+ background-color: #f2f2f2;
261
+ color: #000;
262
+ border: 1px solid #ddd;
263
+ padding: 8px 16px;
264
+ border-radius: 20px;
265
+ font-size: .9rem;
266
+ font-weight: 700;
267
+ cursor: pointer;
268
+ transition: background-color .2s ease, box-shadow .2s ease;
269
+ margin-right: 10px;
270
+ }
271
+
272
+ .result .actions button:hover {
273
+ background-color: #e0e0e0;
274
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
275
+ }
276
+
277
+ .summary-popup, .answer-popup {
278
+ border-radius: 16px;
279
+ box-shadow: 0 4px 12px rgba(0,0,0,0.25);
280
+ background-color: #f8f9fa;
281
+ color: #333;
282
+ font-family: 'Poppins', sans-serif;
283
+ padding: 20px;
284
+ position: fixed;
285
+ left: 50%;
286
+ top: 50%;
287
+ transform: translate(-50%,-50%);
288
+ max-width: 80%;
289
+ max-height: 80%;
290
+ overflow-y: auto;
291
+ z-index: 1001;
292
+ }
293
+
294
+ .summary-popup .close,
295
+ .answer-popup .close {
296
+ position: absolute;
297
+ top: 15px;
298
+ right: 15px;
299
+ cursor: pointer;
300
+ font-size: 1.5em;
301
+ color: #666;
302
+ transition: color .2s ease;
303
+ }
304
+
305
+ .summary-popup .close:hover,
306
+ .answer-popup .close:hover {
307
+ color: #333;
308
+ }
309
+
310
+ .summary-popup .loading,
311
+ .answer-popup .loading {
312
+ display: flex;
313
+ justify-content: center;
314
+ align-items: center;
315
+ height: 100px;
316
+ display: none;
317
+ }
318
+
319
+ .summary-popup .loading-spinner,
320
+ .answer-popup .loading-spinner {
321
+ width: 60px;
322
+ height: 60px;
323
+ border-radius: 50%;
324
+ border: 5px solid #f3f3f3;
325
+ border-top: 5px solid #3498db;
326
+ animation: spin 1.2s linear infinite;
327
+ }
328
+
329
+ .summary-popup .content,
330
+ .answer-popup .content {
331
+ padding: 20px;
332
+ font-size: 1rem;
333
+ line-height: 1.5;
334
+ }
335
+
336
+ .summary-popup #summaryContent,
337
+ .answer-popup #answerContent {
338
+ font-family: 'Poppins', sans-serif;
339
+ margin-bottom: 20px;
340
+ }
341
+
342
+ #loading-more {
343
+ display: none;
344
+ text-align: center;
345
+ padding: 10px;
346
+ }
347
+
348
+ #loading-more.active {
349
+ display: block;
350
+ }
351
+
352
+ .ai-result h2 {
353
+ margin: 0 0 10px;
354
+ font-size: 1.5rem;
355
+ font-weight: 700;
356
+ color: #333;
357
+ }
358
+
359
+ .ai-result p {
360
+ color: #444;
361
+ font-size: .9rem;
362
+ line-height: 1.5em;
363
+ margin: 0;
364
+ display: flex;
365
+ flex-direction: column;
366
+ }
367
+
368
+ .ai-result .actions {
369
+ display: flex;
370
+ justify-content: flex-end;
371
+ margin-top: 10px;
372
+ }
373
+
374
+ .ai-result .actions button {
375
+ background-color: #f2f2f2;
376
+ color: #000;
377
+ border: 1px solid #ddd;
378
+ padding: 8px 12px;
379
+ border-radius: 20px;
380
+ font-size: .9rem;
381
+ font-weight: 700;
382
+ cursor: pointer;
383
+ transition: background-color .2s ease, box-shadow .2s ease;
384
+ margin-left: 10px;
385
+ }
386
+
387
+ .ai-result .actions button:hover {
388
+ background-color: #e0e0e0;
389
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
390
+ }
391
+
392
+ .ai-result .actions button i {
393
+ font-size: 1.2rem;
394
+ color: #333;
395
+ }