Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
171 lines (155 loc) · 4 KB
/
Copy pathindex.css
File metadata and controls
171 lines (155 loc) · 4 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
/* Reset and global setup */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; width: 100% }
img, video, svg { max-width: 100%; height: auto; display: block; }
/* Page wrapper */
#page1 {
min-height: 100vh;
width: 100%;
position: relative;
overflow-x: hidden; /* avoid horizontal scroll */
}
/* Navbar */
nav {
padding: 12px 16px; /* use px for consistency on mobile */
width: 100%;
min-height: 56px; /* content-based height */
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
}
/* Logo */
#img {
width: 140px; /* was 35vh */
max-width: 40vw;
height: auto; /* was 300% */
}
/* Nav links container */
#nav-part-2 {
display: flex;
justify-content: center;
align-items: center;
gap: 16px; /* was 2vw */
position: relative;
z-index: 2;
margin-bottom: 0; /* remove huge bottom spacing on mobile */
}
/* Link pill */
.nav2 {
padding: 10px 18px;
border: 2px solid #000;
border-radius: 999px;
font-weight: 500;
position: relative;
overflow: hidden;
text-decoration: none;
color: #000;
transition: color .5s ease;
z-index: 1;
}
/* Hover effect fill */
.nav2::after {
content: "";
height: 100%;
width: 100%;
position: absolute;
left: 0;
bottom: -100%;
background-color: #000;
border-radius: 100%;
transition: all .7s ease;
z-index: -1;
}
.nav2:hover::after { bottom: 0; border-radius: 0; }
.nav2:hover { color: #fff; cursor: pointer; }
/* Main content */
#center {
width: 100%;
min-height: 60vh; /* was fixed 80vh */
background-color: #fff;
display: flex;
flex-wrap: wrap; /* stack on small screens */
align-items: flex-start;
justify-content: space-between;
gap: 16px;
padding: 16px;
z-index:-1;
}
/* LEFT SIDE BOX */
#left {
width: 100%; /* was 70vh */
max-width: 640px;
font-size: clamp(16px, 2.6vw, 20px); /* responsive text */
border: 2px solid rgba(0,0,0,0.4);
border-radius: 16px; /* was 2vh */
overflow: hidden;
transition: all .5s ease-in-out;
padding: 16px 20px; /* simplify paddings */
font-family: 'Gill Sans','Gill Sans MT',Calibri,'Trebuchet MS',sans-serif;
color: #000;
position: relative;
z-index:1;
}
#left:hover { background-color: rgb(112,106,106); color: #fff; border-radius: 0; }
/* RIGHT SIDE BOX */
#right {
width: 100%;
min-width:150px; /* stack under #left on mobile */
max-width: 660px;
text-align: left; /* better for mobile */
padding-top: 8px;
text-align:center;
font-size: clamp(14px, 2vw, 18px);
transition: all .5s ease-in-out;
margin: 0;
margin-top:1%;
margin-bottom:10%;
z-index:1; /* remove large margins */
}
#right:hover {
box-shadow: 8px 8px 24px rgba(0,0,0,0.25);
background-color: rgb(22,24,26);
color: #fff;
border-top-left-radius: 10px;
border-bottom-right-radius: 10px;
transform: translateZ(-20px);
}
#right h1 {
font-size: clamp(28px, 8vw, 56px);
line-height: 1.9;
word-break: break-word;
}
/* Video + bottom sections */
#video {
width: 100%; /* was 200vh */
max-width: 1200px;
margin: 0 auto;
border-radius: 24px; /* was 20vh */
background-color: blue; /* placeholder */
}
#bottom {
width: 100%; /* was 200vh */
min-height: 40vh; /* flexible height */
}
/* Tablet */
@media (min-width: 768px) {
nav { padding: 16px 24px; }
#center { padding: 24px; }
}
/* Desktop: split layout */
@media (min-width: 992px) {
#center { flex-wrap: nowrap; align-items: flex-end; }
#left { width: 55%; }
#right { width: 40%; text-align: center; }
#img { width: 180px; }
}
canvas {
position:sticky;
top: 0;
left: 0;
width: 10vw;
height: 10vh;
z-index: 0;
}