-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
244 lines (192 loc) · 6.05 KB
/
styles.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
/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Styling for the header */
.header {
display: flex; /* Enables Flexbox */
justify-content: space-between; /* Spaces out the logo and the nav bar */
align-items: center; /* Vertically centers items in the header */
background-color: #ffffff;
padding: 10px 20px; /* Adjusted padding for smaller screens */
position: sticky;
top: 0;
z-index: 1000;
}
/* Logo style */
.header img {
height: 70px;
}
.typing::after {
content: '|';
opacity: 1;
animation: blink 0.7s infinite;
}
@keyframes blink {
50% {
opacity: 0;
}
}
/* Navigation bar styling */
nav ul {
margin-top: 10px;
list-style-type: none;
display: flex;
flex-wrap: wrap; /* Allows the nav items to wrap on smaller screens */
}
nav ul li {
margin: 10px 15px; /* Adjusted for better spacing on small screens */
}
/* Navigation bar styling */
nav ul li a {
text-decoration: none; /* Removes underline from links by default */
color: #507bb3; /* Sets the default text color */
font-size: 20px; /* Adjusts the font size of the navigation text */
transition: color 0.3s ease, text-decoration 0.3s ease; /* Smooth transition for color and text-decoration */
}
nav ul li a:hover {
text-decoration: underline; /* Adds underline on hover */
/* Optional: Change color on hover to enhance the effect */
color: #D90707; /* Example: Changes the link color on hover */
}
nav ul li a.highlight {
background-color: white;
color: #D90707;
border: 2px solid #D90707;
padding: 10px 20px;
cursor: pointer;
transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
}
nav ul li a.highlight:hover {
background-color: #D90707;
color: white;
}
/* Basic styling for main content */
body {
padding-top: 40px;
font-family: 'Newsreader', sans-serif;
line-height: 1.6;
padding: 20px;
}
h1 {
color: #507bb3;
margin: 20px 0; /* Uniform margin for h1 and h2 */
font-size: 2.5rem; /* Responsive font size */
line-height: 1.2;
text-align: right; /* Centered text for all screens */
}
h2 {
margin-top: 20px;
color: #507bb3;
margin: 20px 0; /* Uniform margin for h1 and h2 */
font-size: 1.75rem; /* Responsive font size */
text-align: center; /* Centered text for all screens */
}
p, li {
color: #507bb3;
margin: 30px auto; /* Centered margin */
padding: 0 15px; /* Padding on smaller screens */
text-align: justify; /* Improved readability */
}
/* Text and Image Container */
.text-image-container {
display: flex;
flex-direction: column; /* Stacks elements vertically on smaller screens */
text-align: right; /* Centers the items horizontally */
justify-content: center; /* Centers the items vertically for when flex-direction is row */
margin-bottom: 20px;
}
.right-image {
width: 80%; /* Adjust based on your preference */
max-width: 400px; /* Keeps image size reasonable */
margin: 20px 0; /* Adds space above and below the image */
align-self: center; /* This ensures the image itself is centered in the flex container */
}
/* Responsive Design for larger screens */
@media (min-width: 768px) {
.text-image-container {
flex-direction: row; /* Lays out the container’s items in a row */
align-items: center; /* Keeps items aligned in the center vertically */
justify-content: space-evenly; /* Spaces out the logo and the nav bar */
}
.right-image {
margin-left: 10px; /* Adjust margin as needed for spacing on larger screens */
margin-top: 100px;
margin-bottom: 100px;
margin-right: 300px;
size-adjust: 300%;
}
p, li {
padding: 0 50px; /* Increased padding on larger screens */
}
nav ul li {
margin-left: 20px;
margin-right: 20px;
}
h1 {
text-align: right; /* Right-aligned titles for larger screens */
margin-left: 15%;
}
h2 {
margin-top: 70px;
margin-bottom: 70px;
text-align: left; /* Right-aligned titles for larger screens */
margin-left: 7%;
}
h4 {
text-align: center;
}
}
.email-button {
display: inline-block;
padding: 10px 200px;
background-color: white;
color: #D90707;
border: 2px solid #D90707;
text-decoration: none;
font-weight: bold;
transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}
.email-button:hover {
background-color: #507bb3;
color: white;
}
.project-container {
display: flex; /* Enables Flexbox layout */
/* justify-content: center; Centers the items horizontally */
align-items: center; /* Centers the items vertically (if needed) */
flex-wrap: wrap; /* Allows items to wrap in smaller screens */
gap: 40px; /* Adds space between the items */
border: 3px solid transparent; /* Transparent border to avoid shifting on hover */
justify-content: space-evenly; /* Spaces out the logo and the nav bar */
transition: border-color 0.3s ease; /* Smooth transition for the border color */
}
.project-link:hover {
border-color: #507bb3; /* Changes border color on hover */
}
.project-container img {
display: block; /* Removes bottom space/margin under images */
max-width: 100%; /* Ensures images are responsive */
height: auto; /* Maintains aspect ratio */
}
/* Footer styling */
footer {
background-color: #507bb3; /* Adjust to match your design */
padding: 40px 20px;
margin-top: 50px;
display: flex;
justify-content: center; /* Centers the footer content horizontally */
align-items: center; /* Centers the footer content vertically */
}
.footer-content a {
display: inline-block; /* Aligns images next to each other */
margin: 0 10px; /* Adds some space between the images */
}
.footer-content img {
transition: transform 0.3s ease; /* Smooth transition for a zoom effect */
}
.footer-content img:hover {
transform: scale(1.1); /* Slightly enlarges the image on hover */
}