From ec3ec011fc9d37bf3b8235e7d08f39557b260849 Mon Sep 17 00:00:00 2001 From: 5803025031 Date: Sun, 30 Nov 2025 22:02:42 -0500 Subject: [PATCH] Update style.css --- style.css | 129 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 103 insertions(+), 26 deletions(-) diff --git a/style.css b/style.css index 004de07..f8ff9de 100644 --- a/style.css +++ b/style.css @@ -1,32 +1,109 @@ -/* Basic layout */ -body{ - font-family: Arial; - text-align: center; - background: wheat; -} -#game{ - width: 450px; - margin: auto; - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 10px; -} -.card{ - width: 100px; - height: 100px; - background: #333; - border-radius: 10px; +/* style.css */ +body { + font-family: 'Orbitron', sans-serif; /* Font futuristik */ + background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%); + color: white; + margin: 0; + height: 100vh; display: flex; justify-content: center; align-items: center; - font-size: 45px; - color: white; + overflow: hidden; +} + +.main-wrapper { + position: relative; + text-align: center; +} + +.game-title { + font-size: 2.5rem; + margin-bottom: 15px; + letter-spacing: 3px; + color: #0ff; + text-shadow: 0 0 10px #0ff, 0 0 20px #0ff; /* Efek Glow Teks */ +} + +#game-container { + position: relative; + border-radius: 12px; + padding: 5px; + background: linear-gradient(45deg, #0ff, #f0f); /* Border gradasi */ + box-shadow: 0 0 30px rgba(0, 255, 255, 0.3); +} + +canvas { + background-color: #121212; + display: block; + border-radius: 8px; + /* Grid background effect dibuat di JS, tapi base color gelap */ +} + +/* Tampilan Skor saat main (pojok kiri atas canvas) */ +#ingame-score { + position: absolute; + top: 20px; + left: 20px; + font-size: 3rem; + color: rgba(255, 255, 255, 0.1); + font-weight: bold; + pointer-events: none; +} + +/* UI Game Over (Glassmorphism) */ +#ui-layer { + position: absolute; + top: 0; left: 0; right: 0; bottom: 0; + background: rgba(0, 0, 0, 0.75); + backdrop-filter: blur(5px); + display: none; + flex-direction: column; + align-items: center; + justify-content: center; + border-radius: 8px; + z-index: 10; +} + +#status-text { + font-size: 2rem; + color: #ff0055; + text-shadow: 0 0 10px #ff0055; + margin-bottom: 20px; +} + +.score-box { + margin-bottom: 20px; +} +.score-box p { margin: 0; font-size: 0.8rem; color: #aaa; } +.score-box span { font-size: 3rem; color: white; } + +.btn { + background: transparent; + color: #0ff; + border: 2px solid #0ff; + padding: 12px 30px; + font-family: 'Orbitron', sans-serif; + font-size: 1.2rem; cursor: pointer; + border-radius: 50px; + transition: 0.3s; + text-transform: uppercase; + box-shadow: 0 0 10px #0ff; } -.card.open{ - background: #4caf50; + +.btn:hover { + background: #0ff; + color: #000; + box-shadow: 0 0 20px #0ff, 0 0 40px #0ff; } -.card.matched{ - background: #2196f3; - cursor: default; -} \ No newline at end of file + +#score-board { + margin-top: 20px; + background: rgba(255, 255, 255, 0.05); + padding: 10px 20px; + border-radius: 50px; + display: inline-block; + border: 1px solid rgba(255, 255, 255, 0.1); +} +#score-board .label { font-size: 0.7rem; color: #888; display: block; } +#high-score-display { font-size: 1.5rem; color: #ffd700; text-shadow: 0 0 5px #ffd700; } \ No newline at end of file