|
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8"> |
5 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes, shrink-to-fit=no"> |
6 | 6 | <title>TimeCapsule-SLM - Complete AI-powered Research & Creative Platform</title> |
7 | 7 | <link rel="icon" type="image/png" href="lib/Media/TimeCapsule_03.png"> |
8 | 8 |
|
|
18 | 18 | align-items: flex-start; |
19 | 19 | color: white; |
20 | 20 | box-sizing: border-box; |
| 21 | + overflow-x: hidden; |
| 22 | + width: 100%; |
21 | 23 | } |
22 | 24 |
|
23 | 25 | /* Mobile body padding adjustment */ |
24 | | - @media screen and (max-width: 768px) { |
| 26 | + @media screen and (max-width: 768px), |
| 27 | + screen and (max-device-width: 768px) { |
25 | 28 | body { |
26 | 29 | padding-top: 80px !important; |
27 | 30 | } |
28 | 31 | } |
| 32 | + |
| 33 | + /* Force mobile layout for medium mobile screens */ |
| 34 | + @media screen and (max-width: 500px) { |
| 35 | + .main-container { |
| 36 | + padding: 15px 10px !important; |
| 37 | + width: 100% !important; |
| 38 | + max-width: 100% !important; |
| 39 | + } |
| 40 | + |
| 41 | + .features-grid { |
| 42 | + grid-template-columns: 1fr !important; |
| 43 | + gap: 15px !important; |
| 44 | + } |
| 45 | + |
| 46 | + .feature-card { |
| 47 | + width: 100% !important; |
| 48 | + max-width: 100% !important; |
| 49 | + padding: 20px 15px !important; |
| 50 | + margin: 0 !important; |
| 51 | + grid-column: span 1 !important; |
| 52 | + } |
| 53 | + |
| 54 | + .feature-card.canvas { |
| 55 | + grid-column: span 1 !important; |
| 56 | + justify-self: stretch !important; |
| 57 | + max-width: 100% !important; |
| 58 | + } |
| 59 | + } |
29 | 60 |
|
30 | 61 |
|
31 | 62 | .main-container { |
32 | 63 | max-width: 1200px; |
33 | 64 | margin: 0 auto; |
34 | 65 | padding: 40px 20px; |
| 66 | + width: 100%; |
| 67 | + box-sizing: border-box; |
35 | 68 | } |
36 | 69 |
|
37 | 70 | .hero-section { |
|
101 | 134 | padding: 25px; |
102 | 135 | justify-self: center; |
103 | 136 | margin-top: 20px; |
| 137 | + box-sizing: border-box; |
104 | 138 | } |
105 | 139 |
|
106 | 140 | .feature-card.canvas .feature-title { |
|
395 | 429 |
|
396 | 430 |
|
397 | 431 | /* Mobile Optimization - Enhanced */ |
398 | | - @media (max-width: 768px) { |
| 432 | + @media screen and (max-width: 768px), |
| 433 | + screen and (max-device-width: 768px) { |
399 | 434 | body { |
400 | 435 | padding-top: 80px; /* Reduced top padding for mobile */ |
| 436 | + padding-bottom: 20px; /* Add bottom padding for mobile */ |
401 | 437 | } |
402 | 438 |
|
403 | 439 | .main-container { |
404 | | - padding: 20px 15px; /* Better mobile padding */ |
| 440 | + padding: 20px 15px !important; /* Better mobile padding */ |
| 441 | + max-width: 100% !important; /* Ensure full width on mobile */ |
| 442 | + width: 100% !important; |
| 443 | + box-sizing: border-box !important; |
405 | 444 | } |
406 | 445 |
|
407 | 446 | /* Hero Section Mobile */ |
408 | 447 | .hero-section { |
409 | | - padding: 30px 20px; |
410 | | - margin-bottom: 30px; |
| 448 | + padding: 30px 20px !important; |
| 449 | + margin-bottom: 30px !important; |
| 450 | + width: 100% !important; |
| 451 | + max-width: 100% !important; |
| 452 | + box-sizing: border-box !important; |
411 | 453 | } |
412 | 454 |
|
413 | 455 | .logo { |
|
430 | 472 |
|
431 | 473 | .hero-description { |
432 | 474 | font-size: 0.95em; |
433 | | - line-height: 1.5; |
| 475 | + line-height: 1.6; |
434 | 476 | padding: 0 10px; |
| 477 | + text-align: left; |
435 | 478 | } |
436 | 479 |
|
437 | 480 | .hero-description strong { |
438 | 481 | display: block; |
439 | 482 | margin-bottom: 8px; |
| 483 | + color: #4facfe; |
440 | 484 | } |
441 | 485 |
|
442 | 486 | .hero-description br { |
|
447 | 491 |
|
448 | 492 | /* Features Grid Mobile */ |
449 | 493 | .features-grid { |
450 | | - grid-template-columns: 1fr; |
451 | | - gap: 20px; |
452 | | - margin-top: 30px; |
| 494 | + grid-template-columns: 1fr !important; |
| 495 | + gap: 20px !important; |
| 496 | + margin-top: 30px !important; |
| 497 | + width: 100% !important; |
| 498 | + max-width: 100% !important; |
453 | 499 | } |
454 | 500 |
|
455 | 501 | .feature-card { |
456 | | - padding: 25px 20px; |
457 | | - margin: 0; |
| 502 | + padding: 25px 20px !important; |
| 503 | + margin: 0 !important; |
| 504 | + width: 100% !important; |
| 505 | + box-sizing: border-box !important; |
| 506 | + max-width: 100% !important; |
| 507 | + grid-column: span 1 !important; |
| 508 | + } |
| 509 | + |
| 510 | + /* Canvas card mobile override */ |
| 511 | + .feature-card.canvas { |
| 512 | + max-width: 100% !important; |
| 513 | + padding: 20px 15px !important; |
| 514 | + margin-top: 0 !important; |
| 515 | + grid-column: span 1 !important; |
| 516 | + justify-self: stretch !important; |
458 | 517 | } |
459 | 518 |
|
460 | 519 | .feature-icon { |
|
567 | 626 | flex-direction: column; |
568 | 627 | gap: 12px; |
569 | 628 | align-items: stretch; |
| 629 | + max-width: 100%; |
570 | 630 | } |
571 | 631 |
|
572 | 632 | .github-cta { |
|
576 | 636 | font-size: 15px; |
577 | 637 | justify-content: center; |
578 | 638 | margin: 0; |
| 639 | + box-sizing: border-box; |
579 | 640 | } |
580 | 641 |
|
581 | 642 | /* Improved touch targets */ |
|
587 | 648 | transform: scale(0.98); |
588 | 649 | transition: transform 0.1s ease; |
589 | 650 | } |
| 651 | + |
| 652 | + /* Disable hover effects on mobile for better touch experience */ |
| 653 | + .feature-card:hover { |
| 654 | + transform: none; |
| 655 | + box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37); |
| 656 | + } |
| 657 | + |
| 658 | + .feature-cta:hover { |
| 659 | + transform: none; |
| 660 | + box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4); |
| 661 | + } |
| 662 | + |
| 663 | + .feature-cta:active { |
| 664 | + transform: scale(0.98); |
| 665 | + transition: transform 0.1s ease; |
| 666 | + } |
590 | 667 | } |
591 | 668 |
|
592 | 669 | /* Small Mobile Devices */ |
593 | | - @media (max-width: 480px) { |
| 670 | + @media screen and (max-width: 480px), |
| 671 | + screen and (max-device-width: 480px) { |
594 | 672 | .main-container { |
595 | 673 | padding: 15px 10px; |
| 674 | + max-width: 100%; |
596 | 675 | } |
597 | 676 |
|
598 | 677 | .hero-section { |
599 | 678 | padding: 25px 15px; |
| 679 | + margin-bottom: 20px; |
600 | 680 | } |
601 | 681 |
|
602 | 682 | .hero-title { |
|
610 | 690 | .hero-description { |
611 | 691 | font-size: 0.9em; |
612 | 692 | padding: 0 5px; |
| 693 | + text-align: left; |
| 694 | + line-height: 1.6; |
613 | 695 | } |
614 | 696 |
|
615 | 697 | .feature-card { |
616 | 698 | padding: 20px 15px; |
617 | 699 | } |
618 | 700 |
|
| 701 | + .feature-card.canvas { |
| 702 | + padding: 18px 12px; |
| 703 | + } |
| 704 | + |
619 | 705 | .feature-title { |
620 | 706 | font-size: 1.4em; |
621 | 707 | } |
|
644 | 730 | } |
645 | 731 |
|
646 | 732 | /* Large Mobile / Small Tablet */ |
647 | | - @media (min-width: 769px) and (max-width: 1024px) { |
| 733 | + @media screen and (min-width: 769px) and (max-width: 1024px) { |
648 | 734 | .features-grid { |
649 | 735 | grid-template-columns: 1fr; |
650 | 736 | max-width: 600px; |
|
0 commit comments