-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.css
127 lines (114 loc) · 1.87 KB
/
game.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
body {
margin: 0;
font-family:monospace;
text-align:center;
height: 100vh;
width: 100vw;
}
#mainContainer {
transform-origin:0% 0%;
position:absolute;
width:100%;
top:0;
left:0;
}
#score {
position:absolute;
top:0;
left:0;
width:100%;
text-align:center;
font-size:60px;
font-weight:900;
color:#45f;
}
#showPoint {
position:absolute;
top:0;
left:0;
background:transparent;
margin:0;
}
#showPoint .u{
position:absolute;
display:inline-block;
top:50%;
left:70%;
font-size:30px;
font-family:arial;
opacity:0;
transition:top 0.1s linear,left 0.1s linear
}
#animCanvas {
position:absolute;
top:0;
left:0;
z-index:100;
border-bottom:1px solid blue;
}
#arrs {
font-size:30px;
text-align:left;
position:absolute;
margin:0;
top:0;
padding-left:10px;
}
#startMenu {
position:absolute;
top:0;
left:0;
background:#fff;
z-index:1000;
width:100%;
height:100%;
}
#startMenu h1 {
font-size:50px;
text-shadow:2px 3px #aaa;
font-weight:900;
}
#startMenu button {
font-size:22px;
background:none;
border:none;
border-top:3px solid #000;
border-bottom:3px solid #000;
padding:10px 30px 5px;
line-height:20px;
outline:none;
}
#startMenu h2 {
font-size:25px;
}
#timerDiv {
height:8px;
padding:0px;
border:2px solid blue;
width:50%;
position:absolute;
bottom:20px;
left:25%;
border-radius:20px;
}
.timer {
height:8px;
width:0%;
background:red;
animation: countTime 4.5s linear 1;
animation-delay:0.5s;
border-radius:20px;
}
@keyframes countTime {
0% {
width: 100%;
background-color: lime;
}
50% {
background-color:yellow;
}
100% {
width: 0%;
background-color: red;
}
}