@import url('https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap');


* {
    font-family: 'Press Start 2P', 'Helvetica', 'Arial', sans-serif;
}

a {
    color: #2ecc71;
}

body {
    margin: 0;
    padding: 0;
    font-size: 12px;
    background: #333;
    color: #fff;
}

div.game-logs {
    display: none;
}

div#screen {
    position: absolute;
    left: 50%;
    width: 500px;
    height: 500px;
    overflow: hidden;
    margin: auto;
    margin-top: 40px;
    margin-bottom: 20px;
    margin-left: -250px;
    border-radius: 8px;
    -webkit-box-shadow: 0px 0px 24px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 24px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 24px 0px rgba(0,0,0,0.75);
}

div#screen.full {
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
}

div#screen.full #player {
    left: 50%;
    top: 50%;
    margin-left: -32px;
    margin-top: -32px;
}

div#game-over {
    display: none;
    opacity: 0;
    font-size: 1.5em;
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 500px;
    background: rgba(255,99,71, 0.7);
    text-align: center;
    transition-delay: 1s;
    transition-property: opacity;
    transition-duration: 1s;
}

div#game-over span {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

div#dialog {
    width: calc(100% - 20px);
    background: rgba(255, 255, 255, 0.7);
    bottom: 0;
    position: absolute;
    color: #000;
    border-radius: 4px;
    margin: 10px;
    padding: 10px;
    box-sizing: border-box;
    line-height: 20px;
    overflow: hidden;
    transition: opacity 1s;
    opacity: 0;
}

div#dialog.open {
    opacity: 1;
}

canvas#map {
    position: absolute;
    transition: margin 1s ease 0s;
}

h1 {
    font-size: 3em;
    font-family: 'Press Start 2P';
  }
.center {
    text-align: center;
}

.health-display {
    font-size: 1.5em;
    margin-top: 25px;
}

.health-display.good {
    color: #2ecc71;
}

.health-display.bad {
    color: #f39c12;
}

.health-display.critical {
    color: #e74c3c;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

#github-banner {
    position: absolute;
    right: 0;
    top: 0;
}