-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
153 lines (139 loc) · 2.3 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
153
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
}
#background {
display: flex;
justify-content: center;
align-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
margin: 0;
padding: 0;
cursor: crosshair;
background: lightblue;
position: relative;
}
.gameInfoClass {
position: absolute;
top: 20px;
display: flex;
justify-content: space-evenly;
align-items: center;
width: 100%;
}
.dot {
height: 25px;
width: 25px;
border-radius: 50%;
background: red;
border: 1px solid black;
opacity: 1;
display: block;
transition: all 300ms ease-in-out;
animation: shake 0.3s infinite, fadeOut 10s ease-out;
}
.dot:hover {
border: 1px solid transparent;
border-radius: 50%;
background: red;
opacity: 1;
height: 30px;
width: 30px;
border: 2px solid black;
transition: all 300ms ease-in-out;
}
.instructionsPanel {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#countDown {
font-size: 24px;
font-weight: bolder;
display: none;
}
button {
cursor: pointer;
background: lightgreen;
border: 1px solid black;
border-radius: 3px;
padding: 10px 20px;
font-size: 16px;
font-weight: bolder;
}
ul,
li {
text-decoration: none;
list-style-type: none;
}
#score {
font-size: 36px;
font-weight: bolder;
}
#restartGame {
display: none;
}
@keyframes shake {
0% {
transform: translate(1px, 1px);
}
10% {
transform: translate(-1px, -2px);
}
20% {
transform: translate(-3px, 0px);
}
30% {
transform: translate(3px, 2px);
}
40% {
transform: translate(1px, -1px);
}
50% {
transform: translate(-1px, 2px);
}
60% {
transform: translate(-3px, 1px);
}
70% {
transform: translate(3px, 1px);
}
80% {
transform: translate(-1px, -1px);
}
90% {
transform: translate(1px, 2px);
}
100% {
transform: translate(1px, -2px);
}
}
@keyframes fadeOut {
0% {
display: block;
}
100% {
display: none;
}
}
#highScore {
background-color: antiquewhite;
display: flex;
justify-content: center;
align-items: center;
font-size: larger;
font-weight: bolder;
}
#username {
height: 1.75rem;
width: 125px;
margin: 20px;
border: 1px solid black;
border-radius: 3px;
text-align: center;
}