Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
193 lines (169 loc) · 4.17 KB
/
Copy pathstyle.css
File metadata and controls
193 lines (169 loc) · 4.17 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
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
background-size: 400% 400%;
animation: gradientShift 8s ease infinite;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.game-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
/* Glassmorphism Effects with enhanced animations */
.glass-panel {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(15px);
border-radius: 25px;
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 25px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.glass-panel::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}
.glass-panel:hover::before {
left: 100%;
}
.glass-panel:hover {
transform: translateY(-5px);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.game-title {
color: #fff;
font-size: 2.8em;
text-align: center;
text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
margin-bottom: 15px;
background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
background-size: 300% 300%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: gradientText 4s ease infinite;
}
@keyframes gradientText {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.score-board {
display: flex;
gap: 30px;
justify-content: center;
}
.score {
color: #fff;
font-size: 1.2em;
font-weight: bold;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
#gameCanvas {
border-radius: 20px;
border: 3px solid rgba(255, 255, 255, 0.4);
box-shadow:
0 0 50px rgba(0, 0, 0, 0.3),
inset 0 0 30px rgba(255, 255, 255, 0.1);
background: rgba(0, 0, 0, 0.3);
transition: all 0.3s ease;
}
#gameCanvas:hover {
box-shadow:
0 0 70px rgba(0, 0, 0, 0.4),
inset 0 0 40px rgba(255, 255, 255, 0.15);
}
.controls {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}
.controls p {
color: #fff;
font-size: 1.1em;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.glass-btn {
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(15px);
border: 2px solid rgba(255, 255, 255, 0.4);
border-radius: 30px;
padding: 15px 30px;
color: #fff;
font-size: 1.1em;
font-weight: bold;
cursor: pointer;
transition: all 0.4s ease;
text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
margin: 0 15px;
position: relative;
overflow: hidden;
}
.glass-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transition: left 0.6s;
}
.glass-btn:hover::before {
left: 100%;
}
.glass-btn:hover {
background: rgba(255, 255, 255, 0.35);
transform: translateY(-3px) scale(1.05);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
border-color: rgba(255, 255, 255, 0.6);
}
.glass-btn:active {
transform: translateY(-1px) scale(1.02);
}
/* Vibrant neon accents */
.game-title {
background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Responsive design */
@media (max-width: 768px) {
#gameCanvas {
width: 90vw;
height: 60vh;
}
.game-title {
font-size: 2em;
}
.score-board {
flex-direction: column;
gap: 10px;
}
}