Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
FogNetwork
GitHub Repository: FogNetwork/Tsunami
Path: blob/main/public/games/files/pacman/pacman-canvas.css
1036 views
1
/* Google Web Fonts */
2
@font-face {
3
font-family: 'Press Start 2P';
4
font-style: normal;
5
font-weight: 400;
6
src: url('fonts/PressStart2Play.eot');
7
src: url('fonts/PressStart2Play.eot?iefix') format('eot'),
8
url('fonts/PressStart2Play.woff') format('woff'),
9
url('fonts/PressStart2Play.ttf') format('truetype');
10
}
11
12
/* ---------------- */
13
14
body {
15
background-color: #000;
16
color: white;
17
font-family: 'Press Start 2P', cursive;
18
}
19
20
21
/* Links */
22
.main a, .main a:link, .main a:active, .main a:visited {
23
padding: 5px;
24
background: #c80a0a;
25
color: rgb(255, 255, 255);
26
}
27
* { box-shadow: none !important; }
28
29
.content, h1, h2, h3, p, div {
30
font-family: 'Press Start 2P', cursive;
31
font-weight: normal;
32
}
33
.content[id*=-content]:not(#game-content) {
34
display: none;
35
overflow-y: auto;
36
overflow-x: hidden;
37
}
38
.content img {
39
max-width: 100%;
40
}
41
.pull-right {
42
float: right;
43
}
44
.button {
45
background: #c80a0a;
46
cursor: pointer;
47
padding: 8px;
48
}
49
#menu-buttons .button { background: rgba(0,0,0,0.4); }
50
#menu-buttons .button:hover, .button:hover { background: rgba(255,255,255,0.2); }
51
.button#back {
52
position: relative;
53
top: -25px;
54
display: inline-block;
55
}
56
.button#score-submit {
57
vertical-align: middle;
58
}
59
60
#highscore-form { margin-top: 8px; }
61
input[type="text"]:hover, input[type="text"]:focus, input[type="password"]:hover, input[type="password"]:focus, textarea:hover, textarea:focus {
62
border: 1px #c80a0a solid;
63
}
64
#highscore-list {}
65
#score { float: right; }
66
67
#myCanvas { border: none; display: block; background: rgb(0,0,0); width: 100%; height: auto;}
68
#canvas-container { position: relative;}
69
#canvas-overlay-container {
70
position: absolute;
71
background: rgba(0,0,0,0.7);
72
height: 100%;
73
width: 540px;
74
max-width: 100%;
75
padding: 1em;
76
box-sizing: border-box;
77
}
78
#canvas-overlay-content {
79
position: absolute;
80
top: 33%;
81
left: 0;
82
margin-top: 0;
83
max-width: 100%;
84
text-align: center;
85
width: 540px;
86
max-width: 100%;
87
padding: 1em;
88
box-sizing: border-box;
89
}
90
#canvas-overlay-content #title {
91
text-transform: uppercase;
92
font-size: 150%;
93
}
94
95
#invalid-score {
96
margin-top: 2em;
97
}
98
99
.canvas { position:absolute; padding-top: 20px;}
100
.main {width: 100%; max-width: 660px; margin: 10px auto; position: static; left: auto;}
101
.content { width: 100%; max-width: 540px; text-align: left; margin: 0;}
102
.container {text-align: center; margin:0; padding: 0;}
103
.wrapper { padding:0;}
104
.game { max-width: 540px; margin: auto; }
105
106
.about { font-size: 10px; margin-top: 20px; text-align: center; display: none;}
107
108
109
body, html { font-size: 15px; }
110
111
div.audio {}
112
audio {display: block; }
113
114
.score { width: 180px; }
115
.score, .lives, .level { display: inline-block; }
116
117
/* ---------- Controls ------------------------*/
118
119
.controls { text-align: center; margin-top: 15px;}
120
.controls-section {
121
height: auto;
122
width: 47%;
123
display: inline-block;
124
margin: 0;
125
text-align: left;
126
}
127
.controls-left { }
128
.controls-right .controlButton { position: relative; right: -65%; }
129
130
/* Arrow Keys - only displayed when game isn't paused */
131
#game-buttons { display: none; }
132
133
/* Game Menu - displayed when game is paused */
134
#menu-buttons ul, .controls#menu-buttons ul li{ list-style: none; padding: 0;}
135
#menu-buttons ul li {
136
height: 40px;
137
line-height: 40px;
138
font-size: 120%;
139
}
140
141
.controlSound {
142
background: url('img/audio-icon.png');
143
width: 73px;
144
height: 50px;
145
position: relative;
146
bottom: 5px;
147
background-size: 100%;
148
height: 25px;
149
width: 36px;
150
float: right;
151
}
152
153
#mute {
154
display: none;
155
width: 36px;
156
height: 25px;
157
}
158
159
.controlButton {
160
display: inline-block;
161
width: 90px;
162
height: 90px;
163
margin: 5px;
164
background: none repeat scroll 0% 0% #C80A0A;
165
line-height: 70px;
166
border-radius: 50%;
167
font-weight: bold;
168
font-size: 60px;
169
cursor: pointer;
170
}
171
.controlButton:hover, .controlButton:active {
172
background: #c00202;
173
}
174
175
.description { display: none; }
176
177
@media screen and (max-width: 1050px) {
178
html, body { background: rgb(0,0,0);}
179
}
180
@media screen and (max-width: 650px) {
181
.game { width: 93%;}
182
.content { max-width: none; }
183
#menu-buttons .button { background: rgba(255,255,255,0.1); }
184
.button:hover { background: rgba(255,255,255,0.3); }
185
.button#back { top: 0; }
186
}
187
188
@media screen and (max-width: 400px) {
189
190
.nomobile {display: none; }
191
.mobile {display: block; }
192
193
html, body {
194
overflow-x: hidden;
195
height: 100%;
196
}
197
198
.main { margin: 10px auto; }
199
.content { min-height: 0; }
200
201
.controlButton {
202
width: 60px;
203
height: 60px;
204
line-height: 40px;
205
font-size: 40px;
206
}
207
.controls-right .controlButton { right: -55%; }
208
/*canvas#myCanvas { margin: 5px auto; } */
209
210
}
211
212