-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
435 lines (369 loc) · 9.03 KB
/
index.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
422
423
424
425
426
427
428
429
430
431
432
433
434
435
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
line-height: 1.8;
overflow-x: hidden; /* Prevent horizontal scrolling */
}
header {
background-color: #2c3e50;
color: white;
text-align: center;
padding: 0.5em 0;
}
header h3 {
margin: 0;
font-size: 2vw; /* Responsive font size */
font-family: "Roboto Mono", monospace;
font-optical-sizing: auto;
font-weight: 100;
font-style: normal;
}
header h1 {
margin: 0;
font-size: 5vw; /* Responsive font size */
font-family: "Roboto Mono", monospace;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
}
nav {
background-color: #34495e;
text-align: center;
border: 2px solid #555; /* Border for the navbar */
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
}
nav ul li {
display: inline;
font-size: 2vw; /* Responsive font size */
font-family: "Roboto Mono", monospace;
font-optical-sizing: auto;
font-weight: 100;
font-style: normal;
border: 2px solid white; /* Border for the navbar */
}
nav ul li a {
display: inline-block;
padding: 10px 20px;
text-decoration: none;
color: white;
transition: color 0.3s;
}
nav ul li a:hover {
color: #ffd700;
}
section h1 {
text-align: center;
}
#about,
#projects,
#contact {
background-color: #d6d6d6cd;
margin-bottom: 80px;
padding: 10px; /* Reduced padding for better fit */
margin: 10px; /* Reduced margin for better fit */
}
#about h1 {
font-size: 50px;
font-family: "Montserrat", sans-serif;
font-optical-sizing: auto;
font-weight: 100;
font-style: normal;
}
/*About Me styling*/
.about-container {
display: flex;
align-items: center;
flex-wrap: wrap; /* Allow items to wrap on smaller screens */
justify-content: space-evenly;
}
@keyframes glow {
0% {
box-shadow: 0 0 5px white, 0 0 10px white, 0 0 15px white, 0 0 20px white,
0 0 25px white;
}
100% {
box-shadow: 0 0 10px #4a4a4a, 0 0 20px #4a4a4a, 0 0 30px #4a4a4a,
0 0 40px #4a4a4a, 0 0 50px #4a4a4a;
}
}
.about-container img {
max-width: 100%;
height: auto; /* Maintain aspect ratio */
border-radius: 50%;
order: 2;
animation: glow 1.5s infinite alternate;
}
#about p {
font-family: "Montserrat", sans-serif;
font-optical-sizing: auto;
font-weight: 100;
font-style: normal;
font-size: 25px;
}
.about-text {
max-width: 600px;
order: 1;
}
/*Footer styling*/
footer {
background-color: #2c3e50;
color: white;
text-align: center;
position: relative;
width: 100%;
bottom: 0;
padding: 1em 0;
}
footer a {
color: #ffc107;
text-decoration: none;
margin: 0 5px;
}
footer a:hover {
text-decoration: underline;
}
footer p {
margin: 0;
font-size: 20px;
font-family: "Roboto Mono", monospace;
font-optical-sizing: auto;
font-weight: 100;
font-style: normal;
}
/*Projects styling*/
#projects h1 {
font-size: 50px;
font-family: "Montserrat", sans-serif;
font-optical-sizing: auto;
font-weight: 100;
font-style: normal;
}
.project {
margin-bottom: 30px; /* Space between projects */
display: flex;
justify-content: center; /* Center horizontally */
align-items: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
padding: 20px; /* Adjust as needed */
border: 2px solid #000; /* Your preferred border style */
border-radius: 10px; /* Rounded corners for aesthetics */
box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
max-width: 100%; /* Makes sure the card doesn't exceed container */
min-height: 100px; /* Prevents the cards from being too small */
/* Initial Embossed Effect */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
/* Outer Shadow */ inset 0 4px 8px rgba(255, 255, 255, 0.1); /* Inner Embossed Shadow */
}
.project.hover-effect {
transform: translateY(-5px); /* Slight upward lift */
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4),
/* Deeper outer shadow on hover */ inset 0 8px 16px rgba(255, 255, 255, 0.2); /* Stronger inner embossed effect */
/* Adding a glow to make it stand out more */
border: 2px solid rgba(255, 255, 255, 0.3);
outline: solid;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.3); /* Soft glow around the card */
}
/* Flexibility for content size */
.project p,
.project h3,
.project img {
width: 100%;
max-width: 100%;
text-align: center; /* Optional: Keep text centered */
}
/* Optional: Adjust margins between content inside */
.project h3 {
margin: 10px 0;
width: 100%;
max-width: 100%;
text-align: center; /* Optional: Center text */
}
.project p {
font-family: "IBM Plex Mono", monospace;
font-size: 20px;
font-weight: 200;
font-style: normal;
margin: 0;
width: 100%;
max-width: 100%;
text-align: center; /* Optional: Center text */
}
.project h4 {
margin: 0;
font-size: 25px;
font-family: "Montserrat", sans-serif;
font-optical-sizing: auto;
font-weight: 600;
font-style: normal;
}
.project h2 {
font-family: "IBM Plex Mono", monospace;
font-weight: 800;
font-style: normal;
font-size: 3vw; /* This will make the font size responsive */
white-space: nowrap; /* Prevents text from breaking into multiple lines */
}
.centered-list {
display: inline-block; /* Make the list inline-block to center it */
text-align: left; /* Ensure list items are left-aligned */
}
.project ul li {
list-style-type: disc;
}
.project fieldset {
border: 1px solid #34495e;
padding: 10px;
width: 100%; /* Ensures fieldset takes full width */
box-sizing: border-box; /* Includes padding in the width */
border-radius: 10px;
overflow: hidden;
text-align: center;
}
legend h2 {
font-size: 25px;
padding-left: 20px;
padding-right: 20px;
}
legend {
font-weight: bold;
border: 1px solid #ccc;
border-radius: 10px;
background-color: #f9f9f9;
max-width: 100%;
box-sizing: border-box;
white-space: normal;
word-wrap: break-word; /* Ensure text wraps */
word-break: break-all;
overflow: hidden; /* Ensure long words break */
text-align: center;
}
/*Contact styling*/
#contact p {
text-align: center;
}
form {
display: flex;
flex-direction: column;
gap: 10px;
max-width: 600px;
margin: 0 auto;
margin-bottom: 30px;
}
form label {
font-weight: bold;
}
form input,
form textarea,
form button {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
width: 100%;
box-sizing: border-box;
}
form button {
background-color: #34495e;
color: white;
border: none;
cursor: pointer;
transition: background-color 0.3s;
}
form button:hover {
background-color: #2c3e50;
}
@media (max-width: 768px) {
header h3 {
font-size: 4vw; /* Responsive font size */
}
header h1 {
font-size: 8vw; /* Responsive font size */
}
nav ul {
flex-direction: column; /* Stack items vertically */
padding: 0; /* No padding on nav */
}
nav ul li {
padding: 5px 0; /* Adjust padding */
font-size: 4vw; /* Responsive font size */
}
footer {
padding: 0.5em 0; /* Reduce padding on smaller screens */
}
footer p {
font-size: 4vw; /* Responsive font size */
}
footer a {
margin: 0 3px; /* Reduce margin for links */
font-size: 4vw; /* Responsive font size */
}
/*Contact styling*/
#contact {
padding: 10px;
margin: 10px;
margin-bottom: 50px;
}
form {
padding: 10px;
}
form input,
form textarea,
form button {
padding: 10px;
}
/*About Me styling*/
.about-container {
flex-direction: column; /* Stack items vertically on small screens */
text-align: center;
}
.about-container img {
margin-left: 0; /* Remove left margin */
margin-top: 20px; /* Add top margin */
margin-bottom: 20px;
order: 1; /* Image first on small screens */
}
.about-text {
order: 2; /* Text second on small screens */
}
#about,
#projects,
#contact {
padding: 10px; /* Further reduce padding for smaller screens */
margin: 10px; /* Further reduce margin for smaller screens */
margin-bottom: 50px; /* Further reduce bottom margin */
}
section h1 {
font-size: 1.5em; /* Adjusted font size for smaller screens */
}
/*Projects styling*/
#projects h1 {
font-size: 50px;
font-family: "Montserrat", sans-serif;
font-optical-sizing: auto;
font-weight: 100;
font-style: normal;
}
.project h2 {
font-size: 5.5vw; /* This will make the font size responsive */
}
.project fieldset {
padding: 5px; /* Further reduced padding */
}
legend {
font-size: 1em;
padding: 5px;
word-break: break-all;
}
#projects {
padding: 20px;
margin: 20px;
margin-bottom: 50px;
}
}