* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}
h2 {
    position: absolute;
    top: 10px;
}

.range_container {
    position: relative;
}
input[type="range"] {
    width: 300px;
    margin: 18px 0;
    -webkit-appearance: none;
}
input[type="range"]:focus {
    outline: none;
}

input[type='range'] + label {
    background-color: #fff;
    position: absolute;
    top: -25px;
    left: 50%;
    /* transform: translateX(-50%); */
    width: 80px;
    padding: 5px 0;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* For Chrome and Safari  */
input[type="range"]::-webkit-slider-runnable-track {
    background-color: purple;
    border-radius: 4px;
    width: 100%;
    height: 13px;
    cursor: pointer;
}   
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    background:#fff;
    border-radius: 50%;
    border: 1px solid purple;
    margin-top: -5px;
    cursor: pointer;
}