-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
208 lines (175 loc) · 3.75 KB
/
style.css
File metadata and controls
208 lines (175 loc) · 3.75 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/* General Styles */
body {
font-family: Arial, sans-serif;
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
color: #333;
margin: 0;
padding: 0;
}
@keyframes gradient {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.container {
max-width: 600px;
margin: 50px auto;
padding: 20px;
background: rgba(255, 255, 255, 0.9);
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #6200ea;
}
.task-input {
display: flex;
margin-bottom: 20px;
}
.task-input input {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
.task-input button {
padding: 10px 20px;
background-color: #6200ea;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
margin-left: 10px;
}
.task-input button:hover {
background-color: #3700b3;
animation: bounce 0.5s;
}
.task-list ul {
list-style: none;
padding: 0;
}
.task-list li {
display: flex;
justify-content: space-between;
padding: 10px;
background: #f9f9f9;
border: 1px solid #ddd;
border-radius: 5px;
margin-bottom: 10px;
animation: fadeIn 0.5s ease;
}
.task-list li.completed {
text-decoration: line-through;
color: #888;
}
.task-list button {
background: #ff4081;
color: #fff;
border: none;
border-radius: 5px;
padding: 5px 10px;
cursor: pointer;
}
.task-list button:hover {
background: #f50057;
}
.points {
text-align: center;
margin: 20px 0;
}
.points h2 {
color: #009688;
}
.leaderboard {
margin-top: 20px;
}
.leaderboard ol {
list-style: none;
padding: 0;
}
.leaderboard li {
padding: 10px;
background: #e0f7fa;
border: 1px solid #80cbc4;
border-radius: 5px;
margin-bottom: 5px;
}
.progress-bar {
width: 100%;
height: 20px;
background-color: #e0e0e0;
border-radius: 10px;
overflow: hidden;
}
.progress-fill {
height: 100%;
width: 0%;
background-color: #6200ea;
border-radius: 10px;
transition: width 0.5s ease;
}
.timer {
text-align: center;
margin: 20px 0;
}
#time {
font-size: 48px;
font-weight: bold;
margin: 10px 0;
}
.timer button {
padding: 10px 20px;
margin: 5px;
background-color: #6200ea;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
.timer button:hover {
background-color: #3700b3;
}
.quote {
text-align: center;
margin: 20px 0;
}
#quote-text {
font-style: italic;
color: #555;
}
/* Dark Mode */
body.dark-mode {
background: #121212;
color: #ffffff;
}
body.dark-mode .container {
background: #1e1e1e;
}
body.dark-mode .task-list li {
background: #2d2d2d;
border-color: #444;
}
body.dark-mode .progress-bar {
background-color: #444;
}
body.dark-mode .leaderboard li {
background: #333;
border-color: #555;
}
body.dark-mode #quote-text {
color: #ccc;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}