-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylesheet.css
More file actions
316 lines (278 loc) · 5.63 KB
/
stylesheet.css
File metadata and controls
316 lines (278 loc) · 5.63 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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text:ital,wght@0,300..700;1,300..700&display=swap");
/* Reset some default browser styling */
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: "Red Hat Text", Arial, sans-serif;
font-weight: 500;
}
/* Nav bar styling */
.navbar {
position: sticky;
top: 0;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #1a1a1a;
color: white;
padding: 15px 20px;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}
.navbar nav a:active {
background-color: rgb(249, 93, 3);
transform: scale(0.98);
}
.navbar nav a:focus {
outline: 2px solid #ffffff;
background-color: rgba(255, 255, 255, 0.2);
}
.navbar .logo {
width: 40px;
height: auto;
margin-right: 20px;
}
.navbar nav {
flex-grow: 1;
}
.navbar nav ul {
list-style-type: none;
display: flex;
gap: 20px;
margin: 0;
}
.navbar nav a {
color: white;
text-decoration: none;
font-size: 18px;
padding: 8px 12px;
}
.navbar nav a:hover {
background-color: hsl(23, 100%, 48%); /* Accent color */
border-radius: 5px;
}
.navbar nav ul li:not(:last-child) {
border-right: 1px solid rgba(255, 255, 255, 0.3);
padding-right: 15px;
}
/* Content */
.content {
height: auto;
padding: 20px;
background-color: hsl(
23,
100%,
48%
); /* good to keep the Accent color and background color the same */
}
.About-wrapper {
background-color: rgba(0, 0, 0, 0.4);
color: rgb(242, 235, 235);
padding: 20px;
margin-bottom: 20px;
border-radius: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.About-wrapper h1::before {
content: "★ ";
color: rgb(249, 93, 3);
}
.About-wrapper h1 {
text-align: center;
text-decoration: underline;
text-decoration-color: rgb(249, 93, 3);
color: #1a1a1a;
}
.About-wrapper h1::after {
content: " ★";
color: rgb(249, 93, 3);
}
.About-wrapper p {
font-size: 16px;
line-height: 1.5;
text-align: center;
}
.content-wrapper-Goku,
.content-wrapper-Vegeta,
.content-wrapper-Gohan,
.content-wrapper-Piccolo,
.content-wrapper-Frieza {
display: flex;
align-items: flex-start;
gap: 20px;
padding: 40px;
}
.content-wrapper-Goku > :first-child {
border: 2px solid rgb(249, 93, 3);
padding: 10px;
}
.content-wrapper-Frieza > :last-child {
border: 2px solid rgb(249, 93, 3);
padding: 10px;
}
.reverse-layout {
flex-direction: row-reverse;
}
/*Text content*/
.text-content:hover {
background-color: rgba(0, 0, 0, 0.5);
transform: scale(1.02);
}
.text-content {
flex: 1;
background-color: rgba(0, 0, 0, 0.3);
color: white;
padding: 20px;
margin-bottom: 20px;
border-radius: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.text-content h2 {
font-size: 24px;
color: rgb(21, 21, 244);
font-weight: bold;
text-align: center;
margin-bottom: 10px;
text-decoration: underline;
}
.text-content p {
font-size: 16px;
line-height: 1.6;
text-align: left;
}
/*Image styling*/
.image-content-Goku img,
.image-content-Vegeta img,
.image-content-Frieza img {
max-width: 200px;
height: 250px;
border-radius: 8px;
}
.image-content-Gohan img {
max-width: 200px;
max-height: 250px;
border-radius: 8px;
}
.image-content-Piccolo img {
max-width: 200px;
max-height: 250px;
border-radius: 8px;
justify-content: center;
}
.mobile-image-content {
display: none;
}
/* Media query for mobile screens. */
@media (max-width: 600px) {
.navbar {
flex-direction: column;
padding: 10px;
}
.navbar nav ul {
flex-direction: row;
gap: 10px;
}
/* Tailor make style for mobile devices */
.content-wrapper-Goku,
.content-wrapper-Vegeta,
.content-wrapper-Gohan,
.content-wrapper-Piccolo,
.content-wrapper-Frieza {
flex-direction: column;
padding: 5px;
}
.text-content {
padding: 10px;
}
.image-content-Goku img,
.image-content-Vegeta img,
.image-content-Gohan img,
.image-content-Piccolo img,
.image-content-Frieza img {
display: none;
}
.mobile-image-content {
display: flex;
align-items: center;
justify-content: center;
}
.mobile-image-content img {
max-width: 200px;
height: 250px;
border-radius: 8px;
}
.footer-content {
flex-direction: column;
gap: 10px;
}
/* To get ride of right boarder for mobile*/
.navbar nav ul li:not(:last-child){
border-right: none;
padding-right: 0;
}
}
@media (max-width: 450px) {
/* Navbar adjustments */
.navbar {
flex-direction: column;
padding: 10px;
}
.navbar nav ul {
flex-direction: column;
gap: 5px;
}
/* Reduce font sizes */
.navbar nav a {
font-size: 16px;
padding: 6px 10px;
}
/* Make text-content sections fit better */
.text-content {
padding: 15px;
font-size: 14px;
line-height: 1.4;
}
/* Reduce padding for content sections */
.content-wrapper-Goku,
.content-wrapper-Vegeta,
.content-wrapper-Gohan,
.content-wrapper-Piccolo,
.content-wrapper-Frieza {
padding: 10px;
flex-direction: column; /* Stack image and text */
}
/* Scale images to fit smaller screens */
.image-content-Goku img,
.image-content-Vegeta img,
.image-content-Frieza img {
max-width: 100%;
height: auto;
}
.image-content-Gohan,
.image-content-Piccolo {
max-width: 100%;
height: auto;
display: flex;
justify-content: center;
align-items: center;
}
/* Adjust About section */
.About-wrapper {
padding: 15px;
font-size: 14px;
}
}
.footer {
background-color: #1a1a1a;
color: white;
padding: 20px;
}
.footer-content {
display: flex;
justify-content: center;
gap: 20px;
}