-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
97 lines (85 loc) · 1.49 KB
/
style.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
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
88
89
90
91
92
93
94
95
96
97
body {
text-align: center;
font-family: 'Zen Antique', serif;
background-image: url("bg.png");
}
h1 {
font-size: 3em;
line-height: 1em;
margin: 0.3em;
}
#container {
padding-left: 10px;
padding-right: 10px;
max-width: 1750px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgb(200, 20, 20);
border-radius: 1em;
}
#game {
padding-left: 10px;
padding-right: 10px;
max-width: 1750px;
margin: auto;
text-align: center;
}
#game div {
width: min(5.5vw, 11vh);
height: min(7.5vw, 15vh);
max-width: 120px;
max-height: 165px;
margin: min(0.5vw, 1vh, 12px);
display: inline-block;
color: white;
border-radius: 0.1em;
}
#game div .face {
margin: 0;
font-size: min(5vw, 10vh, 100px);
position: absolute;
top: 0px;
left: 0px;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
background-color: black;
}
@media (max-width: 470px) {
#game div {
margin: 2px;
width: 25px;
height: 35px;
}
#game div .face {
font-size: 22px;
}
}
.card {
transition: transform 1s;
transform-style: preserve-3d;
cursor: pointer;
position: relative;
}
.flip {
transform: rotateY(180deg);
}
.card-front {
border: 2px solid black;
box-sizing: border-box;
transform: rotateY(180deg);
}
#game .gameButton {
background-color: black;
width: auto;
max-width: 100%;
height: auto;
padding: 0.5em;
font-size: 2em;
margin: 0.5em;
cursor: pointer;
}
#hud {
margin: 0.3em;
}