body {
  margin: 0;
  padding: 0;
  height: 100vh;
}

.background {
  position: absolute;
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;
  background-image: url('background.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  transition: 0.8s filter ease-in-out;
}

.container {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;
}

.background.sleeping {
  filter: grayscale(100%) blur(3px);
}

.control-box {
  position: relative;
  opacity: 0.8;
  margin-top: 300px;
  width: 600px;
  height: 300px;
  padding: 30px 40px;
  background-color: black;
  box-shadow: 0 0 10px rgba(114, 15, 15, 0.5);
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
}

.control-box .icon {
  font-size: 56px;
  color: #f3f3f3;
  transition: 0.3s color;
}

.control-box.on .icon {
  color: #f84337;
}

.control-box.on .text {
  color: white;
  font-size: 40px;
}

.control-box .text {
  margin: 5px 0;
  font-size: 60px;
  font-weight: bold;
  color: #f84337;
  transition: 0.5s font-size ease-in-out;
}

.control-box .numbers {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.control-box .value {
  font-size: 160px;
  font-weight: 600;
  line-height: 1;
  color: #f3f3f3;
  text-shadow: 3px 3px 3px rgba(0,0,0, .2);
  transition: .3s ease-in-out color;
}

.control-box.on .value {
  color: #f84337;
}

.slider-container {
  position: absolute;
  right: 40px;
  top: 50%;
  width: 20px;
  height: 140px;
  transform: translateY(-50%);
}

.slider-container .slider {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  -webkit-appearance: none;
  margin: 0;
  width: 140px;
  height: 20px;
  outline: none;
  transform: rotate(-90deg) translate(-50%, -50%);
  background-color: transparent;
  transform-origin: 0 0;
}

.slider-container .slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  background-color: #f84337;
  border: 8px solid #3e3e3e;
  border-radius: 15px;
  box-shadow: 0 0 5px rgba(0, 0, 0, .5);
  cursor: pointer;
  transition: .3s ease-in-out;
}

.slider-container .slider::-webkit-slider-thumb:hover {
  border-color: #eeeeee;
}

.slider-container .slider::-webkit-slider-thumb:active {
  box-shadow: 0 0 6px 10px rgba(248, 67, 55, .2);
}

.slider-container .bar,
.slider-container .fill {
  position: absolute;
  left: 0;
  right: 0;
}

.slider-container .bar {
  z-index: 1;
  top: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, .1);
  box-shadow: inset 3px 0 7px rgba(0, 0, 0, .2);
  border-radius: 10px;
}

.slider-container .fill {
  z-index: 2;
  bottom: 0;
  height: 50%;
  overflow: hidden;
}

.slider-container .fill::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  bottom: 0;
  background-color: #f84337;
  box-shadow: inset 3px 3px 10px rgba(0,0,0, .4);
  border-radius: 10px;
}

