-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
60 lines (49 loc) · 1019 Bytes
/
styles.css
File metadata and controls
60 lines (49 loc) · 1019 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
50
51
52
53
54
55
56
57
58
59
60
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Poppins:ital,wght@0,200;0,300;0,500;1,100&display=swap');
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1 {
font-family: 'Josefin Sans', 'Poppins', sans-serif;
}
.cardsContainer {
display: grid;
grid-template-columns: repeat(8, 120px);
grid-template-rows: repeat(4, 180px);
gap: 20px;
}
.card {
width: 120px;
height: 180px;
margin: 5px;
cursor: pointer;
border-radius: 7px;
transform-style: preserve-3d;
transition: transform 0.5s;
}
.card img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 7px;
}
.card .card-face {
width: 100%;
height: 100%;
position: absolute;
backface-visibility: hidden;
}
.card .back {
transform: rotateY(180deg);
}
.card.flipped {
transform: rotateY(180deg);
}
.card.matched {
}
#restartButton {
display: none;
margin-bottom: 20px;
}