SnakeGame/assets/style.css
2020-03-23 18:25:46 +01:00

64 lines
869 B
CSS

@font-face {
font-family: 'MachineScript';
font-style: normal;
font-weight: 400;
src: url(./MachineScript.ttf) format('truetype');
}
html, body {
width: 100%;
height: 100%;
margin: 0;
}
html {
background-color: #29292a;
}
body {
font-family: MachineScript;
color: white;
display: flex;
justify-content: center;
align-items: center;
background: url(./grass.png);
}
#backlayer {
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background-color: #000000d6;
z-index: 1;
}
#startScreen {
text-align: center;
z-index: 2;
}
#startScreen ul {
list-style: none;
line-height: 30px;
padding: 0px;
}
a {
color: white;
}
a:hover {
color: darkgreen;
}
#gameScreen {
z-index: 2;
text-align: center;
}
canvas {
margin-bottom: 20px;
}