-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
152 lines (135 loc) · 2.74 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-color: #000000;
color: #ffffff;
font-family: 'Arial', sans-serif;
display: flex;
flex-direction: column;
overflow: hidden;
}
header {
text-align: center;
padding: 10px 0;
background-color: rgba(0, 0, 51, 0.8);
z-index: 10;
}
.game-title {
font-size: 2em;
margin: 0;
color: #00aaff; /* Changed from green to blue */
text-transform: uppercase;
text-shadow: 0 0 10px #00aaff; /* Changed from green to blue */
}
main {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
}
#starfield {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 0;
}
#gameWrapper {
display: flex;
flex-direction: column;
max-width: 100%;
height: calc(100vh - 150px);
z-index: 1;
}
#scoreBoard {
padding: 10px;
text-align: center;
font-size: 18px;
background-color: rgba(0, 0, 51, 0.8);
border-radius: 10px 10px 0 0;
}
#gameContainer {
position: relative;
overflow: hidden;
border: 2px solid #00aaff; /* Changed from green to blue */
border-radius: 0 0 10px 10px;
flex-grow: 1;
}
canvas {
display: block;
}
#message {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
text-align: center;
background-color: rgba(0, 0, 51, 0.8);
padding: 20px;
border-radius: 10px;
display: none;
}
#mobileControls {
display: none;
flex-direction: column;
padding: 10px;
background-color: rgba(0, 0, 51, 0.8);
width: 100%;
box-sizing: border-box;
}
.controlBtn {
background-color: rgba(0, 170, 255, 0.6); /* Changed from green to blue */
border: none;
border-radius: 8px;
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
touch-action: manipulation;
transition: background-color 0.3s;
font-size: 24px;
font-weight: bold;
margin: 5px 0;
height: 60px;
}
#shootBtn {
background-color: rgba(255, 0, 0, 0.6); /* Changed to red for contrast */
}
#upBtn, #downBtn, #shootBtn {
width: 100%;
}
#leftRightContainer {
display: flex;
justify-content: space-between;
width: 100%;
}
#leftBtn, #rightBtn {
width: 48%;
}
footer {
text-align: center;
padding: 10px;
background-color: rgba(0, 0, 51, 0.8);
font-size: 0.8em;
z-index: 10;
}
@media (max-width: 600px) {
.game-title {
font-size: 1.5em;
}
#scoreBoard {
font-size: 14px;
}
#mobileControls {
display: flex;
}
#gameWrapper {
height: calc(100vh - 200px);
}
}