diff --git a/README.md b/README.md new file mode 100644 index 0000000..ad0e247 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Snake-Game +Classic Snake game from Nokia 3310 +_____ + +Created with Javascript + +live: [https://lucky-victory.github.io/Snake-Game/](https://lucky-victory.github.io/Snake-Game/) diff --git a/index.css b/index.css index 43d533d..1999efd 100644 --- a/index.css +++ b/index.css @@ -9,12 +9,12 @@ body, html { } canvas { - box-shadow: black 10px 10px 30px; + box-shadow: #0007 10px 10px 30px ; } button { - margin: 3em 0; - padding: 5px 8px; + margin: 2em 0; + padding: 6px 10px; border: 2px solid rgb(109, 109, 109); box-shadow: rgb(177, 177, 177) 5px 5px 8px; color: black; @@ -29,4 +29,21 @@ button:focus { background-color: black; color: white; transition: 0.3s ease-in-out; +} +.control-btns-container{ + position: relative; + padding: 20px; + margin: 2em; +} +.up,.down{ + position: absolute; + left: 50%; + transform: translateX(-50%); +} +.up{ + top:-20px; + +} +.down{ + bottom: -20px; } \ No newline at end of file diff --git a/index.html b/index.html index 470ed9a..8f0e830 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,12 @@