From e4c4a3795f31fadddce24e650634daf6f2c579a1 Mon Sep 17 00:00:00 2001 From: Jevinca Marvella Date: Tue, 2 Dec 2025 20:19:55 +0700 Subject: [PATCH] 2048 --- 2048.css | 31 +++++++++-- 2048.html | 143 +++++++++++++------------------------------------- Audio_2048.js | 28 ++++++++-- 3 files changed, 87 insertions(+), 115 deletions(-) diff --git a/2048.css b/2048.css index cc04407..252391e 100644 --- a/2048.css +++ b/2048.css @@ -1410,7 +1410,26 @@ h1 { position: fixed; top: clamp(10px, 2vh, 20px); left: clamp(10px, 2vw, 20px); - z-index: 100; + z-index: 101; + display: flex; + flex-direction: column; + gap: 12px; + align-items: flex-start; +} + +/* Backdrop Overlay untuk Mobile */ +.volume-backdrop { + display: none; + position: fixed; + inset: 0; + background: rgba(0, 0, 0, 0.75); + backdrop-filter: blur(8px); + z-index: 99; + animation: fadeIn 0.2s ease-out; +} + +.volume-backdrop.active { + display: block; } /* Main Sound Button */ @@ -1482,9 +1501,7 @@ h1 { /* Volume Panel */ .volume-panel { - position: absolute; - top: clamp(46px, 8vh, 60px); - left: 0; + display: none; background: linear-gradient(145deg, rgba(20, 0, 40, 0.98), rgba(30, 0, 50, 0.98)); backdrop-filter: blur(25px); border: 2px solid rgba(0, 217, 255, 0.4); @@ -1496,6 +1513,11 @@ h1 { 0 0 50px rgba(0, 217, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1); animation: slideDown 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); + z-index: 102; +} + +.volume-panel.active { + display: block; } @keyframes slideDown { @@ -1639,4 +1661,3 @@ h1 { font-size: 11px; } } - diff --git a/2048.html b/2048.html index 197dd56..2fbfa3d 100644 --- a/2048.html +++ b/2048.html @@ -3,7 +3,7 @@ - 2048 + 2048 - Neon Edition @@ -20,13 +20,12 @@
- - -
@@ -223,12 +208,7 @@