@import url("https://fonts.googleapis.com/css?family=Lato&display=swap");

* {
	box-sizing: border-box;
}

body {
	background: linear-gradient(135deg, #f5f7fa 0%, #879ada 100%);
	font-family: "Lato", sans-serif;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	height: 100vh;
	overflow: hidden;
	margin: 0;
}

.back {
	position: absolute;
	top: 2vh;
	left: 5vw;
	color: black;
	font-size: 2rem;
	font-family: initial;
}

h2 {
	position: absolute;
	top: 10px;
}

.range-container {
	position: relative;
}

input[type="range"] {
	width: 300px;
	margin: 18px 0;
	-webkit-appearance: none;
}

input[type="range"] + label {
	background-color: white;
	position: absolute;
	top: -25px;
	left: 110px;
	width: 80px;
	padding: 5px 0;
	text-align: center;
	border-radius: 4px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

input[type="range"]:focus {
	outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
	background: #6969db;
	border-radius: 4px;
	width: 100%;
	height: 10px;
	cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 24px;
	width: 24px;
	background: white;
	border-radius: 50%;
	border: 1px solid #6969db;
	margin-top: -7px;
}

/* Firefox */

input[type="range"]::-moz-range-track {
	background: #6969db;
	border-radius: 4px;
	width: 100%;
	height: 13px;
	cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
	-moz-appearance: none;
	height: 24px;
	width: 24px;
	background: white;
	border-radius: 50%;
	border: 1px solid #6969db;
	margin-top: -7px;
	cursor: pointer;
}

/* IE */
input[type="range"]::-ms-track {
	background: #6969db;
	border-radius: 4px;
	width: 100%;
	height: 13px;
	cursor: pointer;
}

input[type="range"]::-ms-thumb {
	height: 24px;
	width: 24px;
	background: white;
	border-radius: 50%;
	border: 1px solid #6969db;
	margin-top: -7px;
	cursor: pointer;
}
