Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
titaniumnetwork-dev
GitHub Repository: titaniumnetwork-dev/Incognito-old
Path: blob/main/static/src/gs/public/pacman/pacman-canvas.css
1343 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
}
76
#canvas-overlay-content {
77
position: absolute;
78
top: 33%;
79
left: 0;
80
margin-top: 0;
81
max-width: 100%;
82
text-align: center;
83
width: 540px;
84
max-width: 100%;
85
}
86
#canvas-overlay-content #title {
87
text-transform: uppercase;
88
font-size: 150%;
89
}
90
91
.canvas { position:absolute; padding-top: 20px;}
92
.main {width: 100%; max-width: 660px; margin: 10px auto; position: static; left: auto;}
93
.content { width: 100%; max-width: 540px; text-align: left; margin: 0;}
94
.container {text-align: center; margin:0; padding: 0;}
95
.wrapper { padding:0;}
96
.game { max-width: 540px; margin: auto; }
97
98
.about { font-size: 10px; margin-top: 20px; text-align: center; display: none;}
99
100
101
body, html { font-size: 15px; }
102
103
div.audio {}
104
audio {display: block; }
105
106
.score { width: 180px; }
107
.score, .lives, .level { display: inline-block; }
108
109
/* ---------- Controls ------------------------*/
110
111
.controls { text-align: center; margin-top: 15px;}
112
.controls-section {
113
height: auto;
114
width: 47%;
115
display: inline-block;
116
margin: 0;
117
text-align: left;
118
}
119
.controls-left { }
120
.controls-right .controlButton { position: relative; right: -65%; }
121
122
/* Arrow Keys - only displayed when game isn't paused */
123
#game-buttons { display: none; }
124
125
/* Game Menu - displayed when game is paused */
126
#menu-buttons ul, .controls#menu-buttons ul li{ list-style: none; padding: 0;}
127
#menu-buttons ul li {
128
height: 40px;
129
line-height: 40px;
130
font-size: 120%;
131
}
132
133
.controlSound {
134
background: url('img/audio-icon.png');
135
width: 73px;
136
height: 50px;
137
position: relative;
138
bottom: 5px;
139
background-size: 100%;
140
height: 25px;
141
width: 36px;
142
float: right;
143
}
144
145
#mute {
146
display: none;
147
width: 36px;
148
height: 25px;
149
}
150
151
.controlButton {
152
display: inline-block;
153
width: 90px;
154
height: 90px;
155
margin: 5px;
156
background: none repeat scroll 0% 0% #C80A0A;
157
line-height: 70px;
158
border-radius: 50%;
159
font-weight: bold;
160
font-size: 60px;
161
cursor: pointer;
162
}
163
.controlButton:hover, .controlButton:active {
164
background: #c00202;
165
}
166
167
.description { display: none; }
168
169
@media screen and (max-width: 1050px) {
170
html, body { background: rgb(0,0,0);}
171
}
172
@media screen and (max-width: 650px) {
173
.game { width: 93%;}
174
.content { max-width: none; }
175
#menu-buttons .button { background: rgba(255,255,255,0.1); }
176
.button:hover { background: rgba(255,255,255,0.3); }
177
.button#back { top: 0; }
178
}
179
180
@media screen and (max-width: 400px) {
181
182
.nomobile {display: none; }
183
.mobile {display: block; }
184
185
html, body {
186
overflow-x: hidden;
187
height: 100%;
188
}
189
190
.main { margin: 10px auto; }
191
.content { min-height: 0; }
192
193
.controlButton {
194
width: 60px;
195
height: 60px;
196
line-height: 40px;
197
font-size: 40px;
198
}
199
.controls-right .controlButton { right: -55%; }
200
/*canvas#myCanvas { margin: 5px auto; } */
201
202
}
203
204