.usecase {
    position: relative;
}

.usecase-container > .usecase-image {
    width: 100%;
}

.usecase-container > .usecase-image:nth-child(n+2) {
    position: absolute;
    top: 0;
    left: 0;
}


.usecase-controls[data-type="switch"] {
    position: absolute;
    bottom: 15px;
    right: 5%;
}

.usecase-controls[data-type="thumbs"] {
    position: relative; /* avoid opacity issue from container imgs */
    width: 90%;
    margin: auto;
}

.usecase-controls[data-type="thumbs"][data-position="inner"] .thumbs {
    position: absolute;
    bottom: 10px;
}

.usecase-controls .thumbs img {
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
}

.usecase-controls .thumbs img:hover, 
.usecase-controls .thumbs img.active {
    border-color: white;
}

.usecase-controls[data-type="range"] {
    text-align: center;
    margin: auto;
    min-width: 100px; /* 5 x cursor-width */
    max-width: 200px; /* 10 x cursor-width */
    width: 30%; /* must be doubled [data-type="range"] and .range */
}

.usecase-controls .range {
    min-width: 100px; /* 5 x cursor-width */
    max-width: 200px; /* 10 x cursor-width */
    width: 30%; /* must be doubled [data-type="range"] and .range */
    position: absolute;
    bottom: 10px;
}

/* The switch - the box around the.switcher */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;

}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The.switcher */
.switcher {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid white;
    background-color: #666;
    -webkit-transition: .4s;
    transition: .4s;
}

.switcher:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 1px;
    bottom: 1px;
    background-color: #eee;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .switcher {
    background-color: #f04645;
}

input:focus + .switcher {
    box-shadow: 0 0 1px #f04645;
}

input:checked + .switcher:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* Rounded.switchers */
.switcher.round {
    border-radius: 12px;
}

.switcher.round:before {
    border-radius: 50%;

}

.rangecontainer {
    width: 100%; /* Width of the outside container */
}

/* The ranger itself */
.ranger {
    -webkit-appearance: none;  /* Override default CSS styles */
    appearance: none;
    width: 100%; /* Full-width */
    border: 1px solid white;
    border-radius: 12px;
    height: 24px; /* Specified height */
    background-image: linear-gradient(to right, #666 , #f04645);
    outline: none; /* Remove outline */

}

/* Mouse-over effects */
.ranger:hover {
    opacity: 1; /* Fully shown on mouse-over */
}

/* The ranger handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.ranger::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    border-radius: 10px;
    width: 20px; /* Set a specific ranger handle width */
    height: 20px; /* Slider handle height */
    background: #eee; /* Green background */
    cursor: pointer; /* Cursor on hover */
}

.ranger::-moz-range-thumb {
    border-radius: 10px;
    width: 20px; /* Set a specific ranger handle width */
    height: 20px; /* Slider handle height */
    background: white; /* Green background */
    cursor: pointer; /* Cursor on hover */
}