-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
756 lines (656 loc) · 13.9 KB
/
style.css
File metadata and controls
756 lines (656 loc) · 13.9 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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
/* Reset and base styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
font-family: 'Segoe UI', Roboto, sans-serif;
background-color: #dae4f1;
color: #1f2937;
display: flex;
flex-direction: column;
}
/* Header */
.header {
background-color: #00008B;
color: #e8dfdf;
padding: 1rem 0;
border-bottom: 1px solid #e5e7eb;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
.container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1100px;
margin: auto;
padding: 0 1.5rem;
}
.logo {
font-size: 1.75rem;
font-weight: 700;
color: #f4f5f7;
}
.nav {
display: flex;
align-items: center;
gap: 1.5rem;
}
.nav a {
text-decoration: none;
color: #7caaee;
font-weight: 500;
font-size: 1rem;
transition: color 0.2s;
}
.nav a:hover {
color: #304278;
}
/* Hero Section */
.hero {
text-align: center;
padding: 4rem 1rem 2rem;
background-color: #ffffff;
border-radius: 0 0 1rem 1rem;
margin-bottom: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.hero h2 {
font-size: 2.25rem;
font-weight: 700;
margin-bottom: 1rem;
color: #111827;
}
.hero p {
font-size: 1.125rem;
color: #6b7280;
max-width: 600px;
margin: 0 auto 2rem;
}
.cta-button {
display: inline-block;
background-color: #2563eb;
color: #ffffff;
padding: 0.75rem 2rem;
border-radius: 0.5rem;
font-size: 1rem;
font-weight: 600;
text-decoration: none;
transition: background-color 0.3s, transform 0.3s;
}
.cta-button:hover {
background-color: #000088;
transform: scale(1.09);
}
/* Subjects Section */
.subjects {
padding: 3rem 1rem;
max-width: 1100px;
margin: auto;
}
.subjects h3 {
text-align: center;
font-size: 2.5rem;
font-weight: 600;
margin-bottom: 2rem;
color: #111827;
}
.subject-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1.6rem;
}
.subject-card {
background-color: #ffffff;
padding: 1.5rem;
border-radius: 0.75rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
text-decoration: none;
color: #0a0c12;
font-size: 1.2rem;
font-weight: 500;
text-align: center;
transition: box-shadow 0.2s, transform 0.2s;
}
.subject-card:hover {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
transform: translateY(-3px);
}
/* --- NEW LAYOUT: Vertical List (Like Image 2) --- */
/* This does not affect .subject-grid */
.vertical-stack {
display: flex;
flex-direction: column; /* Stacks items vertically */
align-items: center; /* Centers them in the middle */
gap: 1.2rem; /* Space between bars */
margin-top: 1rem;
}
/* We make the card wider when it is inside a vertical stack */
.vertical-stack .subject-card {
width: 100%;
max-width: 700px; /* Makes it look like a wide bar, not a small box */
padding: 1.2rem;
}
.unit-year {
font-size: 0.85rem; font-style: italic; color: #7373c5; margin-left: 0.5rem;
}
/* Show-less button style (non-invasive, matches current simple UI) */
.hl-show-less {
display: inline-block;
margin: 1.2rem auto 0;
padding: 0.5rem 0.9rem;
font-size: 0.95rem;
font-weight: 600;
background: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 1px 2px rgba(0,0,0,0.03);
transition: transform .08s ease, box-shadow .08s ease;
color: #333;
}
.hl-show-less:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
/* Make sure the button sits nicely inside the details content */
details > .hl-show-less { display: none; } /* hidden by default; shown when details.open */
details[open] > .hl-show-less { display: inline-block; }
/* Make it full-width on narrow screens */
@media (max-width: 520px) {
.hl-show-less { width: calc(100% - 2rem); display: block; text-align:center; }
}
/* Footer */
.footer {
background-color: #00008B;
color: #ebeef6;
text-align: center;
padding: 1rem;
margin-top: auto;
font-size: 0.95rem;
border-top: 1px solid #1c1d1d;
}
.footer {
text-align: center;
padding: 10px;
}
.footer .disclaimer {
font-size: 0.8em;
/* smaller than normal text */
color: #666;
/* lighter color for subtle look */
margin-top: 5px;
}
/* Responsive */
@media (max-width: 640px) {
.container {
flex-direction: column;
gap: 1rem;
padding: 0 1rem;
}
.nav a {
margin-left: 1rem;
font-size: 0.95rem;
}
.hero {
padding: 3rem 1rem 1.5rem;
}
.subjects {
padding: 2rem 1rem;
}
.subjects p {
font-size: 0.8rem;
}
}
.questions-list {
max-width: 800px;
margin: auto;
padding: 2rem;
font-family: 'Segoe UI', sans-serif;
}
.question {
background: #f0f4f8;
border-left: 4px solid #2563eb;
margin: 1rem 0;
border-radius: 8px;
padding: 1rem;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}
.question summary {
cursor: pointer;
font-size: 1.05rem;
font-weight: 600;
color: #1f2937;
}
.question summary::marker {
font-size: 1.4rem;
}
.question p {
padding: 0.5rem 0 0 1rem;
margin: 0;
color: #374151;
}
/* Blinking cursor effect */
.cursor {
display: inline-block;
width: 10px;
background-color: #333;
animation: blink 1s infinite;
margin-left: 2px;
}
@keyframes blink {
0%,
100% {
background-color: #333;
}
50% {
background-color: transparent;
}
}
.subject-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.subject-card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.hero-image {
max-width: 400px;
margin-top: 2rem;
animation: float 4s ease-in-out infinite;
}
.ans-img {
max-width: 100%;
/* never overflow question box */
height: auto;
/* keep aspect ratio */
display: block;
margin: 0.5rem auto;
/* center images with spacing */
border-radius: 6px;
/* (optional) smooth corners */
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
/* (optional) subtle shadow */
}
@keyframes float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
/* Enhanced styles for better math and answer display */
.questions-list {
max-width: 920px;
margin: 1.5rem auto;
padding: 0 1rem;
}
.question {
margin-bottom: 1.25rem;
}
.sub-question p {
margin: 0 0 0.5rem 0;
}
.answer-box {
display: none;
margin-top: 1rem;
padding: 1.5rem;
border-radius: 12px;
border: 1px solid rgba(15, 23, 42, 0.1);
background: #fefefe;
box-shadow: 0 2px 8px rgba(2, 6, 23, 0.06);
line-height: 1.7;
word-break: break-word;
font-size: 16px;
max-width: 100%; /* Ensure answer box fits within container */
width: 100%; /* Full width on small screens */
overflow-x: auto; /* Prevent horizontal overflow */
}
/* Better math formatting in answers */
.answer-box .mjx-chtml {
font-size: 1.1em !important;
}
.answer-box h1,
.answer-box h2,
.answer-box h3,
.answer-box h4 {
color: #1e40af;
margin: 1.5rem 0 1rem 0;
font-weight: 600;
}
.answer-box h1 {
font-size: 1.4em;
}
.answer-box h2 {
font-size: 1.3em;
}
.answer-box h3 {
font-size: 1.2em;
}
.answer-box h4 {
font-size: 1.1em;
}
.answer-box p {
margin-bottom: 1rem;
text-align: justify;
}
.answer-box ul,
.answer-box ol {
margin: 1rem 0;
padding-left: 1.5rem;
}
.answer-box li {
margin-bottom: 0.5rem;
}
.answer-box strong {
color: #1f2937;
font-weight: 600;
}
.answer-box code {
background: #f3f4f6;
padding: 2px 6px;
border-radius: 4px;
font-family: 'Courier New', monospace;
font-size: 0.9em;
}
.answer-box pre {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 1rem;
overflow-x: auto;
margin: 1rem 0;
}
/* Step-by-step solution styling */
.answer-box .step {
background: #f0f9ff;
border-left: 4px solid #2563eb;
padding: 1rem;
margin: 1rem 0;
border-radius: 0 8px 8px 0;
}
.controls {
margin-top: 0.75rem;
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
align-items: center;
}
.btn {
cursor: pointer;
padding: 0.45rem 0.7rem;
border-radius: 8px;
border: 1px solid rgba(0, 0, 0, 0.08);
background: #f9fafb;
transition: all 0.2s;
margin: 0.5rem;
}
.btn:hover {
background: #f3f4f6;
transform: translateY(-1px);
}
.btn.primary {
background: #2563eb;
color: white;
border: none;
}
.btn.primary:hover {
background: #000088;
}
.btn.ghost {
background: transparent;
}
.spinner {
width: 16px;
height: 16px;
border-radius: 50%;
border: 2px solid rgba(0, 0, 0, 0.15);
border-top-color: rgba(0, 0, 0, 0.6);
animation: spin 0.8s linear infinite;
display: inline-block;
vertical-align: middle;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.cursor {
display: inline-block;
width: 8px;
background: #111827;
margin-left: 2px;
height: 1.05em;
vertical-align: text-bottom;
animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
50% {
opacity: 0
}
}
.badge {
font-size: 12px;
padding: 4px 8px;
border-radius: 999px;
background: #eef2ff;
color: #4338ca;
}
.badge.cached {
background: #dcfce7;
color: #15803d;
}
.source {
font-size: 12px;
color: #6b7280;
}
.answer-controls {
margin-top: 1rem;
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
padding-top: 1rem;
border-top: 1px solid #e5e7eb;
}
/* Enhanced responsive design */
@media (max-width: 600px) {
.answer-box {
font-size: 15px;
padding: 1rem;
max-width: 100%; /* Ensure full width */
width: 100%; /* Force full width */
margin-left: 0;
margin-right: 0;
overflow-y: auto; /* Allow vertical scrolling if content exceeds height */
max-height: 70vh; /* Limit height to 70% of viewport height */
}
.answer-box .mjx-chtml {
font-size: 1em !important;
}
.header {
padding: 0.75rem 0;
}
.footer {
padding: 0.5rem;
font-size: 0.85rem;
}
.questions-list {
padding: 0.5rem;
max-width: 100%;
}
.question {
padding: 0.75rem;
}
}
/* Loading animation for better UX */
.generating {
position: relative;
}
.generating::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
animation: loading 1.5s infinite;
}
@keyframes loading {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
/* Utility */
.section-container {
max-width: 1100px;
margin: 0 auto;
padding: 0 1.5rem;
display: block;
}
/* Inverse Button (White Outline for Dark Backgrounds) */
.cta-button.inverse {
background-color: transparent;
color: #ffffff;
border: 2px solid rgba(255,255,255,0.7);
margin-top: 2rem;
}
.cta-button.inverse:hover {
background-color: #ffffff;
color: #050589;
border-color: #ffffff;
transform: scale(1.05);
}
.hero-sub {
font-size: 1.15rem;
margin-bottom: 2.5rem;
max-width: 700px;
margin-left: auto;
margin-right: auto;
line-height: 1.6;
}
.hero-image {
max-width: 100%;
height: auto;
width: 380px;
margin: 0 auto 2rem auto;
display: block;
}
.btn-group {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 3rem;
}
/* --- STATS GRID --- */
.stats-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 2rem;
max-width: 900px;
margin: 0 auto;
padding-top: 2rem;
border-top: 1px solid #e5e7eb;
}
.stat-item h4 {
font-size: 2rem;
color: #00008B;
font-weight: 800;
margin-bottom: 0.5rem;
}
.stat-item p {
font-size: 0.9rem;
color: #6b7280;
font-weight: 500;
margin: 0;
}
/* --- FEATURES SECTION --- */
.features-section {
background-color: #f8fafc;
padding: 5rem 0;
text-align: center;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-top: 3rem;
}
.feature-card {
background: white;
padding: 2.5rem 2rem;
border-radius: 16px;
box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 10px 15px rgba(0,0,0,0.03);
transition: transform 0.3s ease, box-shadow 0.3s ease;
border-top: 5px solid #2563eb;
text-align: left;
}
.feature-card:hover {
transform: translateY(-8px);
box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.feature-icon {
font-size: 2.5rem;
margin-bottom: 1.2rem;
display: inline-block;
}
/* SVG Styling */
.feature-icon svg {
width: 3rem;
height: 3rem;
color: #00008B;
display: block;
}
.feature-card h3 {
margin-bottom: 0.8rem;
color: #1f2937;
font-size: 1.25rem;
font-weight: 700;
}
.feature-card p {
color: #6b7280;
font-size: 0.95rem;
line-height: 1.6;
}
/* --- VISION SECTION --- */
.vision-section {
background: #050589;
color: white;
padding: 5rem 1.5rem;
text-align: center;
}
.vision-content {
max-width: 800px;
margin: 0 auto;
}
.vision-title {
font-size: 2.2rem;
margin-bottom: 1.5rem;
font-weight: 700;
letter-spacing: -0.5px;
}
.vision-text {
font-size: 1.15rem;
line-height: 1.8;
opacity: 0.95;
font-style: italic;
font-weight: 300;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.hero-sub { font-size: 1rem; }
.vision-title { font-size: 1.8rem; }
.stats-container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
.scroll-x {
overflow-x: auto;
max-width: 100%;
-webkit-overflow-scrolling: touch;
padding-bottom: 8px; /* Adds a bit of space so the scrollbar doesn't clip content */
}