/**** Reset ****/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
}

/**** Style général de la page ****/

body {
    width: 100%;
    height: 100vh;
    font-family: sans-serif;
}

.main__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

h2 {
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 30px;
    color: #d4d1d1;
    margin-bottom: 25px;
}

.compare {
    position: relative;
    width: 600px;
    height: 450px;
    box-shadow: 0 0 12px 6px rgba(0, 0, 0, 0.171);
}

.compare .before {
    position: relative;
    top: 0;
    width: 100%;
    height: 100%;
    background: url("https://picsum.photos/id/65/800/450");
}

.compare .before .after {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 450px;
    background: url("https://picsum.photos/id/65/800/450?grayscale");
    z-index: 2;
}

.compare input {
    position: absolute;
    top: 0;
    left: 0;
    appearance: none;
    z-index: 3;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.compare input::-webkit-slider-thumb,
.compare input::-moz-range-thumb {
    appearance: none;
    display: block;
    width: 12px;
    height: 450px;
    border: 1px solid #7199f1;
    background-color: #7199f1;
    cursor: pointer;
}

.compare input:active::-webkit-slider-thumb,
.compare input:active::-moz-range-thumb {
    background-color: #f16363;
    border: 1px solid #f16363;
    transition: all 0.3s ease-out;
}