-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
70 lines (63 loc) · 1.01 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
body
{
background-color: #000;
color: #fff;
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
}
#game-container
{
position: relative;
width: 800px;
height: 600px;
margin: 0 auto;
background-image: url('space-background.jpg'); /* Space background image */
background-size: cover;
overflow: hidden;
}
#spaceship
{
position: absolute;
bottom: 0;
left: 375px;
width: 50px;
height: 50px;
background-image: url('spaceship.png'); /* Spaceship image */
background-size: contain;
background-repeat: no-repeat;
}
#info-panel
{
position: absolute;
top: 10px;
right: 10px;
width: 200px;
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
border-radius: 10px;
padding: 10px;
}
#info-panel p
{
margin: 5px 0;
}
nav
{
display: flex;
flex-direction: column;
}
button
{
background-color: #007bff;
border: none;
color: #fff;
padding: 10px;
margin: 5px 0;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover
{
background-color: #0056b3;
}