-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
270 lines (232 loc) · 4.62 KB
/
styles.css
File metadata and controls
270 lines (232 loc) · 4.62 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
/* Header styles */
header {
background-color: #4CAF50;
color: white;
padding: 20px 10px;
text-align: center;
font-size: 1.5rem;
font-weight: bold;
}
/* Basic styles for the body */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f9;
color: #333;
}
.hidden {
display: none;
}
.hidden.active {
display: block;
}
/* Navigation bar styles */
nav {
background-color: #333;
overflow: hidden;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
}
nav ul li {
flex: 1;
}
nav ul li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
nav ul li a:hover {
background-color: #575757;
}
/* About Me section styles */
.about-me {
text-align: center;
font-size: 1.2rem;
line-height: 1.6;
margin: 20px auto;
max-width: 800px;
padding: 10px;
}
.projects {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
background-color: #f4f4f4;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 15px;
width: 90%;
max-width: 300px;
text-align: center;
margin: 0 auto;
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}
.projects:hover {
transform: translateY(-5px); /* Slight lift on hover */
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}
.projects h3 {
font-size: 1.2rem;
margin-bottom: 10px;
color: #333;
}
.projects p {
font-size: 1rem;
color: #555;
line-height: 1.5;
margin-bottom: 15px;
}
.projects a {
display: inline-block;
padding: 10px 15px;
background-color: #4CAF50;
color: white;
text-decoration: none;
border-radius: 4px;
font-size: 1rem;
font-weight: bold;
transition: background-color 0.3s ease;
}
.projects a:hover {
background-color: #45a049;
}
.projects img {
max-width: 100%;
height: auto;
border-radius: 4px;
margin-bottom: 10px;
max-height: 150px; /* Limit the height to fit within the card */
object-fit: cover; /* Ensure the image scales proportionally */
}
/* Skills section styles */
.skills {
text-align: center;
}
.skills ul {
list-style: none;
padding: 0;
margin: 20px auto;
max-width: 600px;
}
.skills li {
position: relative;
padding-left: 30px;
margin-bottom: 10px;
font-size: 1rem;
text-align: left; /* Align text within the list items */
display: inline-block; /* Center the list items */
width: 100%; /* Ensure proper alignment */
}
.skills li::before {
content: "✔";
position: absolute;
left: 0;
color: #4CAF50;
font-size: 1.2rem;
}
/* Contact section styles */
.contact {
background-color: #ffffff;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 20px;
max-width: 600px;
margin: 20px auto;
}
.contact h2 {
text-align: center;
font-size: 1.5rem;
margin-bottom: 15px;
color: #333;
}
.contact label {
display: block;
font-size: 1rem;
margin-bottom: 5px;
color: #555;
}
.contact input,
.contact textarea {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1rem;
font-family: Arial, sans-serif;
}
.contact textarea {
resize: vertical;
min-height: 100px;
}
.contact button {
display: block;
width: 100%;
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
font-weight: bold;
}
.contact button:hover {
background-color: #45a049;
}
/* Media query for tablets (screen width 600px to 900px) */
@media (max-width: 900px) and (min-width: 600px) {
header {
font-size: 1.2rem;
padding: 15px 8px;
}
nav ul li a {
padding: 12px 14px;
}
.about-me {
font-size: 1rem;
padding: 8px;
}
.projects {
width: 250px;
}
.contact {
padding: 15px;
}
}
/* Media query for mobile devices (screen width less than 600px) */
@media (max-width: 599px) {
header {
font-size: 1rem;
padding: 10px 5px;
}
nav ul {
flex-direction: column;
}
nav ul li {
flex: none;
}
nav ul li a {
padding: 10px 12px;
}
.about-me {
font-size: 0.9rem;
padding: 5px;
}
.projects {
width: 100%;
}
.contact {
padding: 10px;
}
}