diff --git a/public/index.html b/public/index.html index aa6d9eee404ae92e292bf15b2945477ea16761dc..51117586e7869b0a222ec3d4a58058a88b5feacc 100644 --- a/public/index.html +++ b/public/index.html @@ -1,5 +1,6 @@ + @@ -39,6 +40,35 @@ margin-bottom: 30px; } + #menu-bar { + position: absolute; + bottom: 0; + width: 100%; + background: rgba(0, 0, 0, 0.4); + color: white; + display: flex; + justify-content: space-around; + padding: 10px; + z-index: 10; + } + + .menu-item { + cursor: pointer; + padding: 10px 20px; + background: rgba(255, 255, 255, 0.1); + border-radius: 5px; + transition: background-color 0.3s; + } + + .menu-item:hover { + background: rgba(255, 255, 255, 0.3); + } + + .menu-item.active { + background: rgba(255, 255, 255, 0.5); + font-weight: bold; + } + button { background-color: #4CAF50; color: white; @@ -58,47 +88,23 @@ button:active { background-color: #387a39; } - - #menu { - display: none; - position: fixed; - bottom: 0; - left: 0; - width: 100%; - background: rgba(0, 0, 0, 0.7); - justify-content: center; - align-items: center; - padding: 10px; - gap: 15px; - overflow-x: auto; - z-index: 1000; /* Sicherstellen, dass über canvas liegt */ - } - #menu img { - width: 50px; - height: 50px; - cursor: pointer; - border-radius: 5px; - border: 2px solid transparent; - transition: transform 0.2s, border-color 0.2s; - } - #menu img:hover { - transform: scale(1.2); - border-color: #fff; - } - #menu img.selected { - border-color: #4CAF50; - } - + -