-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0-styles.css
205 lines (178 loc) · 3.58 KB
/
0-styles.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
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
/*===== Global style =====*/
* {
font-family: 'Open Sans', sans-serif;
text-decoration: none;
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
/*===== Background ======*/
body {
background-image: url(images/headphones_hero_1.jpg);
background-repeat: no-repeat;
background-size: auto;
background-position: center;
height: 99vh 0;
position: relative;
}
/*===== Header =====*/
header div {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px;
color: #FFFFFF;
}
/*===== Logo =====*/
header div a {
color: white;
margin-top: 20px;
}
header div a img {
width: 150px; /* Default logo size */
height: auto;
}
/* ======= Navbar ======*/
.navbar-menu {
display: flex;
align-items: center;
justify-content: flex-end;
}
.nav {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}
.nav-item {
margin: 0 10px;
font-weight: bold;
}
.nav-link {
color: white;
font-weight: bold;
font-size: 16px;
}
.nav-item a:hover {
color: #33eeff;
}
/*====== humburger Icon ====*/
.menu-btn {
display: none;
}
.menu-icon {
display: none;
cursor: pointer;
}
.menu-icon .navicon {
background-color: #FFFFFF;
width: 25px;
height: 3px;
display: block;
margin: 5px 0;
transition: all 0.3s ease; /* Smooth transition for animation */
}
/* Cross (X) Icon
.menu-icon.cross .navicon:nth-child(1) {
transform: rotate(45deg);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(45deg);
}
.menu-icon.cross .navicon:nth-child(2) {
opacity: 0; /* Hide the middle line */
/*}
.menu-icon.cross .navicon:nth-child(3) {
transform: rotate(-45deg);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(-45deg);
}*/
/*===== Responsive: Show humburger menu on moble =====*/
@media (max-width: 480px) {
header div {
flex-direction: row-reverse;
}
.menu-icon {
display: block;
order: 1;
}
.nav {
display: none;
flex-direction: column;
position: absolute;
top: 90px;
right: 0;
width: 140px;
}
.nav-item {
margin: 20px 0;
}
/* Show menu when checkbox is checked */
.menu-btn:checked ~ .navbar-menu .nav {
display: flex;
}
}
/*==== media for when screen is 1000px ====*/
@media (max-width: 1000px) {
.nav-item a:hover {
color: #FF6565; /* Change color when centered */
}
}
/*===== Main heading part ======*/
.hero {
height: 45vh;
text-align: center;
color: #FF6565;
margin-top: 5vh;
}
.hero h2 {
margin-bottom: 0;
margin-top: 30vh;
color: #FFFFFF;
font-size: 30px;
}
.hero p {
text-align: center;
padding: 5px;
font-size: 16px;
margin-bottom: 40px;
color: #FFFFFF;
}
.paragraph {
font-size: 16px;
color: #FFFFFF;
width: 700px;
font-weight: normal;
margin: 0 auto;
margin-top: 2rem;
line-height: 26px;
}
/* Media query for screens 480px or less */
@media (max-width: 480px) {
.paragraph {
width: auto;
}
}
.hero button {
color: #FFFFFF;
background: #FF6565;
font-size: 14px;
font-weight: 510;
border-radius: 20px;
border: 0;
padding: 15px 25px;
box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
cursor: pointer;
text-align: center;
}
.hero button:hover:active {
background: #FF3333;
box-shadow: inset 2px 2px 2px rgba(0, 0, 0, 0.3);
opacity: 0.9;
}