-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
295 lines (250 loc) · 5.82 KB
/
style.css
File metadata and controls
295 lines (250 loc) · 5.82 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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");
* {
font-family: "Poppins", sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
overflow-x: hidden;
scroll-snap-type: y mandatory;
scroll-behavior: smooth;
}
.nav-container {
position: fixed;
top: 0;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding-right: 30px;
padding-left: 20px;
height: 80px;
color: #fff;
z-index: 1000;
}
.nav-container ul {
display: flex;
list-style: none;
gap: 20px;
font-size: 15px;
}
.nav-container ul li {
cursor: pointer;
transition: 0.5s;
padding: 3px 10px;
border-radius: 5px;
}
.nav-container ul li:hover,
.nav-container .icons i:hover {
background-color: rgba(0, 0, 0, 0.5);
}
.logo {
width: 120px;
height: 30px;
cursor: pointer;
filter: brightness(0) invert(1);
}
.nav-container .icons {
display: flex;
font-size: 25px;
gap: 10px;
cursor: pointer;
}
.nav-container .icons i {
border-radius: 50%;
padding: 3px;
transition: 0.5s;
}
.pages{
display: flex;
justify-content: center;
list-style-type: none;
text-align: center;
flex-direction: column;
}
.pages li{
position: relative;
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
justify-content: space-between;
padding-top: 150px;
padding-bottom: 10px;
color: #fff;
scroll-snap-align: start;
overflow: hidden;
}
.pages li video,
.pages li img{
position: absolute;
top: 0;
left: 0;
z-index: -1;
object-fit: cover;
width: 100%;
height: 100%;
}
.pages-info h1{
letter-spacing: 1px;
font-size: 40px;
}
.page-info h1,
.page-info h3{
font-weight: 500;
}
.page-info.model-x{
color: #333;
}
.page-info.model-x p{
font-size: 12px;
}
.page-footer .buttons{
margin-bottom: 25px;
display: flex;
gap: 20px;
justify-content: center;
}
.page-footer .buttons button{
font-size: 13px;
padding: 7px 80px;
border-radius: 5px;
border: none;
cursor: pointer;
}
.page-footer .buttons button:first-child{
background-color: rgba(34, 34, 34, 0.8);
color: #fff;
}
.page-footer .buttons button:last-child{
background-color: rgba(255, 255, 255, 0.75);
}
.page-footer .buttons.inverted button:first-child{
background-color: rgba(255, 255, 255, 0.75);
color: #333;
}
.page-footer .buttons.inverted button:last-child{
background-color: rgba(34, 34, 34, 0.8);
color: #fff;
}
.page-footer p,
.page-footer a{
font-size: 12px;
color: #fff;
}
.page-footer .buttons.demo-drive button{
background-color: transparent;
color: #fff;
border: 3px solid #fff;
}
#model-y-info,
#model-y-footer {
opacity: 0;
transform: translateY(50px);
transition: 3s;
}
/* Mega menu base styling */
.nav-links {
list-style: none;
display: flex;
gap: 30px;
}
.nav-links li {
position: relative;
}
.nav-links a {
text-decoration: none;
color: #fff;
font-weight: 500;
padding: 10px 15px;
display: block;
}
.nav-links a:hover {
border-radius: 5px;
}
.mega-menu h3
{
color: black;
}
/* Mega menu styling */
.mega-menu {
display: none;
position: absolute;
left: 10%;
top: 80%;
transform: translateX(-50%); /* Center the dropdown */
background-color: #fff;
padding: 50px 50px;
width: 50vw; /* Adjust width as needed */
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 999;
box-sizing: border-box; /* Ensure padding and borders are included in the width/height */
}
/* Show mega menu on hover */
.nav-links li.dropdown:hover .mega-menu {
display: flex;
}
/* Clear floats */
.mega-menu:after {
content: '';
display: block;
clear: both;
}
a img {
width: 300px; /* Adjust the width as needed */
height: 100px; /* Adjust the height as needed */
object-fit: cover; /* Ensures the image fits within the specified dimensions */
display: block; /* Ensures the image and text are stacked vertically */
margin: 0 auto; /* Center the image horizontally */
}
a span {
display: block; /* Ensure the text is on a new line */
text-align: center; /* Center the text below the image */
margin-top: 5px; /* Add some space between the image and the text */
font-weight: bold; /* Optional: make the text bold */
}
.image-text-link {
display: flex;
align-items: center; /* Vertically centers the text with the image */
gap: 10px; /* Space between the image and text */
text-decoration: none; /* Optional: remove underline from the link */
padding-right: 100px;
}
.image-text-link img {
width: 135px; /* Adjust size as needed */
height: auto; /* Maintain aspect ratio */
}
.image-text-link span {
font-size: 16px; /* Adjust text size as needed */
color: #444; /* Optional: text color */
}
.divider-container {
display: flex;
align-items: center; /* Center text vertically with the divider */
margin: 20px 0; /* Add spacing around the container */
position: relative; /* For positioning the divider line */
}
/* Style for the text next to the divider */
.divider-text {
color: black;
display: flex;
flex-direction: column; /* Stack text lines vertically */
align-items: center; /* Center text horizontally */
z-index: 1; /* Ensure text is above the divider */
padding: 10px;
}
.divider-text span {
font-weight: lighter; /* Optional: make the text bold */
display: block;
margin: 0 0 5px; /* Space between text lines */
font-size: 16px; /* Adjust text size as needed */
text-align: center; /* Center text horizontally */
}
.divider-text-title
{
font-weight: bold;
font-size: 110px;
padding-bottom: 20px;
}