From d753faf96d668c136d3f27e5ce4cb9e4deea06cb Mon Sep 17 00:00:00 2001 From: Yustina Date: Mon, 15 Dec 2025 23:33:58 +0700 Subject: [PATCH] edit:update music + countdown --- gameboard-hard.html | 234 +++++++++++++++++++++++++++++++++----------- 1 file changed, 177 insertions(+), 57 deletions(-) diff --git a/gameboard-hard.html b/gameboard-hard.html index 896e80f..37e35e5 100644 --- a/gameboard-hard.html +++ b/gameboard-hard.html @@ -19,6 +19,46 @@ body { flex-direction: column; } +/* --- TAMBAHAN CSS COUNTDOWN & MUSIC CONTROL --- */ +#countdown-overlay { + position: fixed; + top: 0; left: 0; width: 100%; height: 100%; + background: rgba(0,0,0,0.85); + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; + color: white; + font-size: 150px; + font-weight: 800; + display: none; +} + +.pulse-anim { + animation: pulse 1s ease-out infinite; +} + +@keyframes pulse { + 0% { transform: scale(1); opacity: 1; } + 100% { transform: scale(2); opacity: 0; } +} + +.music-control { + position: fixed; + bottom: 20px; + right: 20px; + z-index: 100; + background: white; + width: 45px; + height: 45px; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + box-shadow: 0 4px 10px rgba(0,0,0,0.3); + font-size: 20px; +} .topbar { display: flex; @@ -56,7 +96,6 @@ body { box-shadow: 0 3px 6px rgba(0,0,0,0.2), inset 0 0 6px rgba(255,255,255,0.6); } - .gameboard { flex: 1; display: grid; @@ -65,9 +104,9 @@ body { gap: 8px; padding: 10px; box-sizing: border-box; + place-items: center; } - .card { width: 100%; height: 100%; @@ -84,7 +123,6 @@ body { border-radius: 10px; } - .front, .back { position: absolute; width: 100%; @@ -116,7 +154,6 @@ body { filter: drop-shadow(0 3px 4px rgba(0,0,0,0.45)); } - .card:not(.flipped):hover .front { transform: scale(1.05); transition: 0.25s; @@ -124,14 +161,12 @@ body { .card.flipped .inner { transform: rotateY(180deg); } - .card.matched .front, .card.matched .back { border-color: #7affd6; box-shadow: 0 0 15px #7affd6, 0 0 30px rgba(122,255,214,0.8); } - .combo-popup { position: absolute; padding: 12px 20px; @@ -145,6 +180,7 @@ body { animation: comboFade 1.4s ease forwards; pointer-events: none; border: 2px solid rgba(255,255,255,0.35); + z-index: 100; } @keyframes comboFade { @@ -208,6 +244,17 @@ body { +
+ + + + + + + + +
🔇
+
@@ -218,29 +265,71 @@ body {
+
-
🎉 Selamat!
-

Anda berhasil menyelesaikan permainan!

+
🎉 Selamat!
+

Anda berhasil menyelesaikan permainan!

Skor Base: 0
Time Bonus: 0
Move Bonus: 0

-
Total Skor: 0
- -
- + \ No newline at end of file