-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
62 lines (52 loc) · 2.07 KB
/
style.css
File metadata and controls
62 lines (52 loc) · 2.07 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
* { box-sizing: border-box; touch-action: none; }
html, body {
height: 100%; margin: 0;
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background: #050508; color: #eee;
display: flex; align-items: center; justify-content: center;
overflow: hidden;
}
#ui { position: absolute; top: 20px; left: 20px; z-index: 2; pointer-events: none; }
#score {
font-size: 32px; font-weight: bold; color: #00d4ff;
text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}
#lives { font-size: 24px; margin: 5px 0; filter: drop-shadow(0 0 5px red); }
.controls { display: flex; gap: 12px; align-items: center; pointer-events: auto; margin-top: 15px; }
/* Attractive High Score UI */
#highScoreContainer {
display: flex;
align-items: center;
gap: 8px;
background: rgba(255, 215, 0, 0.1);
padding: 8px 16px;
border-radius: 50px;
border: 2px solid rgba(255, 215, 0, 0.3);
box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
backdrop-filter: blur(5px);
animation: goldPulse 2s infinite ease-in-out;
}
.trophy-icon { font-size: 18px; filter: drop-shadow(0 0 5px gold); }
.hs-label { font-size: 12px; color: #ffd700; font-weight: bold; letter-spacing: 1px; }
.hs-value { font-size: 20px; color: #fff; font-weight: 900; text-shadow: 0 0 10px gold; }
@keyframes goldPulse {
0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); transform: scale(1); }
50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); transform: scale(1.02); }
100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); transform: scale(1); }
}
canvas {
background: radial-gradient(circle at center, #1a1a2e 0%, #07070a 100%);
border: 3px solid #222; border-radius: 20px;
max-width: 95vw; max-height: 90vh;
box-shadow: 0 0 60px rgba(0,0,0,0.9);
display: block;
}
button {
background: #ff0055; color: white; border: none;
padding: 12px 22px; border-radius: 10px; cursor: pointer;
font-weight: bold; font-size: 14px;
transition: all 0.2s ease;
box-shadow: 0 4px 0 #990033;
}
button:active { transform: translateY(2px); box-shadow: 0 2px 0 #990033; }
#muteBtn { background: #444; box-shadow: 0 4px 0 #222; }