File size: 4,436 Bytes
ecd3201
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Fullscreen canvas for the Three.js scene */
canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

.lil-gui {
    font-size: 16px; /* Set this to your desired font size */
}

.info-box {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5); /* Light semi-transparent background */
    color: white; /* White text for contrast */
    padding: 15px;
    /*border-radius: 15px; !* Rounded corners *!*/
    width: 220px;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3); /* Optional light shadow */
}

#scrubber {
    width: 325px;
}

.player {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;

    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 600px;
}

.player button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player button i {
    color: white;
}

.player button:hover i,
.player button:focus i,
.player button:active i {
    color: white;
}


/* Progress Bar Container */
.progress-bar-container {
    position: relative;
    flex-grow: 2;
    margin: 0 10px;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: visible; /* Changed from hidden to visible */
    width: 100%;
    display: flex;
}

/* Scrubber (input range) */
.progress-bar {
    appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: transparent; /* Changed from black to transparent */
    position: relative;
    z-index: 3; /* Increased z-index */
    cursor: pointer;
    margin: 0;
}

/* WebKit Thumb */
.progress-bar::-webkit-slider-thumb {
    appearance: none;
    width: 16px; /* Slightly increased size */
    height: 16px; /* Slightly increased size */
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5); /* Increased shadow */
    z-index: 4; /* Highest z-index to ensure it's on top */
    position: relative;
}

/* Mozilla Thumb */
.progress-bar::-moz-range-thumb {
    width: 16px; /* Slightly increased size */
    height: 16px; /* Slightly increased size */
    background-color: white;
    border: none; /* Remove default border */
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5); /* Increased shadow */
    z-index: 4; /* Highest z-index to ensure it's on top */
    position: relative;
}

/* Buffered Bar */
.buffered-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #aaa;
    z-index: 1;
    border-radius: 5px;
    pointer-events: none;
}

/* Played Bar */
.played-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #3498db;
    z-index: 2;
    border-radius: 5px;
    pointer-events: none;
}

.time {
    color: white;
    font-size: 16px;
    text-align: center;
}

.time-container {
    display: flex;
    justify-content: space-between;
    width: 100px;
}

.volume-container {
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.volume-icon-container {
    color: white;
    width: 20px;
    text-align: center;
}

.volume-bar {
    appearance: none;
    width: 80px;
    height: 5px;
    background-color: #555;
    border-radius: 5px;
    outline: none;
}

.volume-bar::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-icon {
    color: white;
    font-size: 16px;
}

/* Ensure volume icon stays white during interaction */
.volume-icon:hover,
.volume-icon:focus,
.volume-icon:active,
.volume-icon-container:hover i,
.volume-icon-container:focus i,
.volume-icon-container:active i {
    color: white;
}