Path: blob/main/public/games/files/pacman/pacman-canvas.css
1036 views
/* Google Web Fonts */1@font-face {2font-family: 'Press Start 2P';3font-style: normal;4font-weight: 400;5src: url('fonts/PressStart2Play.eot');6src: url('fonts/PressStart2Play.eot?iefix') format('eot'),7url('fonts/PressStart2Play.woff') format('woff'),8url('fonts/PressStart2Play.ttf') format('truetype');9}1011/* ---------------- */1213body {14background-color: #000;15color: white;16font-family: 'Press Start 2P', cursive;17}181920/* Links */21.main a, .main a:link, .main a:active, .main a:visited {22padding: 5px;23background: #c80a0a;24color: rgb(255, 255, 255);25}26* { box-shadow: none !important; }2728.content, h1, h2, h3, p, div {29font-family: 'Press Start 2P', cursive;30font-weight: normal;31}32.content[id*=-content]:not(#game-content) {33display: none;34overflow-y: auto;35overflow-x: hidden;36}37.content img {38max-width: 100%;39}40.pull-right {41float: right;42}43.button {44background: #c80a0a;45cursor: pointer;46padding: 8px;47}48#menu-buttons .button { background: rgba(0,0,0,0.4); }49#menu-buttons .button:hover, .button:hover { background: rgba(255,255,255,0.2); }50.button#back {51position: relative;52top: -25px;53display: inline-block;54}55.button#score-submit {56vertical-align: middle;57}5859#highscore-form { margin-top: 8px; }60input[type="text"]:hover, input[type="text"]:focus, input[type="password"]:hover, input[type="password"]:focus, textarea:hover, textarea:focus {61border: 1px #c80a0a solid;62}63#highscore-list {}64#score { float: right; }6566#myCanvas { border: none; display: block; background: rgb(0,0,0); width: 100%; height: auto;}67#canvas-container { position: relative;}68#canvas-overlay-container {69position: absolute;70background: rgba(0,0,0,0.7);71height: 100%;72width: 540px;73max-width: 100%;74padding: 1em;75box-sizing: border-box;76}77#canvas-overlay-content {78position: absolute;79top: 33%;80left: 0;81margin-top: 0;82max-width: 100%;83text-align: center;84width: 540px;85max-width: 100%;86padding: 1em;87box-sizing: border-box;88}89#canvas-overlay-content #title {90text-transform: uppercase;91font-size: 150%;92}9394#invalid-score {95margin-top: 2em;96}9798.canvas { position:absolute; padding-top: 20px;}99.main {width: 100%; max-width: 660px; margin: 10px auto; position: static; left: auto;}100.content { width: 100%; max-width: 540px; text-align: left; margin: 0;}101.container {text-align: center; margin:0; padding: 0;}102.wrapper { padding:0;}103.game { max-width: 540px; margin: auto; }104105.about { font-size: 10px; margin-top: 20px; text-align: center; display: none;}106107108body, html { font-size: 15px; }109110div.audio {}111audio {display: block; }112113.score { width: 180px; }114.score, .lives, .level { display: inline-block; }115116/* ---------- Controls ------------------------*/117118.controls { text-align: center; margin-top: 15px;}119.controls-section {120height: auto;121width: 47%;122display: inline-block;123margin: 0;124text-align: left;125}126.controls-left { }127.controls-right .controlButton { position: relative; right: -65%; }128129/* Arrow Keys - only displayed when game isn't paused */130#game-buttons { display: none; }131132/* Game Menu - displayed when game is paused */133#menu-buttons ul, .controls#menu-buttons ul li{ list-style: none; padding: 0;}134#menu-buttons ul li {135height: 40px;136line-height: 40px;137font-size: 120%;138}139140.controlSound {141background: url('img/audio-icon.png');142width: 73px;143height: 50px;144position: relative;145bottom: 5px;146background-size: 100%;147height: 25px;148width: 36px;149float: right;150}151152#mute {153display: none;154width: 36px;155height: 25px;156}157158.controlButton {159display: inline-block;160width: 90px;161height: 90px;162margin: 5px;163background: none repeat scroll 0% 0% #C80A0A;164line-height: 70px;165border-radius: 50%;166font-weight: bold;167font-size: 60px;168cursor: pointer;169}170.controlButton:hover, .controlButton:active {171background: #c00202;172}173174.description { display: none; }175176@media screen and (max-width: 1050px) {177html, body { background: rgb(0,0,0);}178}179@media screen and (max-width: 650px) {180.game { width: 93%;}181.content { max-width: none; }182#menu-buttons .button { background: rgba(255,255,255,0.1); }183.button:hover { background: rgba(255,255,255,0.3); }184.button#back { top: 0; }185}186187@media screen and (max-width: 400px) {188189.nomobile {display: none; }190.mobile {display: block; }191192html, body {193overflow-x: hidden;194height: 100%;195}196197.main { margin: 10px auto; }198.content { min-height: 0; }199200.controlButton {201width: 60px;202height: 60px;203line-height: 40px;204font-size: 40px;205}206.controls-right .controlButton { right: -55%; }207/*canvas#myCanvas { margin: 5px auto; } */208209}210211212