-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
60 lines (53 loc) · 1.07 KB
/
main.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
body {
background: orange;
}
#buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.card {
float: left;
margin: 1px;
position: relative;
height: 60vh;
width: 50vh;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-transition: all 600ms;
transition: all 600ms;
z-index: 20;
}
.card div {
position: absolute;
height: 100%;
width: 100%;
background-size: 100% 100%;
text-align: center;
line-height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
border-radius: 2px;
}
.card .back {
background: aquamarine;
font-size: 100px;
-webkit-transform: rotateX(180deg);
transform: rotateX(180deg);
}
#description {
width: 100%;
height: 60%;
font-size: 2vh;
position: relative;
}
#players {
height: 40%;
width: 100%;
font-size: 2vh;
position: relative;
}
.card.flipped {
transform: rotateX(180deg);
-webkit-transform: rotateX(180deg);
}