Repository navigation
Expand file tree
/
Copy pathflappybird.css
More file actions
124 lines (110 loc) · 2.24 KB
/
Copy pathflappybird.css
File metadata and controls
124 lines (110 loc) · 2.24 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
119
120
121
122
123
124
/* --- Resets & Base Styles --- */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #0f172a;
touch-action: manipulation;
user-select: none;
-webkit-user-select: none;
}
/* --- Canvas Container --- */
.game-container {
position: relative;
width: 360px;
height: 640px;
max-width: 100vw;
max-height: 100vh;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}
#board {
background-color: #70c5ce;
display: block;
width: 100%;
height: 100%;
}
/* --- UI Overlays --- */
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(15, 23, 42, 0.8);
backdrop-filter: blur(4px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
text-align: center;
padding: 20px;
}
.hidden {
display: none !important;
}
.game-title {
font-size: 2.2rem;
font-weight: 800;
color: #facc15;
text-shadow: 2px 2px 0px #000;
margin-bottom: 12px;
}
.subtitle {
font-size: 0.95rem;
color: #e2e8f0;
}
kbd {
background: #334155;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid #475569;
}
/* --- Game Over Card --- */
.over-title {
font-size: 2rem;
color: #ef4444;
text-shadow: 2px 2px 0px #000;
margin-bottom: 16px;
}
.score-card {
background: #1e293b;
border: 2px solid #334155;
padding: 16px 32px;
border-radius: 12px;
margin-bottom: 20px;
width: 200px;
}
.score-card p {
font-size: 1.1rem;
margin: 6px 0;
font-weight: 600;
}
#restart-btn {
background: #22c55e;
color: white;
border: none;
padding: 12px 28px;
font-size: 1rem;
font-weight: 700;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 4px 0 #15803d;
transition: transform 0.1s ease, background-color 0.2s ease;
}
#restart-btn:hover {
background: #16a34a;
}
#restart-btn:active {
transform: translateY(2px);
box-shadow: 0 2px 0 #15803d;
}