-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.css
92 lines (80 loc) · 1.66 KB
/
app.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
body {
--bg-color-light: #f3f3f3;
--text-color-light: #333;
--bg-color-dark: #222;
--text-color-dark: #fff;
background-color: var(--bg-color-light);
color: var(--text-color-light);
transition: background-color 0.3s ease, color 0.3s ease;
}
body.dark-mode {
background-color: var(--bg-color-dark);
color: var(--text-color-dark);
}
.container {
padding: 40px;
margin: 0 auto;
}
h1 {
text-transform: uppercase;
text-align: center;
font-size: 54px;
color: #ff6f61;
margin-bottom: 20px;
}
#pokedex {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
grid-gap: 20px;
padding-inline-start: 0;
justify-content: center;
}
.card {
list-style: none;
padding: 20px;
background-color: #f5f5f5;
color: #333;
text-align: center;
border-radius: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
border: 2px solid #ff6f61; /* Border color for the Pokemon card */
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}
.card-title {
text-transform: uppercase;
margin-bottom: 10px;
font-size: 24px;
font-weight: bold;
color: #ff6f61;
}
.card-subtitle {
margin-top: 5px;
font-weight: lighter;
color: #777;
}
.card-image {
height: 150px;
width: auto;
}
.card-image img {
max-width: 100%;
max-height: 100%;
}
@keyframes bounce {
20% {
transform: translateY(-6px);
}
40% {
transform: translateY(0px);
}
80% {
transform: translateY(-2px);
}
100% {
transform: translateY(0);
}
}