-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
195 lines (169 loc) · 4.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
/* Reset and Basic Styles */
body {
font-family: "Roboto", sans-serif;
margin: 0;
padding: 0;
background-color: #f8f9fa; /* Light gray background */
color: #333;
overflow-x: hidden; /* Hide horizontal scrollbar */
}
/* Custom Scrollbar Styles */
body::-webkit-scrollbar {
width: 12px; /* Width of the scrollbar */
}
body::-webkit-scrollbar-track {
background: #f1f1f1; /* Background color of the scrollbar track */
border-radius: 10px; /* Rounded corners for the track */
}
body::-webkit-scrollbar-thumb {
background-color: #212529; /* Color of the scrollbar thumb */
border-radius: 10px; /* Rounded corners for the thumb */
border: 3px solid #f1f1f1; /* Padding around the thumb for a better visual effect */
}
body::-webkit-scrollbar-thumb:hover {
background-color: #555; /* Color of the scrollbar thumb on hover */
}
/* Header Styling */
header {
background-color: #212529; /* Darker gray for header */
color: #fff;
padding: 20px 0;
text-align: center; /* Center align text */
position: relative;
background-image: url("https://cdn.buymeacoffee.com/uploads/cover_images/2024/12/HPazznqSOv8Xjs8LBZ4H5tJPBrUdNw3WOd48d1Vk.jpg"); /* Replace with your image */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
/* Container Styles */
.container {
max-width: 960px;
margin: 0 auto;
padding: 0 20px;
}
/* Heading Styles */
h1,
h2,
h3 {
text-align: center;
margin-bottom: 20px;
font-weight: 600;
}
h1 {
font-size: 2.5rem;
color: #fff; /* White text for title */
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a shadow for emphasis */
}
h2 {
font-size: 1.5rem;
color: #ffc107; /* Yellow color for subtitle */
margin-top: 10px; /* Space between title and subtitle */
}
/* Navigation Styles */
nav ul {
list-style: none;
padding: 0;
margin: 0;
text-align: center;
}
nav li {
display: inline-block;
margin: 0 10px;
}
nav a {
color: #fff;
text-decoration: none;
padding: 10px 15px;
border-radius: 5px;
transition: background-color 0.3s, transform 0.3s, color 0.3s; /* Added color transition */
}
nav a:hover {
background-color: #555;
transform: scale(1.1); /* Slightly enlarge on hover */
color: #ffc107; /* Change text color on hover */
}
/* Section Styles */
.section {
padding: 40px 0;
background-color: #fff; /* White background for sections */
border-bottom: 1px solid #ddd;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
position: relative;
transition: box-shadow 0.3s; /* Added box-shadow transition */
}
.section::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black overlay */
z-index: -1; /* Place it behind the content */
}
.section:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}
/* Footer Styles */
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px 0;
}
/* Responsive Design */
@media screen and (max-width: 768px) {
.container {
padding: 10px;
}
nav ul {
text-align: left;
}
nav li {
display: block;
margin: 10px 0;
}
}
.social-icons {
list-style: none;
padding: 0;
text-align: center;
}
.social-icons li {
display: inline-block;
margin-right: 15px; /* Adjust spacing between icons */
}
.social-icons li:last-child {
margin-right: 0; /* Remove margin from the last icon to avoid extra space */
}
.social-icons img {
width: 30px;
height: 30px;
transition: transform 0.3s ease-in-out;
}
.social-icons img:hover {
transform: scale(1.2); /* Increase size on hover */
}
.social-icons li {
position: relative;
}
.social-icons li a::after {
content: attr(title);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background-color: #333;
color: #fff;
padding: 5px;
border-radius: 4px;
font-size: 12px;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0.3s;
}
.social-icons li a:hover::after {
opacity: 1;
visibility: visible;
}