-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
238 lines (206 loc) · 3.44 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
color: #333;
line-height: 1.6;
background-color: #cfe8d5;
animation: fadeIn 1s;
}
.character-sections {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
@media (max-width: 768px) {
.character-sections {
flex-direction: column;
text-align: center;
}
.character-grid {
margin: 0 auto;
}
}
header {
background-color: #8dd1c2;
padding: 1rem;
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
}
header h1 {
margin-right: 1rem;
margin-top: 1rem; /* add some margin to the top */
}
header h2 {
margin-right: 1rem;
margin-top: 1rem; /* add some margin to the top */
}
header nav {
margin-left: auto;
}
nav {
display: flex;
flex-wrap: wrap;
}
nav a {
margin-right: 1rem;
text-decoration: none;
color: #333;
transition: color 0.3s ease;
}
nav a:hover {
color: #555;
}
main {
padding: 2rem;
}
.logo {
text-decoration: none;
}
.logo img {
max-width: 4rem;
max-height: 4rem;
}
.character-grid {
display: table;
margin: auto;
max-width: 100rem;
transition: all 0.3s ease;
}
.character-grid td {
display: table-cell;
text-align: center;
vertical-align: middle;
width: 25%; /* set each table cell to occupy 25% of the table width */
}
.character-grid a {
display: inline-block;
}
table {
border-collapse: collapse;
width: 100%;
margin: 20px 0;
border: 2px solid #333;
}
table th, table td {
padding: 10px;
border: 1px solid #ccc;
}
table th {
background-color: #333;
color: #fff;
}
.character-grid a {
display: flex;
justify-content: center;
align-items: center;
font-size: 2rem;
text-decoration: none;
color: black;
background-color: white;
border: 1px solid black;
border-radius: 50%;
width: 80px;
height: 80px;
transition: all 0.3s ease-in-out;
user-select: none;
}
@media screen and (max-width: 768px) {
.character-grid a {
width: 60px;
height: 60px;
font-size: 1.3rem;
}
}
@media screen and (max-width: 480px) {
.character-grid a {
width: 30px;
height: 30px;
font-size: 1rem;
}
}
.character-grid a:hover {
transform: scale(1.05);
background-color: #f2f2f2;
box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
}
a[data-char=""] {
visibility: hidden;
}
section {
margin-bottom: 2rem;
}
footer {
background-color: #8dd1c2;
text-align: center;
padding: 1rem;
}
.popup {
position: absolute;
background-color: #ffffff;
border: 1px solid #cccccc;
border-radius: 3px;
padding: 5px;
font-size: 14px;
font-weight: bold;
box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.3);
z-index: 999;
animation: fade-in 0.2s ease-out forwards;
}
.popup.fade-out {
animation: fade-out 0.2s ease-out forwards;
}
@keyframes fade-in {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fade-out {
from {
opacity: 1;
transform: translateY(0);
}
to {
opacity: 0;
transform: translateY(-10px);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.progress-bar {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 4px;
background-color: #00a7ff;
}
.progress-bar-animation {
animation: shrink 2s linear forwards;
}
@keyframes shrink {
0% {
width: 100%;
}
100% {
width: 0;
}
}