diff --git a/css/style.css b/css/style.css index 4192d15..4e56d59 100644 --- a/css/style.css +++ b/css/style.css @@ -8,17 +8,66 @@ left: 0; height: 100%; width: 100%; + border-radius: 10px; } .bg { z-index: -1; background-color: rgb(226, 233, 175); } - -#container { +.game { position: relative; height: 80vh; background-size: 100% 100%; aspect-ratio: 9 / 18; + z-index: 99; + transform: scale(0.9); + border-radius: 10px; + border: 1px solid black; +} +.container{ + position: relative; margin: auto; + height: min-content; + width: 400px; + background-color: rgb(158,173,134); + /* z-index: ; */ +} +button,.score{ + padding: 8px 16px; + color: white; + border: none; + border-radius: 4px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); + cursor: pointer; + transition: background-color 0.3s; +} +.start{ + position: absolute; + top: 50%; + left: 50%; + height: 50px; + width: 100px; + background-color: #328855; + transform: translate(-50%, -50%); + z-index: 99; +} +.start:hover{ + background-color: #64c88a; +} +.pause{ + display: none; + position: absolute; + background-color: brown; + top: 50%; + right: 0; +} +.score{ + position: absolute; + background-color: brown; + top: 20%; + right: 0; +} +.restart{ + display: none; } diff --git a/index.html b/index.html index 301adab..836d1ac 100644 --- a/index.html +++ b/index.html @@ -8,10 +8,15 @@
-