-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
307 lines (258 loc) · 7.77 KB
/
styles.css
File metadata and controls
307 lines (258 loc) · 7.77 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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap');
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0; /* Light background for the body */
display: flex;
justify-content: center;
align-items: center;
flex-direction: column; /* Stack elements vertically */
height: 100vh;
overflow: hidden; /* Prevent body overflow */
}
.container {
background-color: rgba(255, 255, 255, 0.1);
padding: 3rem;
border-radius: 20px;
box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
text-align: center;
max-width: 500px; /* Limit the width */
width: 100%; /* Ensure it adapts to screen size */
margin: 0 auto; /* Center the container */
overflow-y: auto; /* Enable vertical scrolling */
max-height: 80vh; /* Set max height */
}
h1 {
font-family: 'Poppins', sans-serif; /* Use the imported Poppins font */
font-size: 3rem; /* Adjust font size */
font-weight: 600; /* Use a bold weight for emphasis */
background: linear-gradient(to right, #ff0000, #ffffff); /* Red to white gradient */
-webkit-background-clip: text; /* Clip background to text */
-webkit-text-fill-color: transparent; /* Make text transparent to show gradient */
text-align: center; /* Center the title */
margin: 20px 0; /* Add margin for spacing */
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Shadow for depth */
letter-spacing: 1px; /* Increase space between letters */
}
h2 {
font-size: 3rem; /* Adjust size for the subheading */
margin-top: 1rem; /* Add margin for spacing */
}
.big-text {
font-size: 6rem;
line-height: 1;
margin: 0;
transition: all 0.3s ease;
}
.countdown-el {
text-align: center;
background-color: rgba(255, 255, 255, 0.15);
padding: 1rem 2rem;
border-radius: 10px;
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
min-width: 120px;
transition: transform 0.3s ease;
}
.countdown-el:hover {
transform: scale(1.05);
}
.countdown-el span {
font-size: 1.5rem;
display: block;
margin-top: 0.5rem;
}
.music-player {
background: #fff; /* Light background for the player */
border-radius: 15px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Keep the shadow for depth */
width: 100%; /* Make sure it's responsive */
max-width: 350px; /* Prevent it from getting too large */
padding: 20px;
text-align: center;
transition: background-color 0.3s ease, color 0.3s ease;
margin: 2rem auto; /* Center the player with auto margins */
position: relative; /* Ensure that content remains relative to this container */
overflow: hidden; /* Hide any overflow content (like animations spilling out) */
}
.player-info {
position: relative; /* Maintain relative positioning for absolute children */
display: flex; /* Use flex to align items */
align-items: center; /* Center items vertically */
}
#cover {
width: 70px; /* Set the width of the cover image */
height: 70px; /* Set the height of the cover image */
border-radius: 10px; /* Round the edges of the image */
margin-right: 20px; /* Space between image and text */
margin-bottom: -10px; /* Move the cover image up */
}
.song-details {
position: relative; /* Keep song details in normal flow */
text-align: center; /* Center the text */
color: white; /* Set text color for contrast */
z-index: 1; /* Ensure text is above the cover */
max-width: 150px; /* Set a max-width for the text area */
white-space: nowrap; /* Prevent wrapping */
overflow: hidden; /* Hide overflow text */
text-overflow: ellipsis; /* Show ellipsis for overflowed text */
margin-left: 10px; /* Add margin to the left for spacing */
}
#song-title {
margin: 0; /* Remove default margin */
padding: 0; /* Remove default padding */
font-size: 16px; /* Adjust font size as needed */
color: #333; /* Dark text color for light mode */
}
#artist-name {
margin: 0; /* Remove default margin */
padding: 0; /* Remove default padding */
font-size: 10px; /* Adjust font size as needed */
color: #333; /* Dark text color for light mode */
}
.controls {
margin-top: 15px; /* Add margin to create space between player and buttons */
}
button {
padding: 10px 15px;
margin: 0 5px;
border: none;
background-color: #007BFF; /* Primary button color */
color: white;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease; /* Button transition */
}
button:hover {
background-color: #0056b3; /* Darker shade on hover */
}
#play-btn.active {
background-color: #ff4444; /* Active play button color */
}
.progress-container {
margin-bottom: 10px;
}
#progress-bar {
-webkit-appearance: none; /* Removes default styling */
appearance: none; /* Removes default styling */
height: 8px; /* Height of the progress bar */
background: #ddd; /* Light background of the progress bar */
border-radius: 5px; /* Round edges */
}
#progress-bar::-webkit-slider-thumb {
-webkit-appearance: none; /* Removes default thumb styling */
appearance: none; /* Removes default thumb styling */
width: 16px; /* Width of the thumb */
height: 16px; /* Height of the thumb */
background: #007BFF; /* Thumb color */
border-radius: 50%; /* Round thumb */
cursor: pointer; /* Pointer on hover */
}
.volume-control {
margin-top: 15px;
}
.volume-control label {
color: #333; /* Ensure volume label is visible in light mode */
}
#volume-bar {
width: 100%;
}
.song-list {
margin-top: 15px;
text-align: left;
display: none; /* Hide by default */
max-height: 200px; /* Set a maximum height */
overflow-y: auto; /* Enable vertical scrolling */
}
#song-list {
list-style: none;
padding-left: 0;
}
#song-list li {
cursor: pointer;
padding: 10px;
margin-bottom: 5px;
background-color: #f5f5f5; /* Light background for song list items */
border-radius: 5px;
border: 1px solid transparent; /* Transparent border */
transition: border 0.3s; /* Smooth transition */
}
#song-list li:hover {
background-color: #007BFF; /* Highlight color on hover */
color: white; /* White text on hover */
border: 1px solid #007BFF; /* Border on hover */
}
#visualizer {
margin-top: 15px;
}
.dark-mode {
background-color: #222; /* Dark background for the body */
color: #ddd; /* Light text color */
}
.dark-mode .music-player {
background-color: #333; /* Dark background for the player */
border: 2px solid #444; /* Add border for distinction */
}
.dark-mode #song-title,
.dark-mode #artist-name {
color: #fff; /* Light text color for dark mode */
}
.dark-mode #current-time,
.dark-mode #duration,
.dark-mode .volume-control label {
color: #fff; /* Light text color for various elements */
}
.dark-mode button {
background-color: #444; /* Dark button background */
color: white; /* Button text color */
}
.dark-mode #song-list li {
background-color: #555; /* Dark background for song list items */
}
.dark-mode #song-list li:hover {
background-color: #007BFF; /* Highlight color on hover */
}
.player-info {
position: relative; /* Allow absolute positioning for children */
}
#song-list-btn {
margin-top: 10px;
background-color: #28a745; /* Green background for song list button */
}
#dark-mode-btn {
margin-top: 10px;
}
/* Responsive Styles */
@media (max-width: 400px) {
.music-player {
width: 90%; /* Make the player wider on small screens */
}
}
@media (min-width: 401px) and (max-width: 600px) {
.music-player {
width: 60%; /* Moderate width for medium screens */
}
}
@media screen and (max-width: 800px) {
h2 {
font-size: 2rem;
}
.big-text {
font-size: 2.5rem;
line-height: 1;
margin: 0;
}
.countdown-el {
min-width: 80px;
padding: 0.5rem 1rem;
}
.countdown-el span {
font-size: 1rem;
}
.container {
padding: 2rem 1rem; /* Reduce padding on smaller screens */
}
}