Hadiil commited on
Commit
8ca7de2
·
verified ·
1 Parent(s): ec6b109

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +86 -30
static/styles.css CHANGED
@@ -3,6 +3,7 @@ body {
3
  font-family: 'Inter', sans-serif;
4
  line-height: 1.6;
5
  transition: background 0.3s ease, color 0.3s ease;
 
6
  }
7
 
8
  body.light {
@@ -11,10 +12,57 @@ body.light {
11
  }
12
 
13
  body.dark {
14
- background: #1e1b4b; /* Deep navy */
15
  color: #e2e8f0;
16
  }
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  header {
19
  text-align: center;
20
  padding: 2rem;
@@ -30,8 +78,8 @@ header {
30
  }
31
 
32
  body.dark .header-content {
33
- background: #2c2a66; /* Dark navy */
34
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
35
  }
36
 
37
  header h1 {
@@ -41,7 +89,7 @@ header h1 {
41
  }
42
 
43
  body.light header h1 { color: #4a044e; /* Deep magenta */ }
44
- body.dark header h1 { color: #c4b5fd; /* Soft lavender */ }
45
 
46
  header p {
47
  margin: 0.5rem 0;
@@ -49,7 +97,7 @@ header p {
49
  }
50
 
51
  body.light header p { color: #6b4e31; /* Muted brown */ }
52
- body.dark header p { color: #a3bffa; /* Light blue */ }
53
 
54
  #mode-toggle {
55
  position: absolute;
@@ -92,14 +140,18 @@ body.light .function-box {
92
  }
93
 
94
  body.dark .function-box {
95
- background: #444679; /* Muted gray */
96
- border-color: #c4b5fd; /* Lavender border */
97
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
98
  }
99
 
100
  .function-box:hover {
101
  transform: scale(1.05); /* Enlarge on hover */
102
- box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
 
 
 
 
103
  }
104
 
105
  .function-box img {
@@ -115,7 +167,7 @@ body.dark .function-box {
115
  }
116
 
117
  body.light .function-box h2 { color: #4a044e; }
118
- body.dark .function-box h2 { color: #e2e8f0; }
119
 
120
  .function-box p {
121
  margin: 0;
@@ -123,7 +175,7 @@ body.dark .function-box h2 { color: #e2e8f0; }
123
  }
124
 
125
  body.light .function-box p { color: #6b4e31; }
126
- body.dark .function-box p { color: #a3bffa; }
127
 
128
  #gemini-orb {
129
  position: fixed;
@@ -144,8 +196,8 @@ body.dark .function-box p { color: #a3bffa; }
144
  }
145
 
146
  body.dark #gemini-orb {
147
- background: linear-gradient(135deg, #c4b5fd, #6ee7b7); /* Lavender to mint */
148
- color: #1e1b4b;
149
  }
150
 
151
  #gemini-orb:hover {
@@ -153,6 +205,10 @@ body.dark #gemini-orb {
153
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
154
  }
155
 
 
 
 
 
156
  .modal {
157
  position: fixed;
158
  top: 0;
@@ -167,7 +223,7 @@ body.dark #gemini-orb {
167
  }
168
 
169
  body.dark .modal {
170
- background: #1e1b4b; /* Solid navy */
171
  }
172
 
173
  .modal-content {
@@ -185,8 +241,8 @@ body.light .modal-content {
185
  }
186
 
187
  body.dark .modal-content {
188
- background: #2c2a66; /* Dark navy */
189
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
190
  }
191
 
192
  @keyframes fadeIn {
@@ -249,8 +305,8 @@ body.light input[type="file"] {
249
  body.dark textarea,
250
  body.dark select,
251
  body.dark input[type="file"] {
252
- border: 1px solid #6b7280;
253
- background: #444679;
254
  color: #e2e8f0;
255
  }
256
 
@@ -268,7 +324,7 @@ body.light input[type="file"]:focus {
268
  body.dark textarea:focus,
269
  body.dark select:focus,
270
  body.dark input[type="file"]:focus {
271
- border-color: #c4b5fd;
272
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.2);
273
  }
274
 
@@ -287,12 +343,12 @@ body.light button[type="submit"] {
287
  }
288
 
289
  body.dark button[type="submit"] {
290
- background: #c4b5fd;
291
- color: #1e1b4b;
292
  }
293
 
294
  body.light button[type="submit"]:hover { background: #c084fc; }
295
- body.dark button[type="submit"]:hover { background: #a78bfa; }
296
 
297
  .response-card {
298
  margin-top: 1rem;
@@ -301,7 +357,7 @@ body.dark button[type="submit"]:hover { background: #a78bfa; }
301
  }
302
 
303
  body.light .response-card { background: #f3e8ff; }
304
- body.dark .response-card { background: #444679; }
305
 
306
  .response-card h3 {
307
  margin: 0 0 0.5rem;
@@ -324,8 +380,8 @@ body.light .answer {
324
  }
325
 
326
  body.dark .answer {
327
- background: #6ee7b7; /* Muted mint */
328
- color: #1e1b4b;
329
  }
330
 
331
  .meta {
@@ -334,7 +390,7 @@ body.dark .answer {
334
  }
335
 
336
  body.light .meta { color: #6b4e31; }
337
- body.dark .meta { color: #a3bffa; }
338
 
339
  .error {
340
  padding: 1rem;
@@ -384,12 +440,12 @@ body.light .copy-btn {
384
  }
385
 
386
  body.dark .copy-btn {
387
- background: #34d399;
388
- color: #1e1b4b;
389
  }
390
 
391
  body.light .copy-btn:hover { background: #4ade80; }
392
- body.dark .copy-btn:hover { background: #22c55e; }
393
 
394
  .chart-preview {
395
  max-width: 100%;
@@ -399,7 +455,7 @@ body.dark .copy-btn:hover { background: #22c55e; }
399
  }
400
 
401
  body.light .chart-preview { border: 1px solid #e2e8f0; }
402
- body.dark .chart-preview { border: 1px solid #6b7280; }
403
 
404
  .response-card pre {
405
  border-radius: 8px;
 
3
  font-family: 'Inter', sans-serif;
4
  line-height: 1.6;
5
  transition: background 0.3s ease, color 0.3s ease;
6
+ position: relative;
7
  }
8
 
9
  body.light {
 
12
  }
13
 
14
  body.dark {
15
+ background: #0a0a23; /* Starry void */
16
  color: #e2e8f0;
17
  }
18
 
19
+ .starfield {
20
+ display: none;
21
+ position: fixed;
22
+ top: 0;
23
+ left: 0;
24
+ width: 100%;
25
+ height: 100%;
26
+ pointer-events: none;
27
+ z-index: -1;
28
+ }
29
+
30
+ body.dark .starfield {
31
+ display: block;
32
+ }
33
+
34
+ .starfield::before,
35
+ .starfield::after {
36
+ content: '';
37
+ position: absolute;
38
+ width: 2px;
39
+ height: 2px;
40
+ background: #e2e8f0; /* Star-like glow */
41
+ border-radius: 50%;
42
+ animation: twinkle 5s infinite;
43
+ }
44
+
45
+ .starfield::before { top: 10%; left: 20%; }
46
+ .starfield::after { top: 60%; left: 80%; }
47
+
48
+ .starfield span::before {
49
+ content: '';
50
+ position: absolute;
51
+ width: 1px;
52
+ height: 1px;
53
+ background: #a3bffa; /* Light blue star */
54
+ border-radius: 50%;
55
+ animation: twinkle 7s infinite;
56
+ }
57
+
58
+ .starfield span:nth-child(1)::before { top: 30%; left: 50%; }
59
+ .starfield span:nth-child(2)::before { top: 80%; left: 30%; }
60
+
61
+ @keyframes twinkle {
62
+ 0%, 100% { opacity: 0.2; }
63
+ 50% { opacity: 0.8; }
64
+ }
65
+
66
  header {
67
  text-align: center;
68
  padding: 2rem;
 
78
  }
79
 
80
  body.dark .header-content {
81
+ background: #2c2a66; /* Dark navy with starry glow */
82
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
83
  }
84
 
85
  header h1 {
 
89
  }
90
 
91
  body.light header h1 { color: #4a044e; /* Deep magenta */ }
92
+ body.dark header h1 { color: #c4b5fd; /* Glowing lavender */ }
93
 
94
  header p {
95
  margin: 0.5rem 0;
 
97
  }
98
 
99
  body.light header p { color: #6b4e31; /* Muted brown */ }
100
+ body.dark header p { color: #a3bffa; /* Starlight blue */ }
101
 
102
  #mode-toggle {
103
  position: absolute;
 
140
  }
141
 
142
  body.dark .function-box {
143
+ background: #1c2526; /* Dark starry gray */
144
+ border-color: #c4b5fd; /* Glowing lavender border */
145
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
146
  }
147
 
148
  .function-box:hover {
149
  transform: scale(1.05); /* Enlarge on hover */
150
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
151
+ }
152
+
153
+ body.dark .function-box:hover {
154
+ box-shadow: 0 6px 12px rgba(196, 181, 253, 0.3); /* Starry glow */
155
  }
156
 
157
  .function-box img {
 
167
  }
168
 
169
  body.light .function-box h2 { color: #4a044e; }
170
+ body.dark .function-box h2 { color: #e2e8f0; /* Starlight gray */ }
171
 
172
  .function-box p {
173
  margin: 0;
 
175
  }
176
 
177
  body.light .function-box p { color: #6b4e31; }
178
+ body.dark .function-box p { color: #a3bffa; /* Starlight blue */ }
179
 
180
  #gemini-orb {
181
  position: fixed;
 
196
  }
197
 
198
  body.dark #gemini-orb {
199
+ background: linear-gradient(135deg, #c4b5fd, #a3bffa); /* Lavender to starlight blue */
200
+ color: #e2e8f0;
201
  }
202
 
203
  #gemini-orb:hover {
 
205
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
206
  }
207
 
208
+ body.dark #gemini-orb:hover {
209
+ box-shadow: 0 0 20px rgba(196, 181, 253, 0.5); /* Starry glow */
210
+ }
211
+
212
  .modal {
213
  position: fixed;
214
  top: 0;
 
223
  }
224
 
225
  body.dark .modal {
226
+ background: #0a0a23; /* Starry void */
227
  }
228
 
229
  .modal-content {
 
241
  }
242
 
243
  body.dark .modal-content {
244
+ background: #2c2a66; /* Dark navy with starry glow */
245
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
246
  }
247
 
248
  @keyframes fadeIn {
 
305
  body.dark textarea,
306
  body.dark select,
307
  body.dark input[type="file"] {
308
+ border: 1px solid #a3bffa; /* Starlight blue */
309
+ background: #1c2526; /* Dark starry gray */
310
  color: #e2e8f0;
311
  }
312
 
 
324
  body.dark textarea:focus,
325
  body.dark select:focus,
326
  body.dark input[type="file"]:focus {
327
+ border-color: #c4b5fd; /* Glowing lavender */
328
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.2);
329
  }
330
 
 
343
  }
344
 
345
  body.dark button[type="submit"] {
346
+ background: #c4b5fd; /* Glowing lavender */
347
+ color: #0a0a23;
348
  }
349
 
350
  body.light button[type="submit"]:hover { background: #c084fc; }
351
+ body.dark button[type="submit"]:hover { background: #a3bffa; /* Starlight blue */ }
352
 
353
  .response-card {
354
  margin-top: 1rem;
 
357
  }
358
 
359
  body.light .response-card { background: #f3e8ff; }
360
+ body.dark .response-card { background: #1c2526; /* Dark starry gray */ }
361
 
362
  .response-card h3 {
363
  margin: 0 0 0.5rem;
 
380
  }
381
 
382
  body.dark .answer {
383
+ background: #a3bffa; /* Starlight blue */
384
+ color: #0a0a23;
385
  }
386
 
387
  .meta {
 
390
  }
391
 
392
  body.light .meta { color: #6b4e31; }
393
+ body.dark .meta { color: #e2e8f0; }
394
 
395
  .error {
396
  padding: 1rem;
 
440
  }
441
 
442
  body.dark .copy-btn {
443
+ background: #a3bffa; /* Starlight blue */
444
+ color: #0a0a23;
445
  }
446
 
447
  body.light .copy-btn:hover { background: #4ade80; }
448
+ body.dark .copy-btn:hover { background: #c4b5fd; }
449
 
450
  .chart-preview {
451
  max-width: 100%;
 
455
  }
456
 
457
  body.light .chart-preview { border: 1px solid #e2e8f0; }
458
+ body.dark .chart-preview { border: 1px solid #a3bffa; }
459
 
460
  .response-card pre {
461
  border-radius: 8px;