-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
71 lines (63 loc) · 977 Bytes
/
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
body {
margin: 0;
}
.game_border {
position: absolute;
width: 100%;
height: 100%;
background: #89CFF0;
}
.game_canvas {
position: relative;
background: #F0FFFF;
width: 95%;
height: 90%;
top: 5%; /* Pushes it down by 5% so it is centered */
display: block;
margin: 0 auto;
overflow: hidden;
}
.score {
position: relative;
left: 20px;
font-size: 40px;
}
.character {
width: 60px;
height: auto;
position: absolute;
left: 200px;
}
.wood {
height: 60px;
width: 350px;
position: absolute;
animation: move_wood 4s;
}
@keyframes move_wood {
from{left: 200%;}
to{left: -100%;}
}
.game_over {
text-align: center;
font-size: 50px;
margin-top: 100px;
display: none;
}
.play_again {
display: block;
margin: 0 auto;
background: #89CFF0;
border-radius: 40px;
text-decoration: none;
width: 250px;
height: auto;
font-size: 40px;
border: yellow solid 2px;
color: white;
transition: 0.3s;
}
.play_again:hover {
background: #FFF;
color: black;
}