forked from PokeAPI/pokeapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
146 lines (129 loc) · 2.67 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
/* General Styling */
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 0;
background-color: #f7f7f7;
}
h1 {
font-family: 'Verdana', sans-serif;
font-size: 36px;
margin-top: 20px;
color: #ffcb05;
text-shadow: 2px 2px #2a75bb;
}
/* Container for Pokémon Cards */
#pokemon-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 20px;
padding: 20px;
justify-items: center;
}
/* Pokémon Card Styling */
.pokemon-card {
background-color: white;
border: 2px solid #ffcb05;
border-radius: 10px;
text-align: center;
padding: 10px;
width: 150px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
}
.pokemon-card:hover {
transform: scale(1.1);
}
/* Pokémon Image */
.pokemon-card img {
width: 100%;
height: auto;
border-bottom: 2px solid #ffcb05;
margin-bottom: 10px;
}
/* Pokémon Name */
.pokemon-card h3 {
font-size: 18px;
color: #2a75bb;
margin: 5px 0;
text-transform: uppercase;
}
/* Pokémon Details Section */
#pokemon-details {
margin: 20px auto;
padding: 15px;
border: 2px solid #ffcb05;
background: #ffffff;
display: none;
text-align: center;
max-width: 400px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-radius: 10px;
}
#pokemon-details img {
width: 150px;
height: auto;
margin-bottom: 10px;
}
#pokemon-details h2 {
margin: 10px 0;
color: #2a75bb;
text-transform: uppercase;
}
#pokemon-details p {
margin: 5px 0;
font-size: 16px;
color: #555;
}
/* Caught Pokémon Section */
#caught-pokemon-section {
margin: 20px auto;
padding: 15px;
border: 2px solid #2a75bb;
background: #f7f7f7;
max-width: 400px;
text-align: center;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#caught-pokemon-list {
list-style: none;
padding: 0;
}
#caught-pokemon-list li {
margin: 5px 0;
padding: 10px;
border: 1px solid #ccc;
background: lightyellow;
border-radius: 5px;
display: flex;
justify-content: space-between;
align-items: center;
}
.release-button {
background: #ffcb05;
border: none;
padding: 5px 10px;
cursor: pointer;
border-radius: 5px;
}
.release-button:hover {
background: #f0b800;
}
/* Load More Button */
button {
background-color: #ffcb05;
color: #2a75bb;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
margin: 20px;
border-radius: 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
button:hover {
background-color: #f0b800;
color: white;
}