This commit is contained in:
sotos
2025-12-10 13:56:56 +01:00
parent 9fab4a6a9d
commit 4fb9e846b2
4 changed files with 133 additions and 189 deletions

View File

@@ -5,53 +5,31 @@ body {
height: 100vh;
margin: 0;
font-family: 'VT323', monospace;
}
body,
.snake {
background-color: #414141;
}
#game-board {
border-radius: 100px;
display: grid;
grid-template-columns: repeat(20, 20px);
grid-template-rows: repeat(20, 20px);
margin: 5px;
}
.game-border-1 {
border: #595f43 solid 10px;
border-radius: 30px;
box-shadow: inset 0 0 0 10px #595f43;
}
.game-border-2 {
border: #abb78a solid 8px;
border-radius: 26px;
box-shadow: inset 0 0 0 10px #abb78a;
}
.game-border-3 {
border: #8b966c solid 30px;
border-radius: 20px;
box-shadow: inset 0 0 0 5px #8b966c;
}
#instruction-text {
position: absolute;
top: 60%;
color: #333;
width: 300px;
.container {
position: relative;
text-align: center;
text-transform: capitalize;
padding: 30px;
margin: 0;
}
#game-board {
width: 400px;
height: 400px;
display: grid;
grid-template-columns: repeat(20, 1fr);
grid-template-rows: repeat(20, 1fr);
background-color: #c4cfa3;
margin: 20px auto;
border-radius: 20px;
touch-action: none; /* verhindert Scrollen bei Swipe */
}
.scores {
display: flex;
justify-content: space-between;
width: 400px;
margin: auto;
}
#score {
@@ -70,20 +48,21 @@ body,
display: none;
}
.game-border-3,
#logo {
background-color: #c4cfa3;
#instruction-text {
color: #333;
margin-top: 10px;
}
.snake {
background-color: #414141;
border: #5a5a5a 1px dotted;
}
.food {
background-color: #dedede;
border: #999 5px solid;
border: #999 2px solid;
}
#logo {
position: absolute;
margin-top: 10px;
}