.hidden {
    display:none;
}
.visible {
}
html {
}

a:link, a:visited {
    color: #9E9E9E;
}

div#copyright {
    display: inline;
    margin-right: 5pt;
}

div#socials {
    display: inline;
}

div#footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #9E9E9E;
    height: 30pt;
    font-size: 1.0em;
}
div#footer div {
    margin-bottom: 10px;
    margin-top: 0;
}

body {
    font-family: Lato, sans-serif;
    font-size: 16px;
    color: #CFD8DC;
    margin-left: 20px;
    margin-right: 20px;
    background-color: #212121;
    overflow: hidden;
}

div#content {
    max-width: 1100px;
    margin: auto;
    margin-bottom: 50px;
}

div#playing {
    max-width: 90vh;
}

div#game {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: calc(90vh - 60pt);
}

div#submit_score_wrapper {
    /*display: inline;*/
}
div#submit_score_div {
    margin: 0 auto;
    width: 360pt;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 15pt;
    padding: 2pt;
}
button#submit_score {
    height: 30pt;
    width: 70pt;
    font-size: 15pt;
}
input#input_name {
    height: 30pt;
    width: 60vw;
    font-size: 15pt;
    border-radius: 0;
    border:1px solid #37474F;
    background-color: #263238;
    color: #CFD8DC;
    margin-right: 5pt;
    padding: 2pt;
}

div#touch_controls_wrapper {
    height: 100%;
}

div#touch_controls {
    height: 100%;
    display: grid;
}
button {
    border-radius: 0;
    color: #CFD8DC;
    background-color: #263238;
    border:1px solid #37474F;
    margin: 2pt;
}
button:disabled,
button[disabled] {
    color: #263238;
    background-color: #757575;
}
button#move_left {
    grid-row: 2;
    grid-column: 1;
}
button#move_down {
    grid-row: 3;
    grid-column: 2;
}
button#move_up {
    grid-row: 1;
    grid-column: 2;
}
button#move_right {
    grid-row: 2;
    grid-column: 3;
}

rect.food {
    fill: #E65100;
    stroke-width: 0.5;
    stroke: #BF360C;
}
rect.snake {
    fill: #9E9E9E;
    stroke-width: 0.5;
    stroke: #757575;
}
rect.snake_head {
    fill: #EEEEEE;
    stroke-width: 0.5;
    stroke: #757575;
}
rect.highscore_background {
    fill: #263238;
    fill-opacity: 0.7;
    stroke-width: 1;
    stroke: #37474F;
}
rect#pan_rect {
    fill: none;
}
text {
    fill: #CFD8DC;
}
text.you {
    fill: #E65100;
}

/*  Main game board */
svg#game_svg {
    position: absolute;
    left: 0px;
    top: 0px;
    pointer-events: none;
}

/*  Background divs to create nice sharp rectangles */
div.background {
    position: absolute;
    border:1px solid #37474F;
    background-color: #263238;
}
div#board {
    left: 0px;
    top: 0px;
    width: calc(100%);
    height: calc(87.5%);
}

div#svg_div {
    margin-bottom: 10px;
    position: relative;
}

