|
19 | 19 | --color-primary: #00C9B1; /* Vibrant Teal/Green */
|
20 | 20 | --color-secondary: #008D79; /* Darker Teal */
|
21 | 21 | --color-background-base: #0A0A0A; /* Very dark base background */
|
22 |
| - --color-glass-bg: rgba(255, 255, 255, 0.05); /* More transparent, lighter glass background */ |
| 22 | + --color-glass-bg: rgba(255, 255, 255, 0.08); /* More transparent, lighter glass background */ |
23 | 23 | --color-glass-border: rgba(255, 255, 255, 0.1); /* Subtle white border for glass */
|
24 | 24 | --color-text-light: #F0F0F0; /* Light text for contrast */
|
25 | 25 | --color-text-muted: #A0A0A0; /* Muted text for descriptions */
|
|
28 | 28 | --background-patch-color: rgba(0, 201, 177, 0.12); /* Slightly more opaque color for blurred patches */
|
29 | 29 | }
|
30 | 30 |
|
| 31 | + /* Ensure HTML and Body always hide horizontal overflow */ |
| 32 | + html, body { |
| 33 | + overflow-x: hidden; /* Strongly prevent horizontal scroll */ |
| 34 | + } |
| 35 | + |
31 | 36 | body {
|
32 | 37 | font-family: 'Space Grotesk', sans-serif; /* Apply Space Grotesk font */
|
33 | 38 | background-color: var(--color-background-base); /* Solid dark background */
|
34 | 39 | color: var(--color-text-light);
|
35 | 40 | transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
|
36 | 41 | min-height: 100vh;
|
37 | 42 | position: relative; /* Needed for patches */
|
38 |
| - overflow-x: hidden; /* Prevent horizontal scroll from patches */ |
39 | 43 | }
|
40 | 44 |
|
41 | 45 | /* Common styles for background patches */
|
|
45 | 49 | border-radius: 50%;
|
46 | 50 | z-index: -1; /* Send behind content */
|
47 | 51 | pointer-events: none; /* Do not interfere with clicks */
|
| 52 | + /* Ensure patches don't directly cause overflow by being excessively large relative to viewport */ |
| 53 | + /* Using vw for width to scale with viewport, max-width to prevent excessive growth */ |
| 54 | + max-width: 100vw; |
| 55 | + max-height: 100vh; |
48 | 56 | }
|
49 | 57 |
|
50 | 58 | /* Custom glassmorphism effect for all relevant elements */
|
|
0 commit comments