-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
77 lines (65 loc) · 1.16 KB
/
style.css
File metadata and controls
77 lines (65 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background: linear-gradient(135deg, #e0e7ff 0%, #f0f2f5 100%);
}
.counter-display {
font-size: 4rem;
font-weight: bold;
margin: 1rem 0;
color: #2c3e50;
transition:
transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275),
color 0.3s ease;
display: inline-block;
}
.counter-display:hover {
transform: scale(1.05);
}
.buttons {
display: flex;
gap: 10px;
justify-content: center;
}
.btn {
padding: 10px 20px;
font-size: 1.2rem;
cursor: pointer;
border: none;
border-radius: 5px;
transition:
background-color 0.3s,
transform 0.1s;
}
.btn:active {
transform: scale(0.98);
}
.decrease {
background-color: #e74c3c;
color: white;
}
.decrease:hover {
background-color: #c0392b;
}
.reset {
background-color: #95a5a6;
color: white;
}
.reset:hover {
background-color: #7f8c8d;
}
.increase {
background-color: #2ecc71;
color: white;
}
.increase:hover {
background-color: #27ae60;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-6px); }
75% { transform: translateX(6px); }
}