-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
135 lines (118 loc) · 2.9 KB
/
Copy pathstyles.css
File metadata and controls
135 lines (118 loc) · 2.9 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #0a0a1f;
color: #ffffff;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
background: linear-gradient(45deg, #0a0a1f, #1a1a3f);
position: relative;
overflow: hidden;
}
body::before {
content: '';
position: absolute;
width: 200%;
height: 200%;
background: repeating-linear-gradient(
45deg,
rgba(0, 255, 255, 0.05) 0px,
rgba(0, 255, 255, 0.05) 1px,
transparent 1px,
transparent 10px
);
animation: grid-animation 20s linear infinite;
z-index: 1;
}
@keyframes grid-animation {
0% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
100% { transform: translateX(-50%) translateY(-50%) rotate(360deg); }
}
.game-container {
display: flex;
gap: 20px;
background: rgba(10, 10, 31, 0.8);
padding: 20px;
border-radius: 20px;
box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
backdrop-filter: blur(10px);
position: relative;
z-index: 2;
border: 1px solid rgba(0, 255, 255, 0.1);
}
.game-info {
display: flex;
flex-direction: column;
gap: 20px;
min-width: 200px;
}
canvas {
background-color: #000000;
border: 2px solid rgba(0, 255, 255, 0.2);
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}
#gameCanvas {
box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}
.score-container, .next-piece, .hold-piece {
background: rgba(255, 255, 255, 0.05);
padding: 15px;
border-radius: 15px;
text-align: center;
border: 1px solid rgba(0, 255, 255, 0.1);
}
h2, h3 {
margin-bottom: 10px;
color: #00ffff;
text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}
button, .menu-button {
background: linear-gradient(45deg, #00ffff, #00ccff);
color: #0a0a1f;
border: none;
padding: 10px 20px;
border-radius: 50px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease;
text-decoration: none;
text-align: center;
}
button:hover, .menu-button:hover {
transform: scale(1.05);
box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}
button:active, .menu-button:active {
transform: scale(0.95);
}
#pauseBtn {
background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}
#pauseBtn:hover {
box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}
.controls p {
margin: 5px 0;
font-size: 14px;
color: #ddd;
}
@media (max-width: 768px) {
.game-container {
flex-direction: column-reverse;
align-items: center;
}
.game-info {
width: 100%;
}
}