/*  table of contents

    1. GENERAL BUTTON - BUTTON STYLE
    2. GENERAL BUTTON - BUTTON PARTS
    3. GENERAL BUTTON - BUTTON VARIATIONS 

*/


/* ------------------------------------- 1. GENERAL BUTTON STYLE */
.general-style__button {
    position: relative;
    z-index: 200;
    width: 115px;
    height: auto;
    margin: 0 10px;
    padding: 8px 15px;
    
    border: none;
    box-shadow: 0 5px 10px -5px #111;
    
    font-family: "Ubuntu";
    font-size: 16px;
    font-weight: 500;
    
    background-color: unset;
    color: #222;
    cursor: pointer;
}

/* inverted version - dark background and light text ont it */
.general-style__button.button__inverted {
    color: #eee;
}

.general-style__button:hover {
    box-shadow: 0 0 18px -7px #fff;
}
.general-style__button:hover .button__background {
    opacity: 1;
}

.general-style__button:active {
    box-shadow: 0 0px 25px -5px #fff;
}
.general-style__button:active .button__background {
    opacity: 1;
}

/* ------------------------------------- 2. GENERAL BUTTON - BUTTON PARTS */

/* Button background */
.button__background {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    
    border-radius: 4px;
    background-color: #fff;
    opacity: .9;
        
}
    
.button__inner-container, .button__inner-container--left-shift {
    position: relative;
    width: auto;
    height: auto;
    margin: 0 auto;
}
    
/* icon button seems to be shifted to the right side, this class is for adjusting that*/
.button__inner-container--left-shift {
    left: -2px;
}
    
.button__download-icon, .button__upgrade-icon, .button__shop-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 14px;
    
    /*setting the icon to the right distance, position*/
    top: 2px;
    
    /*background-image: url('@{ROOT_URL}/products/flamepainter/images/download-icon-dark.png');*/
    background-position: center center;
    background-size: 12px auto;
    background-repeat: no-repeat;
}

.button__download-icon {
    background-image: url('/images/flamepainter/about/icon-dark-download.png');
}
.general-style__button.button__inverted .button__download-icon {
    background-image: url('/images/flamepainter/about/icon-download.png');
}
.button__upgrade-icon {
    top: 1px;
    background-image: url('/images/flamepainter/about/icon-dark-upgrade.png');
}
.button__shop-icon {
    width: 22px;
    background-image: url('/images/flamepainter/about/icon-dark-shop.png');
    background-size: 20px auto;
}


/* icon for button suited for main navigation area (smaller) */
.icon__main-navi {
    width: 14px;
    height: 12px;
    background-size: contain;
}


/* ------------------------------------- 3. GENERAL BUTTON - BUTTON VARIATIONS */
.button__auto-width {
    width: auto;
    padding: 8px 16px;
    margin: 5px;
}

.button__extra-wide {
    width: 140px;
}

.button__wide {
    /*width: 120px; too narrow*/
    width: 160px;
    padding: 8px;
    margin: 5px;
}

.button__flexible {
    width: auto;
    padding: 8px 20px;
    margin: 5px;
}

.button__flexible-xl {
    width: auto;
    padding: 3px 22px;
    margin: 5px;
    
    font-size: 18px;
}

.button__small {
    padding: 8px;
    margin: 5px;
}

.button__particle-systems {
    width: 130px;
    padding: 8px;
    margin: 0;
}

.product-page .product-page__button.button__pricing {
    width: 125px;
    padding: 10px 15px;
    font-size: 20px;
    font-weight: 600;
}

/* special button for scrolling to the page top */
.general-style__button.button__scroll-top {
    position: fixed;
    z-index: 1000;
    right: 7px;
    bottom: 70px;
    
    width: auto;
    padding: 2px 12px;
    margin: 20px;
    
    visibility: hidden; /* default state - when on the top */
    opacity: 0.5 !important;
    transition: opacity .5s, visibility .5s ease-in;
}

.general-style__button.button__scroll-top:hover,
.general-style__button.button__scroll-top:active {
    opacity: 1 !important;
}

/* button suited for main navigation area */
.general-style__button.button__main-navi {
    width: auto;
    padding: 6px 8px;
    margin: 0;
    margin-left: 8px;
    box-shadow: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

/* red - remove button */
.general-style__button.button__red-remove {
    width: 200px;
    padding: 8px 16px;
    margin: 0;
    color: #fff;
}
.general-style__button.button__red-remove .button__background {
    background-color: #d9534f;
}
/* blue - save button */
.general-style__button.button__blue-save {
    width: 200px;
    padding: 8px 16px;
    margin: 0;
    color: #fff;
}
.general-style__button.button__blue-save .button__background {
    background-color: #337ab7;
}



/* NEUMORPHISM STYLE */
.general-style__button.button__inverted .button__background {
    background-color: unset;
    border-radius: 9px;
    opacity: 1;
    /*box-shadow: 3px 3px 11px -1px #00000073, -3px -2px 11px -1px #ffffff2e;*/
    box-shadow: 3px 3px 9px -1px #00000073, -3px -2px 9px -1px #ffffff2e;
}
.general-style__button.button__inverted:hover .button__background {
    box-shadow: 3px 3px 5px -1px #00000073, -3px -3px 5px -1px #ffffff2e;
}
.general-style__button.button__inverted:active .button__background {
    /*box-shadow: inset -2px -2px 9px 1px #00000073, inset 0px 0px 1px 1px #ffffff2e;*/
    box-shadow: inset 3px 3px 1px -1px #00000073, inset -2px -2px 1px -1px #ffffff2e;
}

/* this button style need no box-shadow on the button background */
.general-style__button.button__inverted:hover {
    -webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}
/* this button style need no box-shadow on the button background */
.general-style__button.button__inverted:active {
    -webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}
