body {
    font-family: game, Arial, Helvetica, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    color: white;
    background-color: #222;
}

body:hover {
    cursor: default;
}

section {
    color: white;
    font-family: game, Arial, Helvetica, sans-serif;
    width: 100%;
    height: 100%;
}

/* ---- */

div#codeMessage {
    position: absolute;
    display: none;
    left: 10px;
    top: 10px;
    min-height: 40px;
    min-width: 140px;
    line-height: 40px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(16, 16, 16);
    animation: codeMessage 0.3s linear;
}

div#fpsDisplay {
    position: absolute;
    top: 5px;
    right: 5px;
}

a#owner {
    font-size: 13px;
    position: absolute;
    bottom: 5px;
    right: 5px;
}

div#game {
    display: grid;
    /*position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 30vw;
    height: 32vw;*/
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translateX(-50%) translateY(-50%);
    width: 69vh;
    height: 70vh;
    background-color: black;
}

canvas#gameCanvas {
    display: block;
    grid-row: 2;
    background-color: black;
    width: 100% ;
    /*image-rendering: pixelated;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;*/
}

canvas#gameCanvas:hover {
    cursor: pointer;
}

/* ---- */

div#gameHUD {
    position: relative;
    grid-row: 1;
    display: block;
    font-size: 25px;
    height: 60px;
    width: 100%;
    background-color: black;
}

span#highScoreTitle {
    display: none;
    font-size: 28px;
    margin-top: 0px;
}

span#highScore {
    display: none;
    text-align: center;
    margin-top: 3px;
}

span#score {
    display: none;
    position: absolute;
    text-align: left;
    bottom: 5px;
    left: 5px;
}

span#level {
    display: none;
    position: absolute;
    text-align: right;
    bottom: 5px;
    right: 5px;
}

/* ---- */

div#gameHUD2 {
    display: block;
    position: relative;
    grid-row: 3;
    height: 35px;
    width: 100%;
    background-color: black;
}

span#codesUsed {
    display: none;
    text-align: right;
    font-size: 20px;
    margin-right: 5px;
    margin-top: 10px;
    color: red;
}

img.pacmanLife {
    position: absolute;
    bottom: 4px;
    width: 25px;
    height: 25px;
    transform: rotateZ(180deg);
}

/* ---- */

div#mobileButtonsContaner {
    display: none;
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    height: 148px;
    width: 250px;
}

button.mobileButtons {
    width: 70px;
    height: 70px;
    margin: 6px;
    background-color: rgb(70, 70, 70);
    border: solid rgb(16, 16, 16) 2px;
    background-position: center;
}

button.mobileButtons:focus {
    background-color: rgb(50, 50, 50);
}

div.mobileButtonsSeparator {
    width: 100%;
    height: 0px;
}

button.mobileButtons#mobileButtonUp {
    margin: 0 auto;
    background-image: url(/imgs/pac-man/Arrows/arrow-up.png);
}

button.mobileButtons#mobileButtonDown {
    background-image: url(/imgs/pac-man/Arrows/arrow-down.png);
}

button.mobileButtons#mobileButtonLeft {
    background-image: url(/imgs/pac-man/Arrows/arrow-left.png);
}

button.mobileButtons#mobileButtonRight {
    background-image: url(/imgs/pac-man/Arrows/arrow-right.png);
}