Skip to content

Commit 4d85e7e

Browse files
horizontal scroll fixed
1 parent e1457f5 commit 4d85e7e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

index.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
--color-primary: #00C9B1; /* Vibrant Teal/Green */
2020
--color-secondary: #008D79; /* Darker Teal */
2121
--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 */
2323
--color-glass-border: rgba(255, 255, 255, 0.1); /* Subtle white border for glass */
2424
--color-text-light: #F0F0F0; /* Light text for contrast */
2525
--color-text-muted: #A0A0A0; /* Muted text for descriptions */
@@ -28,14 +28,18 @@
2828
--background-patch-color: rgba(0, 201, 177, 0.12); /* Slightly more opaque color for blurred patches */
2929
}
3030

31+
/* Ensure HTML and Body always hide horizontal overflow */
32+
html, body {
33+
overflow-x: hidden; /* Strongly prevent horizontal scroll */
34+
}
35+
3136
body {
3237
font-family: 'Space Grotesk', sans-serif; /* Apply Space Grotesk font */
3338
background-color: var(--color-background-base); /* Solid dark background */
3439
color: var(--color-text-light);
3540
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
3641
min-height: 100vh;
3742
position: relative; /* Needed for patches */
38-
overflow-x: hidden; /* Prevent horizontal scroll from patches */
3943
}
4044

4145
/* Common styles for background patches */
@@ -45,6 +49,10 @@
4549
border-radius: 50%;
4650
z-index: -1; /* Send behind content */
4751
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;
4856
}
4957

5058
/* Custom glassmorphism effect for all relevant elements */

0 commit comments

Comments
 (0)