-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
421 lines (357 loc) · 8.25 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
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
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Import VT323 font */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
/* Body styles */
body {
font-family: 'VT323', monospace; /* Readable retro font */
background: url('https://example.com/your-game-background.png') repeat; /* Game-themed background image */
color: #333;
line-height: 1.6;
margin: 0;
}
/* Dark mode */
body.dark-mode {
background: url('https://example.com/your-dark-game-background.png') repeat; /* Dark mode background */
color: #fff;
}
/* Header styles */
header {
background-color: #4caf50; /* Bright green header */
padding: 15px 0;
text-align: center;
position: fixed;
width: 100%;
top: 0;
left: 0;
z-index: 1000;
border-bottom: 5px solid #333; /* Game-inspired border */
}
/* Navigation styles */
nav {
display: flex;
justify-content: center;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap; /* Allow wrapping if needed */
justify-content: center; /* Center items horizontally */
}
nav ul li {
margin-right: 10px;
}
nav ul li a {
text-decoration: none;
color: #fff;
padding: 12px 20px;
background: #333; /* Dark button background */
border: 3px solid #fff; /* White border for a game-like effect */
transition: background-color 0.3s, transform 0.3s;
display: inline-flex; /* Ensure text and icon are inline */
align-items: center; /* Vertically center text and icons */
}
nav ul li a:hover {
background-color: #555;
transform: scale(1.1); /* Slightly enlarge on hover */
border-color: #4caf50; /* Highlight border color */
}
/* Section styles */
section {
padding: 20px;
margin: 100px auto; /* Margin adjusted for fixed header */
max-width: 900px;
background-color: #fff;
border-radius: 12px; /* Rounded corners for a softer look */
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
color: #333;
position: relative;
}
/* Dark mode for sections */
body.dark-mode section {
background-color: #444;
color: #fff;
}
/* About section styles */
#about {
text-align: center;
}
.profile-pic {
width: 200px; /* Increased size for desktop view */
height: 200px; /* Increased size for desktop view */
border-radius: 50%;
border: 5px solid #4caf50; /* Green border */
margin-bottom: 15px;
}
/* Media queries for mobile responsiveness */
@media (max-width: 768px) {
.profile-pic {
width: 250px; /* Increased size for mobile view */
height: 250px; /* Increased size for mobile view */
}
}
.button {
display: inline-block;
background-color: #4caf50; /* Game-inspired button background */
color: white;
padding: 12px 25px;
text-align: center;
text-decoration: none;
border-radius: 8px;
margin-top: 15px;
border: 3px solid #333; /* Border to match the theme */
transition: background-color 0.3s, transform 0.3s;
}
.button:hover {
background-color: #45a049; /* Slightly darker green */
transform: scale(1.1); /* Slightly enlarge on hover */
}
.social-button {
display: inline-block;
background-color: #3b5998;
color: white;
padding: 12px 25px;
text-align: center;
text-decoration: none;
border-radius: 8px;
margin-top: 15px;
margin-left: 10px;
border: 3px solid #333;
transition: background-color 0.3s, transform 0.3s;
}
.social-button:hover {
background-color: #2d4474;
transform: scale(1.1);
}
/* Experience section styles */
#experience {
text-align: center;
}
.experience-timeline {
display: flex;
flex-direction: column;
align-items: center;
}
.experience-item {
width: 100%;
max-width: 600px;
background-color: #f9f9f9;
border-radius: 12px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
margin: 15px 0;
padding: 20px;
border: 3px solid #333; /* Border to match the theme */
}
.experience-content {
text-align: left;
}
.experience-content h3 {
margin-bottom: 10px;
}
.experience-content p {
color: #666;
margin-bottom: 15px;
}
.experience-content ul {
padding-left: 20px;
}
.experience-content ul li {
margin-bottom: 10px;
}
/* Projects section styles */
#projects {
text-align: center;
}
.projects-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 15px;
justify-items: center;
align-items: start;
}
.project-card {
background-color: #fff;
border-radius: 12px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
overflow: hidden;
transition: transform 0.3s ease-in-out;
position: relative;
border: 3px solid #333; /* Border to match the theme */
}
.project-card:hover {
transform: translateY(-10px); /* Enhance hover effect */
}
.project-front {
padding: 20px;
text-align: center;
}
.project-front img {
max-width: 100%;
height: auto;
border-radius: 12px;
border: 3px solid #4caf50; /* Green border */
margin-bottom: 15px;
}
.project-info h3 {
margin-bottom: 10px;
}
.project-back {
padding: 20px;
background-color: #f9f9f9;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
position: absolute;
top: 0;
left: 0;
width: 100%;
transform: translateY(100%);
transition: transform 0.3s ease-in-out;
border: 3px solid #333;
}
.project-back p {
color: #666;
margin-bottom: 15px;
}
.project-card:hover .project-back {
transform: translateY(0);
}
.project-back a {
display: block;
text-align: center;
background-color: #4caf50;
color: white;
padding: 12px;
border-radius: 8px;
text-decoration: none;
margin-top: auto;
border: 3px solid #333;
transition: background-color 0.3s, transform 0.3s;
}
.project-back a:hover {
background-color: #45a049;
transform: scale(1.1);
}
/* Contact section styles */
#contact {
text-align: center;
}
#contact ul {
list-style-type: none;
padding: 0;
}
#contact ul li {
margin-bottom: 15px;
}
#contact ul li a {
color: #007BFF;
text-decoration: none;
transition: color 0.3s;
border: 2px dashed #007BFF; /* Dotted border for links */
padding: 5px;
border-radius: 5px;
}
#contact ul li a:hover {
color: #0056b3;
border-color: #0056b3; /* Change border color on hover */
}
/* Skills section styles */
#skills {
text-align: center;
}
.chart-container {
max-width: 600px;
margin: 0 auto;
}
/* Modal styles */
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 2px solid #4caf50; /* Border to match the theme */
width: 80%;
max-width: 500px;
border-radius: 12px;
color: #333;
}
.modal-content h2 {
margin-top: 0;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
/* Dark mode for modal */
body.dark-mode .modal-content {
background-color: #555;
color: #fff;
}
/* Media queries for mobile responsiveness */
@media (max-width: 768px) {
header {
padding: 10px 0;
}
nav ul {
flex-direction: row; /* Ensure horizontal layout */
flex-wrap: wrap; /* Allow wrapping if needed */
justify-content: center; /* Center items horizontally */
}
nav ul li {
margin-bottom: 0; /* Remove bottom margin */
margin-right: 10px; /* Maintain horizontal spacing */
}
nav ul li a {
font-size: 14px;
padding: 10px 15px;
}
.profile-pic {
width: 100px;
height: 100px;
}
.button, .social-button, .project-back a {
font-size: 14px;
padding: 10px;
}
.experience-item, .project-card {
width: 100%;
}
}
@media (max-width: 480px) {
nav ul li a {
font-size: 12px;
padding: 8px 12px;
}
.profile-pic {
width: 80px;
height: 80px;
}
.button, .social-button, .project-back a {
font-size: 12px;
padding: 8px;
}
}