-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
198 lines (168 loc) · 2.82 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
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
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
padding: 0;
font-family: sans-serif;
}
header {
text-align: center;
}
header span {
animation: blink 1s infinite step-end;
}
main {
position: relative;
}
.flex {
display: flex;
justify-content: space-between;
align-items: center;
}
.menu {
background-color: #Ece3f9;
padding: 0rem 4rem 4rem;
text-align: center;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
}
mark {
background-color: rgb(118, 245, 118);
}
.menu>p {
line-height: 1.5;
font-weight: bold;
font-size: 1.5rem;
}
.menu h1 span {
background-color: #E8ff00;
}
.menu h1 {
padding: 0.5rem 1rem;
border-radius: 5px;
position: relative;
display: inline-block;
border: 3px solid black;
margin-top: 0;
animation: bigger 1.5s ease-in-out infinite;
top: -100px;
left: 145px;
}
/* .instructions span {
color: rgb(97, 52, 36)
} */
.instructions h4 {
padding-bottom: 0.5rem;
}
.instructions {
text-align: left;
}
.instructions span {
padding: 0.5rem 1rem;
border: 3px solid black;
border-radius: 5px;
}
.explanation {
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
top: -35px;
}
.explanation p {
font-weight: bold;
}
.lab img {
height: 30px;
}
.won {
background-image: url('https://media.giphy.com/media/mJHSkWKziszrkcNJPo/giphy.gif');
background-position: center;
background-repeat: no-repeat;
display: none;
position: absolute;
z-index: 10;
top: 0;
right: 0;
left: 0;
bottom: 0;
}
.gameover {
background-image: url('https://media.giphy.com/media/SIPIe590rx6iA/giphy.gif');
background-position: center;
background-repeat: no-repeat;
display: none;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
}
.gameover h1 {
display: block;
margin-top: 138px;
text-align: center;
font-size: 2.5rem;
}
.won h1 {
display: block;
margin-top: 138px;
text-align: center;
font-size: 2.5rem;
color: white
}
.won button {
outline: none;
transition: 0.3s;
display: block;
margin: 0 auto;
margin-top: 200px;
background-color: white;
padding: 1rem 2rem;
box-shadow: 5px 5px black;
border: none;
font-size: 1.3rem;
font-weight: bolder;
}
.gameover button {
outline: none;
transition: 0.3s;
display: block;
margin: 0 auto;
margin-top: 90px;
background-color: white;
padding: 1rem 2rem;
box-shadow: 5px 5px black;
border: none;
font-size: 1.3rem;
font-weight: bolder;
}
.gameover button:hover,
.won button:hover {
transform: scale(1.2);
}
@keyframes bigger {
from,
to {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
}
@keyframes blink {
from,
to {
color: transparent;
}
50% {
color: black
}
}