-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcourse.css
More file actions
247 lines (217 loc) · 4.9 KB
/
Copy pathcourse.css
File metadata and controls
247 lines (217 loc) · 4.9 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
/* General Reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
}
/* Color Palette */
:root {
--primary-light: #A6BBB6; /* Light Greenish */
--primary-dark: #487779; /* Teal Green */
--primary-accent: #85937D; /* Olive Green */
--text-light: #FFFFFF;
--text-dark: #233130; /* Dark Text */
}
/* Body Styling */
body {
background: linear-gradient(to bottom, var(--primary-light), var(--primary-accent)); /* Subtle gradient */
color: var(--text-dark);
line-height: 1.6;
font-size: 16px;
overflow-x: hidden;
}
/* Navigation Bar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background-color: var(--primary-dark);
color: var(--text-light);
position: sticky; /* Sticks to the top */
top: 0;
z-index: 1000;
animation: slideDown 0.5s ease-in-out;
}
@keyframes slideDown {
from {
transform: translateY(-100%);
}
to {
transform: translateY(0);
}
}
.logo {
display: flex;
align-items: center;
}
.logo i {
display: flex;
justify-content: center;
align-items: center;
width: 45px;
height: 45px;
background-color: var(--primary-light);
border-radius: 50%;
color: var(--primary-dark);
font-size: 1.5rem;
margin-right: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
}
.logo i:hover {
transform: scale(1.1); /* Interactive hover effect */
}
.logo span {
font-size: 1.5rem;
font-weight: bold;
color: var(--text-light);
}
.nav-links {
list-style: none;
display: flex;
}
.nav-links li {
margin: 0 15px;
}
.nav-links li a {
color: var(--text-light);
text-decoration: none;
font-size: 1rem;
font-weight: 500;
transition: color 0.3s ease, transform 0.3s ease;
}
.nav-links li a:hover,
.nav-links li a.active {
color: var(--primary-light);
transform: scale(1.1);
font-weight: 600;
text-shadow: 0 0 8px rgba(166, 187, 182, 0.5);
}
/* Main Content Styling */
.content {
max-width: 1300px;
margin: 80px auto;
padding: 30px;
background: rgba(255, 255, 255, 0.9); /* Slightly transparent background */
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
color: var(--text-dark);
animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
h1, h2 {
color: var(--primary-dark);
margin-bottom: 15px;
text-transform: capitalize;
text-shadow: 0 2px 5px rgba(72, 119, 121, 0.3); /* Subtle glow */
}
/* Bullet Points */
ul {
list-style: none;
margin-left: 20px;
padding: 0;
}
ul li {
margin-bottom: 10px;
font-size: 1rem;
line-height: 1.8;
position: relative;
padding-left: 25px;
animation: slideIn 0.5s ease-out;
}
@keyframes slideIn {
from {
transform: translateX(-20px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
ul li::before {
content: '•'; /* Custom bullet */
position: absolute;
left: 0;
color: var(--primary-accent);
font-size: 1.2rem;
line-height: 1.8;
}
a {
color: var(--primary-dark);
text-decoration: none;
transition: color 0.3s ease, text-shadow 0.3s ease;
}
a:hover {
text-decoration: underline;
color: var(--primary-accent);
text-shadow: 0 0 5px rgba(72, 119, 121, 0.5);
}
/* Footer */
footer {
text-align: center;
padding: 15px;
background: var(--primary-dark);
color: var(--text-light);
box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
bottom: 0;
width: 100%;
font-size: 0.9rem;
animation: fadeInUp 1s ease-in-out;
}
@keyframes fadeInUp {
from {
transform: translateY(100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* Buttons */
button {
background: var(--primary-accent);
color: var(--text-light);
border: none;
padding: 10px 20px;
border-radius: 8px;
font-size: 1rem;
cursor: pointer;
box-shadow: 0 4px 8px rgba(133, 147, 125, 0.3);
transition: background 0.3s ease, transform 0.3s ease;
}
button:hover {
background: var(--primary-dark);
transform: scale(1.05);
}
/* Media Query for Responsive Design */
@media (max-width: 768px) {
.nav-links {
flex-direction: column;
align-items: center;
}
.nav-links li {
margin: 10px 0;
}
.content {
margin: 15px;
padding: 20px;
}
h1, h2 {
font-size: 1.5rem;
text-align: center;
}
footer {
font-size: 0.8rem;
}
}