﻿/* Copyright © beginning at 2026 - BlackDevilCreations
* Author: Patrick Wenzel
* All rights reserved.
* This file is property of Patrick Wenzel and is only to be used by him! 
*/
.ui-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 32px;
    width: auto;
    height: auto;
    padding: 0;
    cursor: pointer;
    color: #ccc;
    font-size: calc(var(--font-size-button) + var(--font-offset));
    text-transform: uppercase;
    font-family: 'Silkscreen';
    box-sizing: border-box;
    border: none;
    background: transparent;
    overflow: visible;
}
.ui-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    border-style: solid;
    border-width: 13px 38px 15px 54px; 
    border-image-slice: 13 38 15 54 fill;
    border-image-source: url('../Img/UI_Button_Normal.png');
    pointer-events: none;
}
.ui-button span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    white-space: nowrap;
    padding: 2px 6px !important;
    border-width: 2px 20px;
    border-style: solid;
    border-color: black transparent;
    box-sizing: border-box;
    transform: none;
    margin: 0;
}
.ui-button:hover {
    color: #fff;
}
.ui-button:hover::before {
    border-image-source: url('../Img/UI_Button_Hovered.png');
}
.ui-button:active::before {
    border-image-source: url('../Img/UI_Button_Pressed.png');
    border-width: 15px 38px 13px 54px;
}
.ui-button:active span {
    transform: translateY(2px);
}
