Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
87 lines (75 loc) · 1.46 KB
/
Copy pathstyles.css
File metadata and controls
87 lines (75 loc) · 1.46 KB
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
body {
margin: 0;
background: black;
}
.flip-card {
background-color: transparent;
width: 300px;
height: 200px;
border: 1px solid #f1f1f1;
perspective: 1000px; /* Remove this if you don't want the 3D effect */
}
/* This container is needed to position the front and back side */
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 1s;
transform-style: preserve-3d;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card-flipped .flip-card-inner {
transform: rotateY(180deg);
}
/* Position the front and back side */
.flip-card-front, .flip-card-back {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden; /* Safari */
backface-visibility: hidden;
}
/* Style the front side (fallback if image is missing) */
.flip-card-front {
background-color: #bbb;
color: black;
width: 100%;
height: 100%;
}
.flip-card-front img {
height: 100%;
}
/* Style the back side */
.flip-card-back {
background-color: dodgerblue;
color: white;
transform: rotateY(180deg);
}
.emoji {
font-size: 10rem;
padding: 0;
margin: 0;
}
main {
position: relative;
}
#cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
width: 100%;
gap: 1rem;
position: relative;
}
.card-correct {
opacity: 0.5;
}
canvas {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
}