Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
98 lines (83 loc) · 1.42 KB
/
Copy pathstyle.css
File metadata and controls
98 lines (83 loc) · 1.42 KB
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
98
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
height: 100vh;
background-image: url(img/bckground.jpg);
background-size: cover;
}
#header {
width: 100vw;
height: 15%;
color: whitesmoke;
}
#header h2 {
display: block;
text-align: center;
font-size: 12mm;
}
/* #timer {
position: absolute;
text-align: center;
left: 42%;
top: 8%;
font-size: 10mm;
} */
#container {
display: flex;
width: 50%;
height: 75%;
display : flex;
flex-wrap: wrap;
margin: auto;
}
.memCard {
position : relative;
margin: 5px;
transform-style: preserve-3d;
}
.memCard:active {
transform: scale(0.97);
transition: 0.2s;
}
.easy {
width: calc(25% - 10px);
height: calc(33.333% - 10px);
}
.hard {
width: calc(20% - 10px);
height: calc(25% - 10px);
}
.front,
.back {
height: 100%;
width: 100%;
padding: 20px;
position: absolute;
/* background: cornflowerblue; */
backface-visibility: hidden;
}
.memCard.turn {
/* rotation to turn a card, but turns both images */
transform: rotateY(180deg);
}
.front {
/* rotation to show the logo when the back side is turned */
transform: rotateY(180deg);
}
/* buttons and timer */
#addons {
display: flex;
width: 30%;
height: 70%;
flex-wrap: nowrap;
margin: auto;
}
#reset,#timer,#modes {
margin: auto;
}
#timer {
font-size: 50px;
}