Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
137 lines (118 loc) 路 2.29 KB
/
Copy pathstyle.css
File metadata and controls
137 lines (118 loc) 路 2.29 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
font-family: 'Arial', sans-serif;
color: #fff;
}
.container {
text-align: center;
}
h1 {
font-size: 2.5em;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.scoreboard {
display: flex;
justify-content: center;
align-items: center;
gap: 40px;
margin-bottom: 20px;
font-size: 1.5em;
}
.score {
display: flex;
flex-direction: column;
gap: 5px;
}
.score .label {
font-size: 0.8em;
opacity: 0.9;
}
.score .value {
font-size: 1.8em;
font-weight: bold;
color: #00ff88;
text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.divider {
font-size: 2em;
opacity: 0.5;
}
.game-info {
margin-bottom: 20px;
background: rgba(0, 0, 0, 0.3);
padding: 15px;
border-radius: 8px;
font-size: 0.9em;
}
.game-info p {
margin: 5px 0;
}
#pongCanvas {
display: block;
background: #000;
border: 3px solid #00ff88;
box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
margin: 20px auto;
cursor: none;
}
.game-over-hidden {
display: none;
}
.game-over-visible {
display: flex;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
justify-content: center;
align-items: center;
z-index: 1000;
}
.game-over-content {
background: #1e3c72;
padding: 40px;
border-radius: 15px;
border: 3px solid #00ff88;
text-align: center;
box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}
.game-over-content h2 {
font-size: 2.5em;
margin-bottom: 20px;
color: #00ff88;
}
.game-over-content p {
font-size: 1.5em;
margin-bottom: 30px;
}
.game-over-content button {
padding: 12px 30px;
font-size: 1.1em;
background: #00ff88;
color: #000;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
}
.game-over-content button:hover {
background: #00dd77;
transform: scale(1.05);
box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}
.game-over-content button:active {
transform: scale(0.98);
}