-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
49 lines (41 loc) · 884 Bytes
/
styles.css
File metadata and controls
49 lines (41 loc) · 884 Bytes
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
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');
.card {
perspective: 1000px;
transform-style: preserve-3d;
transition: transform 0.5s;
}
.card.flipped {
transform: rotateY(180deg);
}
.card .front,
.card .back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0.75rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.card .front {
background-color: white;
transform: rotateY(180deg);
}
.card .back {
background-color: #efeff5;
transform: rotateY(0deg);
}
.card.matched {
border: 2px solid #a9fdad;
border-radius: 0.75rem;
}
@keyframes pulse {
0% { color: #333; }
40% { color: #ef4444; }
100% { color: #333; }
}
.timer.pulse {
animation: pulse 1s infinite;
}