-
Notifications
You must be signed in to change notification settings - Fork 0
/
pokedex.css
129 lines (115 loc) · 2.28 KB
/
pokedex.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
body {
font-family: Arial, sans-serif;
background-color: #343434eb;
margin: 0;
padding: 0;
}
h1 {
font-size: 36px;
color: #333;
}
h3 {
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
.container {
margin: 50px auto;
padding: 20px;
text-align: center;
position: relative;
display: block;
width: 680px;
height: 680px;
background: radial-gradient(
white 16px,
black 17px 18px,
white 19px 24px,
black 25px 32px,
transparent 33px
),
linear-gradient(to bottom, red 50%, black 50%, white 51%);
border-radius: 50%;
border: 8px solid black;
box-shadow: inset -16px -8px 0 0 rgba(0, 0, 0, 0.2);
animation: fall 0.5s ease-in-out 1s,
shake 1.25s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1.5s 3,
catch 0.5s ease-out 5.25s forwards;
}
@keyframes shake {
0% {
transform: translateX(0) rotate(0);
}
20% {
transform: translateX(-10px) rotate(-20deg);
}
30% {
transform: translateX(10px) rotate(20deg);
}
50% {
transform: translateX(-10px) rotate(-10deg);
}
60% {
transform: translateX(10px) rotate(10deg);
}
100% {
transform: translateX(0) rotate(0);
}
}
@keyframes fall {
0% {
transform: translateY(-200%);
}
60% {
transform: translateY(0);
}
80% {
transform: translateY(-10%);
}
100% {
transform: translateY(0);
}
}
@keyframes catch {
to {
filter: saturate(0.8) brightness(0.8);
}
}
input[type="text"] {
padding: 10px;
width: 40%;
margin-right: 10px;
border: 3px solid #060606;
border-radius: 5px;
margin-top: auto;
}
.pokeball-btn {
cursor: pointer;
width: 60px; /* Set the width as desired */
height: auto; /* Maintain aspect ratio */
border: none;
background: none;
outline: none;
}
.pokeball-btn:hover {
opacity: 0.8;
}
#pokemonInfo {
margin-top: 100px;
}
img {
max-width: 100%;
height: auto;
border-radius: 5px;
}
h2 {
font-size: 24px;
margin-top: 10px;
}
p {
font-size: 16px;
color: #161616;
margin-top: 5px;
}
.logo {
width: 300px;
height: auto;
}