-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
112 lines (93 loc) · 1.39 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
* {
box-sizing: border-box;
}
body {
color: #000000;
font-family: sans-serif;
margin: 0;
padding: 0;
}
header {
border-bottom: 2px solid #000000;
margin-bottom: 0;
padding: 15px;
text-align: center;
}
h1 {
font-size: 30px;
}
#gameGrid {
column-gap: 5px;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
margin: 10px auto;
max-width: 295px;
row-gap: 10px;
width: 100%;
}
.letter {
align-items: center;
border: 3px solid #c1c1c1;
display: flex;
font-size: 30px;
font-weight: bold;
height: 45px;
justify-content: center;
text-transform: uppercase;
width: 45px;
}
.correct {
background-color: #013220;
color: #ffffff;
}
.close {
background-color: #8B8000;
color: #ffffff;
}
.wrong {
background-color: #a9a9a9;
color: #ffffff;
}
.invalid {
animation: flash 2s;
}
/* flashes red border and then fades back to gray */
@keyframes flash {
5% {
border-color: #ff0000;
}
100% {
border-color: #c0c0c0;
}
}
.win {
animation: flicker 10s linear;
}
@keyframes flicker {
5% {
color: #013220;
}
100% {
color: #3b823e;
}
}
/* Wait Symbol */
.wait-container {
align-items: center;
display: flex;
justify-content: center;
}
.waiting {
animation: spin 1.5s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.show {
visibility: visible;
}
.hidden {
visibility: hidden;
}