@use "../theme/breakpoints" as *;
@use "../theme/colors" as *;

.slider {
    display: flex;
    flex-direction: column;

    .slider-container {
        display: flex;
        width: 100%;

        input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            background: transparent;
            cursor: pointer;
            width: 100%;
        }

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

        input[type="range"]::-webkit-slider-runnable-track {
            background-color: white;
            border-radius: 0.5rem;
            height: 0.5rem;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            margin-top: -8px;
            background-color: $main-color;
            border-radius: 50%;
            height: 1.5rem;
            width: 1.5rem;
        }

        input[type="range"]::-moz-range-track {
            background-color: $main-color;
            border-radius: 0.5rem;
            height: 0.5rem;
        }

        input[type="range"]::-moz-range-thumb {
            background-color: $main-color;
            border: none;
            border-radius: 50%;
            height: 1.5rem;
            width: 1.5rem;
        }

        @media (max-width: $breakpoints-sm) {
            div {
                display: none;
            }
        }
    }
}
