-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
152 lines (135 loc) · 2.59 KB
/
index.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #0a3c2f;
}
.container{
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 30px;
background: #0d614b;
padding: 40px 60px;
}
.container h2{
margin-left: 30px;
color: #fff;
font-family:Cambria;
font-weight: 800;
font-size: 2em;
letter-spacing: 3px;
}
.reset{
padding: 15px 20px;
color: #267c65;
background: #fff;
border: none;
font-size: 1.2em;
text-transform: uppercase;
cursor: pointer;
font-weight: 600;
font-family:Cambria;
letter-spacing: 2px;
}
.reset:focus{
color: #fff;
background: #267c65;
}
.game{
width: 440px;
height: 380px;
display: flex;
flex-wrap: wrap;
gap: 10px;
transform-style: preserve-3d;
perspective: 500px;
}
.item{
position: relative;
width: 100px;
display: flex;
justify-content: center;
align-items: center;
font-size: 3em;
background: #fff;
transform: rotateY(180deg);
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,
.boxMatch:after{
transform: rotateY(180deg);
}
.popup{
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #0d614b;
width: 450px;
height: 300px;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1),
0 0 0 1000px rgba(0, 0, 0, 0.90);
border-radius: 20px;
display: flex;
justify-content: center;
padding: 40px;
visibility: hidden;
}
.popup h2{
color: #fff;
font-family: sans-serif;
font-size: 35px;
margin-top: 20px;
}
.popup span{
margin-left: 80px;
color: #fff;
}
.active{
visibility: visible;
}
.close{
position: absolute;
top: 0;
right: 0;
padding:5px 10px;
background: #f00;
border-radius: 0 20px 0 20px;
color: #fff;
cursor: pointer;
font-size: 25px;
}
#my-canvas{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
z-index: 100000;
visibility: hidden;
pointer-events: none;
}
#my-canvas.active{
visibility: visible;
}