@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap');

img {
    width: 100%;
    display: block;
}


#before-after-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 3px solid white;
}
#before-after-slider img{
    pointer-events: none;
    user-select: none;
}
#after-image {
    display: block
}

#before-image {
    position: absolute;
    height: 100%;
    width: 50%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 2;
}

#resizer {
    position: absolute;
    display: flex;
    align-items: center;
    z-index: 5;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    background: white;
    /*Stop vertical scrolling on touch*/
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    cursor: pointer;
}

#resizer:after {
    background: linear-gradient(45deg, #7a0000, #ff0000);;
    font-family: "Font Awesome 5 Free";
    content: '\f337';
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: absolute;
    margin: 0 0 0 -22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;

}

#before-image img {
    width: auto;
    /* Let the image take its natural width */
    height: 100%;
    /* Make sure it covers the full height */
    max-width: none;
    /* Prevent auto-resizing */
    position: absolute;
    left: 0;
    top: 0;
}