-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
143 lines (122 loc) · 2.58 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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
height: 100vh;
background: linear-gradient(#da2e2c 49%, #090029 49%, #090029 51%, #ffffff 51%);
}
.score-container,
.game-container {
position: absolute;
transform: translate(-50%, -50%);
left: 50%;
top: 50%;
}
#start {
background-color: #ffffff;
height: 6em;
width: 6em;
font-size: 1.8em;
border: 0.4em solid #090029;
border-radius: 50%;
cursor: pointer;
animation: pulse 1.5s infinite alternate;
}
@keyframes pulse {
from {
transform: scale(1);
}
to {
transform: scale(1.1);
}
}
.game-container {
background-color: #ffffff;
width: 100%;
max-width: 31em;
padding: 3em 1.5em;
border: 0.6em solid #090029;
border-radius: 0.5em;
animation: fadeIn 1s ease-in-out;
}
.timer span {
font-weight: 600;
}
.header,
.num {
text-align: right;
}
.pokemon-image {
display: block;
margin: 3em auto 0 auto;
animation: fadeIn 1s ease-in-out;
}
.options {
display: flex;
justify-content: center;
gap: 0.5em;
flex-wrap: wrap;
}
.options button {
background-color: #ffffff;
padding: 0.8em;
border: 0.3em solid #090029;
border-radius: 0.5em;
box-shadow: 0 0.5em 0 0 #090029;
cursor: pointer;
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.options button:hover {
box-shadow: none;
transform: translateY(0.6em);
}
.nxt-btn-div {
margin-top: 3em;
display: flex;
justify-content: flex-end;
}
.next-btn {
cursor: pointer;
background-color: #090029;
color: #ffffff;
border-radius: 0.5em;
font-size: 1.2em;
padding: 0.8em 3em;
}
.hide {
display: none;
}
.options:disabled {
border-color: #a0a0a0;
color: #a0a0a0;
box-shadow: 0 0.5em 0 0 #a0a0a0;
cursor: not-allowed;
}
.options button.correct {
background: #58cc5d;
}
.options button.incorrect {
background: #eb5650;
}
.options button.correct,
.options button.incorrect {
color: #ffffff;
border-color: #090029;
box-shadow: 0 0.5em 0 0 #090029;
}
.score-container,
#user-score {
color: #ffffff;
animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}