body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #090979;
background: linear-gradient(90deg, rgb(0, 157, 255) 0%, rgba(0, 212, 255, 1) 100%);
font-family: sans-serif;
}
input[type=range] {
width: 320px;
height: 10px;
appearance: none;
border-radius: 5px;
outline: none;
cursor: pointer;
background: linear-gradient(90deg, #ff00cc 50%, #333 50%);
transition: background 0.3s;
}
/* Chrome/Edge Thumb */
input[type=range]::-webkit-slider-thumb {
appearance: none;
width: 24px;
height: 24px;
background: linear-gradient(135deg, #ff2faf, #0030b4);
border-radius: 50%;
box-shadow: 0 0 12px rgba(255, 0, 200, 0.7);
transition: transform 0.2s, box-shadow 0.3s;
}
/* Firefox Thumb */
input[type=range]::-moz-range-thumb {
width: 24px;
height: 24px;
background: linear-gradient(135deg, #ff00cc, #3333ff);
border: none;
border-radius: 50%;
box-shadow: 0 0 12px rgba(255, 0, 200, 0.7);
transition: transform 0.2s, box-shadow 0.3s;
}
/* Hover & Active Effects */
input[type=range]:hover::-webkit-slider-thumb,
input[type=range]:hover::-moz-range-thumb {
transform: scale(1.1);
box-shadow: 0 0 18px rgba(255, 0, 200, 0.9);
}
input[type=range]:active::-webkit-slider-thumb,
input[type=range]:active::-moz-range-thumb {
transform: scale(1.2);
}