-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle.css
More file actions
69 lines (65 loc) · 1.11 KB
/
style.css
File metadata and controls
69 lines (65 loc) · 1.11 KB
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
h1 {
width: 500px;
margin: 0 auto;
background: gray;
text-align: center;
color: whitesmoke;
border-radius: 0.5rem;
}
body {
width: 100%;
overflow: hidden;
background: url("space.jpg");
background-size: cover;
}
#board {
position: relative;
width: 500px;
height: 500px;
margin: 40px auto;
border: 2px solid white;
background-color: black;
overflow: hidden;
border-radius: 0.5rem;
}
#jet {
position: absolute;
width: 40px;
height: 40px;
background: url("rocket.png");
background-size: contain;
background-repeat: no-repeat;
left: 50%;
bottom: 0px;
}
.bullets {
position: absolute;
bottom: 40px;
left: 51%;
width: 20px;
height: 20px;
background: url("bullet.png");
background-size: contain;
background-repeat: no-repeat;
}
.rocks {
position: absolute;
top: 0px;
width: 50px;
height: 50px;
background: url("alien.png");
background-size: contain;
background-repeat: no-repeat;
}
#points {
position: absolute;
top: 0px;
right: 0;
opacity: 0.7;
font-size: 1rem;
background-color: rgb(0, 0, 0);
padding: 0.25rem;
}
#menu{
margin: 3rem;
}