Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,10 @@ main {
padding: 7px 16px;
font-weight: 700;
font-size: 1em;
transition: transform .11s, background .19s;
/* IMPORTANT: Added vertical offset shadow for 'lift' */
box-shadow: 0 4px 0 #2eac10; /* Darker shade of accent for the 'bottom' */
transition: all 0.1s ease; /* Changed from separate transforms/backgrounds to 'all' for simplicity */
cursor: pointer;
box-shadow: 0 2px 8px #18142a27;
}
.game-btn:hover{
transform: translateY(-2px);
Expand All @@ -219,16 +220,21 @@ main {
}

.game-btn:active {
transform: scale(0.93);
background: var(--bg);
color: var(--accent);
box-shadow: 0 0 10px var(--accent);
/* 1. Darker background-color */
background: #2eac10; /* Slightly darker green than --accent */
/* 2. Small downward shift (3px) */
transform: translateY(4px); /* Shift down by the height of the box-shadow */
/* 3. Remove shadow to simulate 'pushed-in' */
box-shadow: 0 0 0 #2eac10; /* Shadow is gone, button is flush */
}

.game-btn:disabled {
background: #353741;
color: #888;
cursor: not-allowed;
/* Ensure disabled buttons stay 'unpressed' */
box-shadow: none; /* remove the lifted shadow when disabled */
transform: none;
}

#leaderboard-section {
Expand Down