diff --git a/gameboard-easy.html b/gameboard-easy.html index 58e0004..9ee0c89 100644 --- a/gameboard-easy.html +++ b/gameboard-easy.html @@ -20,6 +20,30 @@ body { flex-direction: column; } +/* OVERLAY COUNTDOWN */ +#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; } +} + .topbar { display: flex; justify-content: space-between; @@ -67,7 +91,7 @@ body { grid-template-rows: repeat(3, 1fr); gap: 10px; padding: 10px; - box-sizing: border-box; + box-sizing: border-box; } .card { @@ -200,38 +224,25 @@ body { font-weight: 600; } -.gameboard { - flex: 1; - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 16px; - padding: 25px 40px; - box-sizing: border-box; - place-items: center; -} - -.card { - width: 100%; - aspect-ratio: 4 / 3; - perspective: 1000px; - cursor: pointer; -} - .play-again { background: #b700ff; color: white; } .leaderboard { background: gold; } .back-menu { background: #444; color: white; } -@keyframes fadeIn { - from { opacity:0; transform: scale(0.8); } - to { opacity:1; transform: scale(1); } -} - -@media (max-width: 700px) { - .gameboard { - grid-template-columns: repeat(3, 1fr); - padding: 12px; - gap: 10px; - } +.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; } @media (max-width: 700px) { @@ -241,11 +252,22 @@ body { gap: 10px; } } -
+ + + + + + + + + + +Anda berhasil menyelesaikan permainan!
+Anda berhasil menyelesaikan permainan!