-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
96 lines (84 loc) · 1.78 KB
/
styles.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
body {
font-family: Arial, sans-serif;
background-image: url('background.webp');
background-size: cover;
color: white;
text-align: center;
}
#title {
margin-top: 20px;
text-align: center;
font-size: 2em;
padding: 10px;
background: rgba(0, 0, 0, 0.5);
border-radius: 10px;
}
#musicControls {
position: fixed; /* Fixed position to avoid overlapping with other elements */
top: 10px; /* Adjust to prevent hiding the title */
right: 10px; /* Keep it on the right side */
z-index: 1000; /* Ensure it stays above other elements */
}
/* Media query to adjust position for smaller screens */
@media (max-width: 600px) {
#musicControls {
top: 50px; /* Increase top margin to avoid overlapping with the title */
}
}
/* Other existing styles */
#game {
background: rgba(0, 0, 0, 0.7);
padding: 20px;
border-radius: 10px;
display: inline-block;
}
.progress-bar {
width: 100%;
background-color: #ddd;
border-radius: 10px;
margin: 10px 0;
position: relative;
z-index: 1;
}
.progress-fill {
width: 0;
height: 20px;
background-color: #4caf50;
border-radius: 10px;
transition: width 0.5s;
}
@media (max-width: 768px) {
#title {
font-size: 1.5em;
}
#musicControls {
flex-direction: column;
align-items: center;
}
}
button {
margin: 10px;
padding: 10px;
background-color: #444;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #666;
}
#upgrades, #achievements {
margin-top: 20px;
}
#planetList img.planet-img {
width: 50px;
height: 50px;
margin-left: 10px;
border-radius: 50%;
}
#planetList p {
margin: 5px 0;
font-size: 0.9em;
color: #ddd;
}