@mixin breakpoint($minWidth: 0, $maxWidth: 0, $minHeight: 0, $maxHeight: 0) {
    $type: type-of($minWidth);
        
    @if $type == string {
        $class: $minWidth; 

        @if $class == xs {
            // Extra small devices (portrait phones, less than 576px)
            @media (max-width: 575px) { @content; }
        }
        
        @else if $class == sm {
            // Small devices (landscape phones, less than 768px)
            @media (max-width: 767px) { @content; }
        }
        
        @else if $class == md {
            // Medium devices (tablets, less than 992px)
            @media (max-width: 991px) { @content; }
        }
        
        @else if $class == lg {
            // Large devices (desktops, less than 1200px)
            @media (max-width: 1199px) { @content; }
        }

        @else if $class == xl {
            // Extra large devices
            @media (max-width: 1399px) { @content; }
        }
         
        @else {
            @warn "Breakpoint mixin supports: xs, sm, md, lg";
        }
    }
    @else if $type == number {
        $widthQuery: "all" !default;

        // width
        @if $minWidth != 0 and $maxWidth != 0 { 
            $widthQuery: "(min-width: #{$minWidth}) and (max-width: #{$maxWidth})";
        }
        @else if $minWidth != 0 and $maxWidth == 0 { 
            $widthQuery: "(min-width: #{$minWidth})"; 
        }
        @else if $minWidth == 0 and $maxWidth != 0 { 
            $widthQuery: "(max-width: #{$maxWidth})"; 
        }

        // height
        $heightQuery: 0;
        @if $minHeight != 0 and $maxHeight != 0 { 
            $heightQuery: "(min-height: #{$minHeight}) and (max-height: #{$maxHeight})";
        }
        @else if $minHeight != 0 and $maxHeight == 0 { 
            $heightQuery: "(min-height: #{$minHeight})"; 
        }
        @else if $minHeight == 0 and $maxHeight != 0 { 
            $heightQuery: "(max-height: #{$maxHeight})"; 
        }

        @if $minHeight != 0 {
            @media #{$widthQuery} and #{$heightQuery} { 
                @content;
            }
            }
        @else if $maxHeight != 0 {
            @media #{$widthQuery} and #{$heightQuery} { 
                @content;
            }
        }
        @else if $minHeight != 0 and $maxHeight != 0 {
            @media #{$widthQuery} and #{$heightQuery} { 
                @content;
            }
        }
        @else {
            @media #{$widthQuery} { 
                @content;
            }
        }

    }
}