-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
82 lines (72 loc) · 1.73 KB
/
style.css
File metadata and controls
82 lines (72 loc) · 1.73 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background: var(--tg-theme-bg-color, #18222d);
color: var(--tg-theme-text-color, #ffffff);
overflow: hidden;
touch-action: none;
}
#game-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 10px;
}
#score-panel {
display: flex;
justify-content: space-between;
width: 100%;
max-width: 400px;
padding: 15px;
font-size: 18px;
font-weight: bold;
}
#gameCanvas {
border: 2px solid var(--tg-theme-button-color, #2481cc);
border-radius: 10px;
background: #000;
max-width: 100%;
touch-action: none;
}
#start-screen, #game-over {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
background: var(--tg-theme-secondary-bg-color, #232e3c);
padding: 40px;
border-radius: 20px;
box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
#start-screen h1 {
font-size: 48px;
margin-bottom: 20px;
}
#start-screen p, #game-over p {
font-size: 18px;
margin-bottom: 30px;
opacity: 0.8;
}
#start-btn, #restart-btn {
background: var(--tg-theme-button-color, #2481cc);
color: var(--tg-theme-button-text-color, #ffffff);
border: none;
padding: 15px 40px;
font-size: 20px;
border-radius: 10px;
cursor: pointer;
transition: transform 0.2s;
}
#start-btn:active, #restart-btn:active {
transform: scale(0.95);
}
.hidden {
display: none !important;
}