/* @font-face */
@mixin font-face($name, $file) {
    @font-face {
        font-family: "#{$file}";
        src: url("../assets/fonts/#{$name}/#{$file}.ttf");
        src: url("../assets/fonts/#{$name}/#{$file}.ttf") format("truetype");
    }
}

/* Absolute element */

@mixin abs-position ($top, $left) {
    position: absolute;
    top: $top;
    left: $left;
    transform: translate(-$top, -$left);
}

@mixin inputstyle {
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: $input-border;
    padding-right: 30px;
    padding-left: 10px;
    min-height: 40px;
    line-height: 40px;
    margin-bottom: 25px;
    width: calc(100% - 40px);
    color: $text-black;
    font-family: $mulish-regular;
}

@mixin button-primary {
    padding: 9px 15px;
    width: auto;
    background: $primary;
    color: $white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

@mixin button-green {
    padding: 7px 10px;
    width: auto;
    background: $btn-green;
    color: $white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

@mixin button-gray {
    padding: 7px 10px;
    width: auto;
    background: $white;
    color: rgba(0, 0, 0, 0.39);
    border: 1px solid $btn-gray;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

@mixin button-secondary {
    padding: 9px 15px;
    width: auto;
    background: $white;
    background-color: $userType-bg;
    color: $text-black;
    border: 1px solid $btn-gray;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}


@mixin box-shadow {
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}