.effeckt-button {
  position: relative;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased; }

.effeckt-button[data-loading] {
  cursor: default; }

.perspective {
  -webkit-perspective-origin: 50% 50%;
  -ms-perspective-origin: 50% 50%;
  perspective-origin: 50% 50%;
  -webkit-perspective: 600px;
  -ms-perspective: 600px;
  perspective: 600px; }

.effeckt-button .spinner {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 50%;
  margin-top: -16px;
  margin-left: -16px;
  opacity: 0;
  background-image: url( data:image/gif;base64, );
  -webkit-background-size: 32px auto;
  background-size: 32px auto; }

.effeckt-button, .effeckt-button .spinner, .effeckt-button .label {
  -webkit-transition: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275) all;
  transition: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275) all; }

.effeckt-button[data-effeckt-type="zoom-in"], .effeckt-button[data-effeckt-type="zoom-in"] .spinner, .effeckt-button[data-effeckt-type="zoom-in"] .label, .effeckt-button[data-effeckt-type="zoom-out"], .effeckt-button[data-effeckt-type="zoom-out"] .spinner, .effeckt-button[data-effeckt-type="zoom-out"] .label {
  -webkit-transition: 500ms ease all;
  transition: 500ms ease all; }

.effeckt-button[data-effeckt-type="expand-right"] .spinner {
  right: 16px; }

.effeckt-button[data-effeckt-type="expand-right"][data-loading] {
  padding-right: 64px; }

.effeckt-button[data-effeckt-type="expand-right"][data-loading] .spinner {
  opacity: 1; }

.effeckt-button[data-effeckt-type="expand-left"] .spinner {
  left: 16px;
  margin-left: 0; }

.effeckt-button[data-effeckt-type="expand-left"][data-loading] {
  padding-left: 64px; }

.effeckt-button[data-effeckt-type="expand-left"][data-loading] .spinner {
  opacity: 1; }

.effeckt-button[data-effeckt-type="expand-up"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="expand-up"] .spinner {
  top: 32px;
  left: 50%; }

.effeckt-button[data-effeckt-type="expand-up"][data-loading] {
  padding-top: 64px; }

.effeckt-button[data-effeckt-type="expand-up"][data-loading] .spinner {
  opacity: 1;
  top: 16px;
  margin-top: 0; }

.effeckt-button[data-effeckt-type="expand-down"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="expand-down"] .spinner {
  left: 50%;
  top: 100%;
  margin-top: -48px; }

.effeckt-button[data-effeckt-type="expand-down"][data-loading] {
  padding-bottom: 64px; }

.effeckt-button[data-effeckt-type="expand-down"][data-loading] .spinner {
  opacity: 1; }

.effeckt-button[data-effeckt-type="slide-left"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="slide-left"] .label {
  position: relative; }

.effeckt-button[data-effeckt-type="slide-left"] .spinner {
  left: 100%; }

.effeckt-button[data-effeckt-type="slide-left"][data-loading] .label {
  opacity: 0;
  left: -100%; }

.effeckt-button[data-effeckt-type="slide-left"][data-loading] .spinner {
  opacity: 1;
  left: 50%; }

.effeckt-button[data-effeckt-type="slide-right"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="slide-right"] .label {
  position: relative; }

.effeckt-button[data-effeckt-type="slide-right"] .spinner {
  left: 0%; }

.effeckt-button[data-effeckt-type="slide-right"][data-loading] .label {
  opacity: 0;
  left: 100%; }

.effeckt-button[data-effeckt-type="slide-right"][data-loading] .spinner {
  opacity: 1;
  left: 50%; }

.effeckt-button[data-effeckt-type="slide-up"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="slide-up"] .label {
  position: relative; }

.effeckt-button[data-effeckt-type="slide-up"] .spinner {
  left: 50%;
  top: 100%; }

.effeckt-button[data-effeckt-type="slide-up"][data-loading] .label {
  opacity: 0;
  top: -1em; }

.effeckt-button[data-effeckt-type="slide-up"][data-loading] .spinner {
  opacity: 1;
  top: 50%; }

.effeckt-button[data-effeckt-type="slide-down"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="slide-down"] .label {
  position: relative; }

.effeckt-button[data-effeckt-type="slide-down"] .spinner {
  left: 50%;
  top: 0%; }

.effeckt-button[data-effeckt-type="slide-down"][data-loading] .label {
  opacity: 0;
  top: 1em; }

.effeckt-button[data-effeckt-type="slide-down"][data-loading] .spinner {
  opacity: 1;
  top: 50%; }

.effeckt-button[data-effeckt-type="zoom-out"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="zoom-out"] .spinner {
  left: 50%;
  -webkit-transform: scale(2.5);
  -ms-transform: scale(2.5);
  transform: scale(2.5); }

.effeckt-button[data-effeckt-type="zoom-out"] .label {
  position: relative;
  display: inline-block; }

.effeckt-button[data-effeckt-type="zoom-out"][data-loading] .label {
  opacity: 0;
  -webkit-transform: scale(0.5);
  -ms-transform: scale(0.5);
  transform: scale(0.5); }

.effeckt-button[data-effeckt-type="zoom-out"][data-loading] .spinner {
  opacity: 1;
  -webkit-transform: none;
  -ms-transform: none;
  transform: none; }

.effeckt-button[data-effeckt-type="zoom-in"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="zoom-in"] .spinner {
  left: 50%;
  -webkit-transform: scale(0.2);
  -ms-transform: scale(0.2);
  transform: scale(0.2); }

.effeckt-button[data-effeckt-type="zoom-in"] .label {
  position: relative;
  display: inline-block; }

.effeckt-button[data-effeckt-type="zoom-in"][data-loading] .label {
  opacity: 0;
  -webkit-transform: scale(2.2);
  -ms-transform: scale(2.2);
  transform: scale(2.2); }

.effeckt-button[data-effeckt-type="zoom-in"][data-loading] .spinner {
  opacity: 1;
  -webkit-transform: none;
  -ms-transform: none;
  transform: none; }

/*==========================
FILL
==========================*/
.effeckt-button[data-effeckt-type="fill-from-left"] {
  overflow: hidden;
  position: relative; }
  .effeckt-button[data-effeckt-type="fill-from-left"]:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: black;
    -webkit-transform: translate(-100%, 0);
    -ms-transform: translate(-100%, 0);
    transform: translate(-100%, 0);
    -webkit-transition: -webkit-transform 500ms;
    transition: transform 500ms; }
  .effeckt-button[data-effeckt-type="fill-from-left"]:hover:after {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0); }
  .effeckt-button[data-effeckt-type="fill-from-left"] .effeckt-button-label {
    position: relative;
    z-index: 1; }

.effeckt-button[data-effeckt-type="fill-from-right"] {
  overflow: hidden;
  position: relative; }
  .effeckt-button[data-effeckt-type="fill-from-right"]:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: black;
    -webkit-transform: translate(100%, 0);
    -ms-transform: translate(100%, 0);
    transform: translate(100%, 0);
    -webkit-transition: -webkit-transform 500ms;
    transition: transform 500ms; }
  .effeckt-button[data-effeckt-type="fill-from-right"]:hover:after {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0); }
  .effeckt-button[data-effeckt-type="fill-from-right"] .effeckt-button-label {
    position: relative;
    z-index: 1; }

.effeckt-button[data-effeckt-type="fill-from-top"] {
  overflow: hidden;
  position: relative; }
  .effeckt-button[data-effeckt-type="fill-from-top"]:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: black;
    -webkit-transform: translate(0, -100%);
    -ms-transform: translate(0, -100%);
    transform: translate(0, -100%);
    -webkit-transition: -webkit-transform 500ms;
    transition: transform 500ms; }
  .effeckt-button[data-effeckt-type="fill-from-top"]:hover:after {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0); }
  .effeckt-button[data-effeckt-type="fill-from-top"] .effeckt-button-label {
    position: relative;
    z-index: 1; }

.effeckt-button[data-effeckt-type="fill-from-bottom"] {
  overflow: hidden;
  position: relative; }
  .effeckt-button[data-effeckt-type="fill-from-bottom"]:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: black;
    -webkit-transform: translate(0, 100%);
    -ms-transform: translate(0, 100%);
    transform: translate(0, 100%);
    -webkit-transition: -webkit-transform 500ms;
    transition: transform 500ms; }
  .effeckt-button[data-effeckt-type="fill-from-bottom"]:hover:after {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0); }
  .effeckt-button[data-effeckt-type="fill-from-bottom"] .effeckt-button-label {
    position: relative;
    z-index: 1; }

/*==========================
ICON SLIDE

Example markup:
<button class="effeckt-button" data-effeckt-type="icon-slide from-top">
  <span class="effeckt-button-label demo-button-icon">Icon from top</span>
</button>
==========================*/
.demo-button-icon:before {
  background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEljb01vb24uaW8gLS0+IDwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+IDxzdmcgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMzIgMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGZpbGw9IiNmZmZmZmYiPjxnPjxwYXRoIGQ9Ik0gMTYsMyBDIDEyLjUyOCwzIDkuMjYzLDQuMzUyIDYuODA4LDYuODA4IEMgNC4zNTIsOS4yNjMgMywxMi41MjggMywxNiBDIDMsMTkuNDcyIDQuMzUyLDIyLjczNyA2LjgwOCwyNS4xOTIgQyA5LjI2MywyNy42NDggMTIuNTI4LDI5IDE2LDI5IEMgMTkuNDcyLDI5IDIyLjczNywyNy42NDggMjUuMTkyLDI1LjE5MiBDIDI3LjY0OCwyMi43MzcgMjksMTkuNDcyIDI5LDE2IEMgMjksMTIuNTI4IDI3LjY0OCw5LjI2MyAyNS4xOTIsNi44MDggQyAyMi43MzcsNC4zNTIgMTkuNDcyLDMgMTYsMyBaIE0gMTYsMCBMIDE2LDAgQyAyNC44MzcsMCAzMiw3LjE2MyAzMiwxNiBDIDMyLDI0LjgzNyAyNC44MzcsMzIgMTYsMzIgQyA3LjE2MywzMiAwLDI0LjgzNyAwLDE2IEMgMCw3LjE2MyA3LjE2MywwIDE2LDAgWk0gMTQsMjJMIDE4LDIyTCAxOCwyNkwgMTQsMjZ6TSAxNCw2TCAxOCw2TCAxOCwxOEwgMTQsMTh6Ij48L3BhdGg+PC9nPjwvc3ZnPg==) no-repeat center center;
  -webkit-background-size: 30px;
  background-size: 30px; }

.effeckt-button[data-effeckt-type~="icon-slide"] {
  overflow: hidden;
  padding: 0; }
  .effeckt-button[data-effeckt-type~="icon-slide"] .effeckt-button-label {
    padding: 0.8rem 1rem;
    display: block;
    position: relative;
    -webkit-transition: -webkit-transform 500ms;
    transition: transform 500ms; }
    .effeckt-button[data-effeckt-type~="icon-slide"] .effeckt-button-label:before {
      content: '';
      display: block;
      position: absolute;
      width: 100%;
      height: 100%; }

.effeckt-button[data-effeckt-type~="icon-slide"][data-effeckt-type~="from-top"] .effeckt-button-label:before {
  top: -100%;
  left: 0;
  right: 0; }
.effeckt-button[data-effeckt-type~="icon-slide"][data-effeckt-type~="from-bottom"] .effeckt-button-label:before {
  bottom: -100%;
  left: 0;
  right: 0; }
.effeckt-button[data-effeckt-type~="icon-slide"][data-effeckt-type~="from-left"] .effeckt-button-label:before {
  left: -100%;
  top: 0;
  bottom: 0; }
.effeckt-button[data-effeckt-type~="icon-slide"][data-effeckt-type~="from-right"] .effeckt-button-label:before {
  right: -100%;
  top: 0;
  bottom: 0; }

.effeckt-button[data-effeckt-type~="icon-slide"]:hover[data-effeckt-type~="from-top"] .effeckt-button-label {
  -webkit-transform: translateY(100%);
  -ms-transform: translateY(100%);
  transform: translateY(100%); }
.effeckt-button[data-effeckt-type~="icon-slide"]:hover[data-effeckt-type~="from-bottom"] .effeckt-button-label {
  -webkit-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  transform: translateY(-100%); }
.effeckt-button[data-effeckt-type~="icon-slide"]:hover[data-effeckt-type~="from-left"] .effeckt-button-label {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%); }
.effeckt-button[data-effeckt-type~="icon-slide"]:hover[data-effeckt-type~="from-right"] .effeckt-button-label {
  -webkit-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  transform: translateX(-100%); }

.effeckt-button[data-effeckt-type="3d-rotate-success"], .effeckt-button[data-effeckt-type="3d-rotate-error"] {
  -webkit-transition: all 500ms;
  transition: all 500ms;
  -webkit-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden; }

.effeckt-button[data-effeckt-type="3d-rotate-error"]:before {
  white-space: nowrap;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  line-height: 2em;
  top: 100%;
  background: #e96a6a;
  color: #a33a3a;
  content: attr(data-effeckt-message);
  -webkit-transform-origin: 0% 0%;
  -ms-transform-origin: 0% 0%;
  transform-origin: 0% 0%;
  -webkit-transform: rotateX(-90deg);
  -ms-transform: rotateX(-90deg);
  transform: rotateX(-90deg);
  -webkit-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden; }

.effeckt-button[data-effeckt-type="3d-rotate-error"][data-loading] {
  -webkit-transform-origin: 50% 0%;
  -ms-transform-origin: 50% 0%;
  transform-origin: 50% 0%;
  -webkit-transform: rotateX(90deg) translateY(-100%);
  -ms-transform: rotateX(90deg) translateY(-100%);
  transform: rotateX(90deg) translateY(-100%); }

.effeckt-button[data-effeckt-type="3d-rotate-success"]:after {
  white-space: nowrap;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  line-height: 2em;
  top: -100%;
  background: #7aca7c;
  color: #358337;
  content: attr(data-effeckt-message);
  -webkit-transform-origin: 0% 100%;
  -ms-transform-origin: 0% 100%;
  transform-origin: 0% 100%;
  -webkit-transform: rotateX(90deg);
  -ms-transform: rotateX(90deg);
  transform: rotateX(90deg);
  -webkit-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden; }

.effeckt-button[data-effeckt-type="3d-rotate-success"][data-loading] {
  -webkit-transform-origin: 50% 100%;
  -ms-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transform: rotateX(-90deg) translateY(100%);
  -ms-transform: rotateX(-90deg) translateY(100%);
  transform: rotateX(-90deg) translateY(100%); }
