-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
118 lines (105 loc) · 2.03 KB
/
style.css
File metadata and controls
118 lines (105 loc) · 2.03 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
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
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #1e3c72, #2a5298);
font-family: 'Arial', sans-serif;
color: white;
overflow: hidden;
}
.game-container {
text-align: center;
background: rgba(0, 0, 0, 0.3);
padding: 20px;
border-radius: 15px;
backdrop-filter: blur(10px);
max-height: 95vh;
overflow: hidden;
}
.game-container h1 {
margin: 0 0 20px 0;
font-size: 28px;
}
.game-layout {
display: flex;
gap: 20px;
align-items: flex-start;
}
.game-area {
flex: 0 0 auto;
}
canvas {
border: 3px solid #fff;
border-radius: 10px;
background: #000;
display: block;
}
.info-panel {
flex: 0 0 200px;
text-align: left;
padding: 10px;
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
height: 500px;
display: flex;
flex-direction: column;
gap: 20px;
}
.score-lives {
display: flex;
flex-direction: column;
gap: 10px;
font-size: 18px;
font-weight: bold;
text-align: center;
}
.controls-section h3,
.powerups-section h3 {
margin: 0 0 10px 0;
font-size: 16px;
color: #fff;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
padding-bottom: 5px;
}
.controls-section p {
margin: 0;
font-size: 14px;
opacity: 0.9;
}
.powerup-item {
margin: 5px 0;
font-size: 14px;
opacity: 0.9;
}
.restart-btn {
background: #4CAF50;
color: white;
border: none;
padding: 12px 20px;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background 0.3s;
width: 100%;
margin-top: auto;
}
.restart-btn:hover {
background: #45a049;
}
.game-over, .game-win {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.9);
color: white;
padding: 30px;
border-radius: 15px;
text-align: center;
font-size: 24px;
z-index: 10;
border: 2px solid #fff;
}