-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
138 lines (122 loc) · 2.58 KB
/
style.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
* {
box-sizing: border-box;
}
body {
/* background-color: #616161; */
/* background-color: #362c3f; */
background-color: #4f4547;
position: relative;
margin: 0;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.board {
min-width: 700px;
min-height: 700px;
border-radius: 10px;
padding: 16px;
background-color: #1e1e1e;
color: #e1e1e1;
display: flex;
flex-wrap: wrap;
}
.box {
display: inline-block;
position: relative;
width: calc(100%/3 - 32px);
margin: 16px;
border-radius: 10px;
font-size: 8em;
line-height: 0;
background-color: #fff1;
cursor: pointer;
}
.box i {
visibility: hidden;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.box i::before {
text-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
transition: transform 200ms;
}
.box:hover i::before {
text-shadow: 0 16px 13px rgba(0, 0, 0, 0.2);
transform: scale(1.1);
}
.box i[show] {
visibility: visible;
animation: sign-show 400ms ease forwards;
}
@keyframes sign-show {
0% {
font-size: 0;
} 50% {
font-size: 10rem;
} 100% {
font-size: 8rem;
}
}
.gameover-overlay {
display: none;
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
font-size: 3em;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
text-align: center;
letter-spacing: 10px;
animation: gameover-show 1s ease-in-out forwards;
color: #e1e1e1;
}
.gameover-overlay .gameover-title {
display: inline-block;
width: fit-content;
position: absolute;
top: 50%;
animation: gameover-text-anim 1s ease-out forwards;
}
.gameover-title * {
filter: drop-shadow(0 10px 10px rgba(0, 0, 0));
}
.gameover-title button {
cursor: pointer;
color: inherit;
font: inherit;
padding: 8px 16px;
margin-top: 32px;
border: none;
border-radius: 10px;
transition: letter-spacing 200ms;
letter-spacing: normal;
background: linear-gradient(0, #0000, #191919);
} .gameover-title button:hover {
letter-spacing: 10px;
animation: button-hover 200ms ease forwards;
}
.gameover-title span {
display: block;
}
@keyframes gameover-text-anim {
from {
opacity: 0;
transform: translate(-50%, calc(-50% - 100px));
} to {
opacity: 100%;
transform: translate(-50%, -50%);
}
}
@keyframes gameover-show {
from {
background-color: #0000;
} to {
background-color: #000000cc;
}
}