-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
84 lines (83 loc) · 1.53 KB
/
style.css
File metadata and controls
84 lines (83 loc) · 1.53 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: monospace;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #0a3c2f;
}
.container{
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 30px;
background: #0d6146;
padding: 40px 60px;
}
h2{
font-size: 3em;
color: #fff;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.reset{
padding: 15px 20px;
color: #267c65;
background: #fff;
border: none;
font-size: 1.5em;
letter-spacing: 0.1em;
text-transform: uppercase;
cursor: pointer;
font-weight: 600;
}
.reset:focus{
color: #fff;
background: #267c65;
}
.game{
width: 430px;
height: 430px;
display: flex;
flex-wrap: wrap;
gap: 10px;
transform-style: preserve-3d;
perspective: 500px;
}
.item{
position: relative;
width: 100px;
height: 100px;
display: flex;
justify-content: center;
align-items: center;
font-size: 3em;
background: #fff;
transition: 0.25s;
}
.item.boxOpen{
transform: rotateY(0deg);
}
.item::after{
content: '';
position: absolute;
inset: 0;
background: #209d7b;
transition: 0.25s;
transform: rotateY(0deg);
backface-visibility: hidden;
}
.boxOpen:after{
transform: rotateY(180deg);
}
.boxOpen:after ,
.boxMatch:after{
transform: rotateY(180deg);
}