Relento
first commit.
ecd3201
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;
}