-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
57 lines (50 loc) · 840 Bytes
/
index.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
html, body {
display: flex;
height: 100vh;
align-content: center;
width: 100vw;
}
.front {
background-color: blue;
}
.back {
background-color: gray;
transform: rotateY(180deg);
}
.front, .back{
backface-visibility: hidden;
color: white;
font-family: Helvetica;
font-size: 100px;
font-weight: 900;
height: 100%;
position: absolute;
width: 100%;
}
.value {
height: 100%;
overflow: hidden;
width: 100%;
}
.card {
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.4);
height: 100px;
position: relative;
transition: transform 0.8s;
transform-style: preserve-3d;
width: 100px;
}
.card.flipped {
transform: rotateY(180deg);
}
game-board {
display: flex;
flex-flow: row wrap;
justify-content: space-around;
margin: auto;
perspective: 500px;
width: 75vw;
}
game-card {
margin-bottom: 10px;
}