-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
240 lines (191 loc) · 3.95 KB
/
styles.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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
@font-face {
font-family: Fredoka;
src: url(./FredokaOne-Regular.ttf);
}
html {
width: 100%;
height: 100%;
background: linear-gradient(325deg, #6f00fc 0%,#fc7900 50%,#fcc500b9 100%);
/* background: linear-gradient(325deg, #1c1b1c 0%,#718500 50%,#f55454 100%); */
font-family: Fredoka;
}
.msg {
display: none;
background-color: #282A3A;
width: auto;
border-radius: 5px;
padding: 5px;
box-shadow: 1px 1px 15px 2px rgb(111, 111, 111);
}
.msg p{
display: flex;
padding: 0 10px;
align-items: center;
justify-content: center;
font-size: 30px;
color: white;
}
.game {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.controls {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.footer {
padding-top: 10px;
}
.footer a{
text-decoration: none;
color: #FDF8E6;
font-size: 16px;
}
button {
background: #282A3A;
color: #FFF;
border-radius: 5px;
padding: 10px 20px;
border: 0;
cursor: pointer;
font-family: Fredoka;
font-size: 18pt;
box-shadow: 5px 3px 15px 1px darkblue;
transition: all 0.5s;
}
.myBTN {
background: #282A3A;
color: #FFF;
border-radius: 5px;
padding: 10px 20px;
border: 0;
cursor: pointer;
font-family: Fredoka;
font-size: 18pt;
box-shadow: 5px 3px 15px 1px darkblue;
transition: all 0.5s;
}
button:hover{
color: #ed977c;
background-color: #3e415a;
}
button.lock{
pointer-events: none;
background-color: #4d4c4c;
}
.disabled {
color: #757575;
/* background-color: #cccccc; */
}
.stats {
color: #FFF;
font-size: 14pt;
border: 1px dotted floralwhite;
padding: 10px;
width: 100%;
box-shadow: 5px 3px 15px 1px darkblue;
border-radius: 7px;
}
.stats .moves,.timer{
color: #ffffff;
}
.controls{
margin-right: 10px;
}
.board-container {
position: relative;
}
.board,
.win {
border-radius: 5px;
box-shadow: 0 25px 50px rgb(33 33 33 / 25%);
/* background: linear-gradient(135deg, #6f00fc 0%,#fc7900 50%,#fcc700 100%); */
background: linear-gradient(135deg, #ffff00a8 0%,#ff7b00 50%,#ff2a00 100%);
transition: transform .6s cubic-bezier(0.4, 0.0, 0.2, 1);
backface-visibility: hidden;
}
.board {
padding: 20px;
display: grid;
grid-template-columns: repeat(4, auto);
grid-gap: 20px;
}
.board-container.flipped .board {
transform: rotateY(180deg) rotateZ(50deg);
}
.board-container.flipped .win {
transform: rotateY(0) rotateZ(0);
}
.card {
position: relative;
width: 100px;
height: 100px;
cursor: pointer;
}
.card-front,
.card-back {
position: absolute;
border-radius: 5px;
width: 100%;
height: 100%;
background: #3a3328;
transition: transform .6s cubic-bezier(0.4, 0.0, 0.2, 1);
backface-visibility: hidden;
}
.card-back {
transform: rotateY(180deg) rotateZ(50deg);
font-size: 28pt;
user-select: none;
text-align: center;
line-height: 100px;
background: #FDF8E6;
}
.card.flipped .card-front {
transform: rotateY(180deg) rotateZ(50deg);
}
.card.flipped .card-back {
transform: rotateY(0) rotateZ(0);
}
.win {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
text-align: center;
background: #FDF8E6;
transform: rotateY(180deg) rotateZ(50deg);
}
.win-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 21pt;
color: #282A3A;
}
.highlight {
color: #6f00fc;
}
@media (max-width: 700px) {
.board-container {
width: 370px;
}
.card {
position: relative;
width: 70px;
height: 70px;
cursor: pointer;
}
.card-back {
transform: rotateY(180deg) rotateZ(50deg);
font-size: 20pt;
user-select: none;
text-align: center;
line-height: 70px;
background: #FDF8E6;
}
}