-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
282 lines (238 loc) · 5.04 KB
/
style.css
File metadata and controls
282 lines (238 loc) · 5.04 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
/* General Reset */
body {
margin: 0;
font-family: 'Poppins', 'Roboto', sans-serif;
line-height: 1.6;
background-color: #f4f4f4;
color: #333;
}
body.dark-mode {
background-color: #121212; /* Dark background */
color: #d1d1d1; /* Slightly lighter text color for readability */
}
/* Headings */
h1, h2, h3 {
margin: 0;
color: #333;
}
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
color: #4aa3ff; /* Accent color for headings in dark mode */
}
a {
text-decoration: none;
color: inherit;
}
a:hover {
color: #3498db; /* Accent color for links */
}
body.dark-mode a:hover {
color: #4aa3ff; /* Brighter blue for hover in dark mode */
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Topbar */
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: #3498db;
color: white;
}
body.dark-mode .topbar {
background-color: #1e1e1e; /* Dark mode topbar */
color: #4aa3ff; /* Accent color for text in dark mode */
}
.topbar .logo h1 {
font-size: 24px;
}
.topbar .right button {
background-color: white;
color: #3498db;
border: none;
padding: 10px 15px;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease, color 0.3s ease;
}
body.dark-mode .topbar .right button {
background-color: #444;
color: #4aa3ff; /* Brighter blue for buttons in dark mode */
}
.topbar .right button:hover {
background-color: #f4f4f4;
}
body.dark-mode .topbar .right button:hover {
background-color: #555;
}
/* Projects Section */
.projects {
display: grid;
gap: 20px;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
justify-content: center;
padding: 20px;
}
.project {
background-color: #3498db;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
color: white;
text-align: center;
}
body.dark-mode .project {
background-color: #2a2a2a; /* Slightly lighter dark background */
color: #d1d1d1;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
border: 1px solid #4aa3ff; /* Add a blue border for accents */
}
.project h3 {
margin-bottom: 10px;
font-size: 20px;
}
.project p {
margin-bottom: 15px;
font-size: 14px;
}
a.button {
background-color: white;
color: #3498db;
padding: 10px 15px;
border-radius: 5px;
font-size: 14px;
font-weight: bold;
transition: background-color 0.3s ease, color 0.3s ease;
}
body.dark-mode a.button {
background-color: #444;
color: #4aa3ff; /* Brighter blue for buttons in dark mode */
}
a.button:hover {
background-color: #f4f4f4;
color: #333;
}
body.dark-mode a.button:hover {
background-color: #555;
color: #4aa3ff;
}
.project:hover {
transform: translateY(-10px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
body.dark-mode .project:hover {
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}
/* About Section */
.about {
background-color: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-top: 20px;
}
body.dark-mode .about {
background-color: #1e1e1e; /* Dark mode about section */
color: #d1d1d1;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
border-left: 4px solid #4aa3ff; /* Add a blue accent border */
}
/* Footer */
footer {
background-color: #333;
color: white;
padding: 20px;
text-align: center;
}
body.dark-mode footer {
background-color: #1e1e1e; /* Dark mode footer */
color: #d1d1d1;
}
footer .footer-content {
display: flex;
flex-direction: column;
align-items: center;
}
footer .socials {
margin-bottom: 10px;
}
footer .socials a {
margin: 0 10px;
color: white;
transition: color 0.3s ease;
}
body.dark-mode footer .socials a {
color: #4aa3ff; /* Brighter blue for social links in dark mode */
}
footer .socials a:hover {
color: #3498db;
}
body.dark-mode footer .socials a:hover {
color: #4aa3ff;
}
footer p {
font-size: 14px;
margin: 0;
}
a.unstyled {
font-size: inherit;
color: inherit;
text-decoration: inherit;
}
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
display: none;
justify-content: center;
align-items: center;
animation: fadeIn 0.3s ease-in-out;
z-index: 1000;
}
.modal-content {
background: #1e1e1e;
color: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 0 20px rgba(0,0,0,0.4);
max-width: 500px;
width: 90%;
position: relative;
animation: slideUp 0.3s ease;
}
.close-button {
position: absolute;
top: 10px;
right: 15px;
font-size: 24px;
cursor: pointer;
color: #aaa;
transition: color 0.2s;
}
.close-button:hover {
color: #fff;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from { transform: translateY(30px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
@keyframes darkMode {
from { background-color: #fff;}
to { background-color: #121212; color: #d1d1d1}
}