-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
119 lines (96 loc) · 1.8 KB
/
style.css
File metadata and controls
119 lines (96 loc) · 1.8 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: monospace;
}
body
{
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: #0a3c2f;
}
.container{
position: relative;
display: flex;
justify-content: center;
align-items: center;
background-color: #0d614b;
gap: 30px;
flex-direction: column;
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: uppercase;
cursor: pointer;
font-weight: 600;
}
.reset:focus
{
color: #fff;
background-color: #267c65;
}
.game{
width: 433px;
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;
background: #fff;
font-size: 3em;
/* transition: 0.25ms; */
transform: rotateY(180deg);
transition: transform 0.5s;
}
/* .item.boxOpen {
transform: rotateY(0deg);
} */
.item::after
{
content: '';
position: absolute;
inset: 0;
background: #209d7b;
/* transition: 0.25s;
transform: rotateY(0deg); */
opacity: 1; /* Start hidden */
visibility: visible; /* Not visible initially */
transition: opacity 0.5s, visibility 0.25s;
}
.item.boxOpen::after,
.item.boxMatch::after {
opacity: 0; /* Make visible */
visibility: hidden; /* Make visible */
}
.item.boxOpen {
transform: rotateY(0deg); /* Rotate to show the emoji */
}
.boxOpen:after,
.boxMatch:after
{
transform: rotateY(180deg);
}