/*
*  CSS Animated Buttons
*/

@import "variables.less";

.animated-btn {
	background: #f7f7f7;
	background-image: -moz-linear-gradient(top,#ffffff,#eeeeee);
	background-image: -webkit-gradient(linear,0 0,0 100%,from(#ffffff),to(#eeeeee));
	background-image: -webkit-linear-gradient(top,#ffffff,#eeeeee);
	background-image: -o-linear-gradient(top,#ffffff,#eeeeee);
	background-image: linear-gradient(to bottom,#ffffff,#eeeeee);
	background-repeat: repeat-x;
	font-size: 100%;
    height: 38px;
	line-height: 38px;
    display: inline-block;
    position: relative;
    border: 1px solid #5d81ab;
    -webkit-box-shadow: 0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2), 0px 0px 0px 4px rgba(188,188,188,0.5);
    -moz-box-shadow: 0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2), 0px 0px 0px 4px rgba(188,188,188,0.5);
    box-shadow: 0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2), 0px 0px 0px 4px rgba(188,188,188,0.5);
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    float: left;
    clear: both;
    margin: 10px 0px;
    overflow: hidden;
	text-decoration: none;
    
}
.animated-btn.sliding {
	padding-left: 20px;
    padding-right: 80px;
	padding-top: 0;
	padding-bottom: 0;
	-webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
}
.animated-btn.scrolling .animated-btn-text small {
    display: block;
    letter-spacing: 1px;
	line-height: normal;
}
.animated-btn.br-small {
	-webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
.animated-btn.br-xsmall {
	-webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
.animated-btn.br-xlarge {
	-webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
}
.animated-btn.primary, .animated-btn.success, .animated-btn.danger,
.animated-btn.warning, .animated-btn.invert {
    text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
}
.animated-btn.primary:active {
    background-color: #00aff2;
    background-image: none;
}
.animated-btn.success:active {
    background-color: #51a351;
}
.animated-btn.danger:active {
    background-color: #bd362f;
}
.animated-btn.warning:active {
    background-color: #f89406;
}
.animated-btn.invert {
    background-color: #515459;
    background-image: -moz-linear-gradient(top,#515459,#3B3C40);
    background-image: -webkit-gradient(linear,0 0,0 100%,from(#515459),to(#3B3C40));
    background-image: -webkit-linear-gradient(top,#515459,#3B3C40);
    background-image: -o-linear-gradient(top,#515459,#3B3C40);
    background-image: linear-gradient(to bottom,#515459,#3B3C40);
    background-repeat: repeat-x;
    border-color: #3B3C40 #3B3C40 #515459;
    border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#515459',endColorstr='#3B3C40',GradientType=0);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}
.animated-btn.invert:hover, .animated-btn.invert:focus, .animated-btn.invert:active {
    background-color: #3B3C40;
}
.animated-btn.sliding:hover {
    padding-right: 180px;
    -webkit-box-shadow: 0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2);
    box-shadow: 0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2);
}
.animated-btn.xlarge {
    font-size: 125%;
	height: 60px;
    line-height: 59px;
}
.animated-btn.large {
    font-size: 110%;
	height: 50px;
    line-height: 49px;
}
.animated-btn.small {
    font-size: 85%;
	height: 33px;
    line-height: 32px;
}
.animated-btn.xsmall {
    font-size: 70%;
	height: 28px;
    line-height: 27px;
}
.animated-btn .animated-btn-text {
    display: block;
    font-size: inherit;
	line-height: inherit;
    white-space: nowrap;
    text-shadow: 0px 1px 1px rgba(255,255,255,0.3);
    color: @input-font-color;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}
.animated-btn.scrolling {
	padding-left: 90px;
	padding-right: 105px;
	height: auto;
	-webkit-transition: box-shadow 0.3s ease-in-out;
	-moz-transition: box-shadow 0.3s ease-in-out;
	-o-transition: box-shadow 0.3s ease-in-out;
	transition: box-shadow 0.3s ease-in-out;
}
.animated-btn.scrolling:hover {
    -webkit-box-shadow: 0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 5px rgba(0,0,0,0.4);
    -moz-box-shadow: 0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 5px rgba(0,0,0,0.4);
    box-shadow: 0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 5px rgba(0,0,0,0.4);
}
.animated-btn.scrolling .animated-btn-slide-text {
    position: absolute;
    font-size: 200%;
    top: 50%;
    left: 12px;
    text-shadow: 0px 1px 1px rgba(0,0,0,0.3);
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
    opacity: 0;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
.animated-btn.scrolling:hover .animated-btn-slide-text {
    opacity: 1;
    -webkit-transform: scale(1) translateY(-50%);
    -moz-transform: scale(1) translateY(-50%);
    -ms-transform: scale(1) translateY(-50%);
    -o-transform: scale(1) translateY(-50%);
    transform: scale(1) translateY(-50%);
}
.animated-btn.scrolling img {
    position: absolute;
    left: 10px;
    height: 100%;
	width: auto;
    border: none;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
.animated-btn.scrolling:hover img {
    opacity: 0;
}
.animated-btn.scrolling .animated-btn-text {
    padding-top: 10px;
    display: block;
    font-size: larger;
    text-shadow: 0px -1px 1px #5d81ab;
}
.animated-btn.scrolling .animated-btn-icon-right {
    position: absolute;
    right: 0px;
    top: 0px;
    height: 100%;
    width: 80px;
    border-left: 1px solid #5d81ab;
    -webkit-box-shadow: 1px 0px 1px rgba(255,255,255,0.4) inset;
    -moz-box-shadow: 1px 0px 1px rgba(255,255,255,0.4) inset;
    box-shadow: 1px 0px 1px rgba(255,255,255,0.4) inset;
}
.animated-btn.scrolling .animated-btn-icon-right span {
    width: 38px;
    height: 38px;
    opacity: 0.7;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -20px 0px 0px -20px;
    border: 1px solid rgba(0,0,0,0.5);
    background: #5b5b5b url(../images/arrow_down.png) no-repeat center center;
    -webkit-box-shadow: 0px 1px 1px rgba(255,255,255,0.3) inset, 0px 1px 2px rgba(255,255,255,0.5);
    -moz-box-shadow: 0px 1px 1px rgba(255,255,255,0.3) inset, 0px 1px 2px rgba(255,255,255,0.5);
    box-shadow: 0px 1px 1px rgba(255,255,255,0.3) inset, 0px 1px 2px rgba(255,255,255,0.5);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
.animated-btn.scrolling:hover .animated-btn-icon-right span {
    opacity: 1;
    background-color: #bc3532;
	-webkit-transform: rotate(360deg);
	transform: rotate(360deg);
}
.animated-btn.primary .animated-btn-text,
.animated-btn.active .animated-btn-text,
.animated-btn.success .animated-btn-text,
.animated-btn.danger .animated-btn-text,
.animated-btn.warning .animated-btn-text,
.animated-btn.invert .animated-btn-text {
	color: white;
}
.animated-btn.disabled .animated-btn-text {
	color: #999;
}
.animated-btn:hover .animated-btn-text {
    text-shadow: 0px 1px 1px #5d81ab;
    color: #666;
}
.animated-btn.primary:hover .animated-btn-text,
.animated-btn.active:hover .animated-btn-text,
.animated-btn.success:hover .animated-btn-text,
.animated-btn.danger:hover .animated-btn-text,
.animated-btn.warning:hover .animated-btn-text,
.animated-btn.invert:hover .animated-btn-text {
	text-shadow: 0px 0px 0px #000;
	color: white;
}
.animated-btn.sliding .animated-btn-slide-text {
    position: absolute;
    height: 100%;
    top: 0px;
    right: 52px;
    width: 0px;
    background: #63707e;
    text-shadow: 0px -1px 1px #363f49;
    color: #fff;
    font-size: inherit;
    white-space: nowrap;
    text-align: left;
    text-indent: 10px;
    overflow: hidden;
    line-height: inherit;
    -webkit-box-shadow: -1px 0px 1px rgba(255,255,255,0.4), 1px 1px 2px rgba(0,0,0,0.2) inset;
    -moz-box-shadow: -1px 0px 1px rgba(255,255,255,0.4), 1px 1px 2px rgba(0,0,0,0.2) inset;
    box-shadow: -1px 0px 1px rgba(255,255,255,0.4), 1px 1px 2px rgba(0,0,0,0.2) inset;
    -webkit-transition: width 0.3s linear;
    -moz-transition: width 0.3s linear;
    -o-transition: width 0.3s linear;
    transition: width 0.3s linear;
}
.animated-btn.sliding:hover .animated-btn-slide-text {
    width: 110px;
}
.animated-btn.sliding .animated-btn-icon-right {
    position: absolute;
    right: 0px;
    top: 0px;
    height: 100%;
    width: 52px;
    border-left: 1px solid #5d81ab;
    -webkit-box-shadow: 1px 0px 1px rgba(255,255,255,0.4) inset;
    -moz-box-shadow: 1px 0px 1px rgba(255,255,255,0.4) inset;
    box-shadow: 1px 0px 1px rgba(255,255,255,0.4) inset;
}
.animated-btn.sliding .animated-btn-icon-right span {
    width: 38px;
    height: 38px;
    opacity: 0.5;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -20px 0px 0px -20px;
    background: transparent url(../images/arrow_right_black.png) no-repeat 50% 55%;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
}
.animated-btn.sliding.primary .animated-btn-icon-right span,
.animated-btn.sliding.active .animated-btn-icon-right span,
.animated-btn.sliding.success .animated-btn-icon-right span,
.animated-btn.sliding.danger .animated-btn-icon-right span,
.animated-btn.sliding.warning .animated-btn-icon-right span,
.animated-btn.sliding.invert .animated-btn-icon-right span {
	opacity: 0.7;
	background: transparent url(../images/arrow_right.png) no-repeat 50% 55%;
}
.animated-btn.sliding .animated-btn:hover .animated-btn-icon-right span {
    opacity: 1;
}