-
-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathstyle.css
More file actions
83 lines (80 loc) · 1.28 KB
/
style.css
File metadata and controls
83 lines (80 loc) · 1.28 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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: rgb(223, 223, 223);
}
.game_title {
text-align: center;
margin-top: 5vh;
font-size: 32px;
font-family: "Inconsolata", monospace;
font-weight: 500;
}
.game_field {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px 10px;
margin-left: auto;
margin-right: auto;
margin-top: 30px;
width: 630px;
}
.flip-container {
perspective: 1000px;
}
.flip-container.clicked .flipper {
transform: rotateY(180deg);
}
.flip-container.clicked.hidden {
visibility: hidden;
}
.front img,
.back img {
cursor: pointer;
width: 150px;
height: 150px;
border: 2px solid rgb(71, 68, 68);
border-radius:5px;
}
.flip-container {
width: 150px;
height: 150px;
}
.flipper {
transition: 0.6s;
transform-style: preserve-3d;
position: relative;
}
.front,
.back {
backface-visibility: hidden;
position: absolute;
top: 0;
left: 0;
}
.front {
z-index: 2;
transform: rotateY(0deg);
}
.back {
transform: rotateY(180deg);
}
@media (max-width: 660px) {
.game_field {
grid-template-columns: repeat(3, 1fr);
width: 320px;
gap: 5px 5px;
}
.front img,
.back img {
width: 103px;
height: 103px;
}
.flip-container {
width: 103px;
height: 103px;
}
}