-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
147 lines (129 loc) · 2.66 KB
/
style.css
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
/* Basic resets and styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
body {
line-height: 1.6;
background-color: #f4f4f4;
}
/* Header styles */
header {
background-color: #333;
color: white;
padding: 1rem;
text-align: center;
position: sticky;
top: 0;
z-index: 1000;
}
header nav {
display: flex;
justify-content: space-between;
align-items: center;
}
header ul {
list-style-type: none;
display: flex;
}
header ul li {
margin: 0 10px;
}
header ul li a {
color: white;
text-decoration: none;
font-weight: bold;
}
/* Hero section */
.hero {
background-image: url('hero-content.png');
height: 100vh;
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: center;
color: white;
text-align: center;
position: relative;
}
.hero::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
position: relative;
z-index: 1;
background-color: rgba(0, 0, 0, 0.5);
padding: 20px;
border-radius: 10px;
}
/* Button styles */
button {
padding: 10px 20px;
border: none;
background-color: #e67e22;
color: white;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
button:hover {
transform: scale(1.1);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
/* Section and content styling */
.about, .vehicles, .technology, .contact, .john{
padding: 50px 20px;
text-align: center;
}
.vehicle-list {
display: flex;
justify-content: space-around;
margin-top: 20px;
width: 50%;
margin-left: auto;
margin-right: auto;
}
.vehicle {
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.vehicle img {
width: 100%;
border-radius: 10px;
}
/* Footer styling */
footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
position: relative;
bottom: 0;
width: 100%;
}
/* General styles omitted for brevity */
/* 3D Vehicle Model Canvas */
.vehicle-3d {
width: 100%;
height: 500px; /* Adjust the height for the 3D model section */
display: flex;
justify-content: center;
align-items: center;
}
#carModelCanvas {
width: 100%;
height: 100%;
display: block;
}