-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgame.css
71 lines (64 loc) · 1016 Bytes
/
game.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
.time {
max-height: 40px;
text-align: right;
font-size: 3.5vw;
font-weight: bold;
margin: 10px;
}
.container {
width: 50vw;
height: 50vh;
max-width: 800px;
display: grid;
grid-template-rows: repeat(3, 1fr);
gap: 1vw;
align-items: center;
margin: auto;
position: fixed;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
padding: 0 5vw;
}
.row {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1vw;
}
.col {
width: 85%;
height: 100%;
border: 1px solid #eae2bd;
display: flex;
align-items: center;
justify-content: center;
position: relative;
aspect-ratio: 4 / 5;
}
.cardFront {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.cardBack {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
img {
height: 100%;
width: 100%;
background-color: #749a55;
object-fit: fill;
}
@media screen and (max-width: 768px) {
.container {
width: 80%;
top: 50%;
}
}