-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
165 lines (137 loc) · 2.59 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
/* General styling */
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
background-color: #f0f2f5;
color: #333;
backdrop-filter: blur(10px);
animation: fadeIn 1.5s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
header {
background-color: rgba(0, 98, 204, 0.5);
color: #fff;
padding: 2em 0;
text-align: center;
backdrop-filter: blur(10px);
animation: slideDown 1s ease-out;
}
@keyframes slideDown {
from {
transform: translateY(-100%);
}
to {
transform: translateY(0);
}
}
nav ul {
padding: 20px 20px;
/* Adjusted top and bottom padding for taller navbar */
list-style: none;
display: flex;
justify-content: center;
background-color: rgba(255, 255, 255, 0.5);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-top: 0;
backdrop-filter: blur(10px);
animation: fadeIn 2s ease-out;
gap: 20px;
}
section {
padding: 40px;
margin: 20px auto;
max-width: 800px;
background-color: rgba(255, 255, 255, 0.5);
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
footer {
text-align: center;
padding: 20px;
background-color: rgba(240, 242, 245, 0.5);
color: #333;
border-top: 1px solid #eaeaea;
backdrop-filter: blur(10px);
animation: fadeIn 2s ease-out;
}
nav a {
text-decoration: none;
color: black;
/* Changed to make nav text black */
}
nav a:hover {
color: #0062cc;
animation: colorPulse 0.5s ease-out infinite;
}
nav a:visited {
color: black;
}
@keyframes colorPulse {
0% {
color: #333;
}
50% {
color: #0062cc;
}
100% {
color: #333;
}
}
/* Responsive design */
@media screen and (max-width: 1024px) {
header h1,
header p {
font-size: 1.5rem;
}
section {
padding: 20px;
margin: 10px auto;
width: auto;
/* Changed from fixed width to auto */
}
}
@media screen and (max-width: 480px) {
header h1,
header p {
font-size: 1rem;
}
nav ul {
flex-direction: column;
align-items: center;
}
nav ul li {
margin: 5px 0;
}
section {
padding: 15px;
margin: 5px auto;
width: auto;
/* Changed from fixed width to auto */
}
h2 {
font-size: 1.5rem;
}
footer {
font-size: 0.8rem;
}
}