diff --git a/assets/sounds/menu_click.wav b/assets/sounds/menu_click.wav new file mode 100644 index 0000000..64df55d Binary files /dev/null and b/assets/sounds/menu_click.wav differ diff --git a/assets/textures/button_off.png b/assets/textures/button_off.png new file mode 100644 index 0000000..119d507 Binary files /dev/null and b/assets/textures/button_off.png differ diff --git a/assets/textures/button_on.png b/assets/textures/button_on.png new file mode 100644 index 0000000..d1d8d77 Binary files /dev/null and b/assets/textures/button_on.png differ diff --git a/assets/textures/options.png b/assets/textures/options.png new file mode 100644 index 0000000..f065e3c Binary files /dev/null and b/assets/textures/options.png differ diff --git a/cards.css b/cards.css index c7bfa27..c65da2e 100644 --- a/cards.css +++ b/cards.css @@ -12,7 +12,14 @@ * { transition: .3s; } - +.noSelect { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} .card { cursor: pointer; padding-bottom: 85%; @@ -75,6 +82,7 @@ body { top: 0px; right: 0px; display: flex; + flex-direction: column; justify-content: center; align-items: center; color: #fff; @@ -85,7 +93,33 @@ body { text-shadow: -5px 14px 20px rgb(0, 0, 0); cursor: pointer; } - +#options-window { + position: absolute; + background-color: #000000d4; + height: 100%; + width: 100%; + z-index: 99999; + top: 0px; + right: 0px; + /* display: flex; */ + flex-direction: column; + justify-content: center; + align-items: center; + color: #fff; + /* font-weight: 900; */ + font-size: 1vw; + font-family: "8-bit-pusab"; + /* -webkit-text-stroke: 1px rgb(10, 10, 10); */ + text-shadow: -3px 5px 20px rgb(0, 0, 0); + cursor: pointer; + display: none; +} +.shownumbers-button{ + display: flex; +} +#button-text-01{ + width: 21vw; +} .printid:after { content: attr(id); position: absolute; @@ -96,7 +130,7 @@ body { display: flex; flex-direction: row; justify-content: space-around; - font-size: 18px; + font-size: 100%; color: #fff; font-family: "8-bit-pusab"; } @@ -108,5 +142,79 @@ body { } #health { - min-width: 170px; + /* min-width: 170px; */ + min-width: 33%; +} +.settings{ + font-size: 50%; +} +.cardspeed{ + + display: flex; + align-items: center; + width: fit-content; +} +#range-value{ + margin: 0 7px; +} +#start-the-game *:hover::before { + content:'> '; +} +#options-window div{ + margin: 1vh 0; +} +/* Menu button */ +.menu-nav-button{ + font-family: "8-bit-pusab"; + background-color: #ff0000; + border: none; + color: white; + padding: 5px 19px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 11px; +} +/* Slider style */ +.slider { + -webkit-appearance: none; + width: 25%; + height: 15px; + background: #d3d3d3; + outline: none; + opacity: 0.7; + -webkit-transition: .2s; + transition: opacity .2s; + margin: 6; +} + .slider::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: 15px; + height: 15px; + background: #ff0000; + cursor: pointer; + } + .slider::-moz-range-thumb { /* Same thing in firefox as above */ + width: 15px; + height: 15px; + background: #ff0000; + cursor: pointer; + border-radius: 0px; + border: 0px solid + transparent; + } + + /* slider ends */ +@media screen and (max-width: 513px) { + .stats { + font-size: 64%; + } + #health{ + width: 118px; + min-width: unset; + } + #health img { + width: 20%; + } } \ No newline at end of file diff --git a/index.php b/index.php index 45a25c0..f6ae372 100644 --- a/index.php +++ b/index.php @@ -5,7 +5,8 @@ - + +