.btn {
  position: relative;
  height: 100%;
  width: 100%;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  text-align: center;
  padding: 0;
  font-family: inherit;
  white-space: nowrap;
  background: none;
  border: none;
  display: block;
  user-select: none;
}

.btn::-moz-focus-inner {
  border: 0;
}

.btn > .btn__bg {
  position: absolute;
  height: calc(100% - 7%);
  width: 100%;
  top: 0;
  left: 0;
  border-radius: 0.25em;
  transition: top 0.075s linear;
  border-style: solid;
  border-width: 1px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.btn > .btn__bg:before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: calc(0.25em - 1px);
  transition: top 0.075s linear;
  box-sizing: border-box;
  z-index: -1;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.3) 100%), 
                    linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 100%);
  background-size: auto;
}

.btn > .btn__bg:after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(0.25em - 1px);
  transition: top 0.075s linear;
  box-sizing: border-box;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.btn:after {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  top: 7%;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0.25em;
  transition: top 0.075s linear;
  transition-property: top, box-shadow, border-color;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16);
}

.btn:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  background: rgba(255, 255, 255, .2);
  mix-blend-mode: overlay;
  z-index: 100;
  border-radius: 0.25em;
  transition: top 0.075s linear, opacity 0.1s linear, background 0.1s linear;
}

.btn:hover {
  color: #fff;
}

.btn:hover:before {
  opacity: 1;
}

.btn:active > .btn__bg,
.btn.active > .btn__bg {
  top: 7%;
}

.btn:active > .btn__bg:before,
.btn.active > .btn__bg:before {
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.13) 100%),
                    linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 100%);
}

.btn:active > .btn__bg:after,
.btn.active > .btn__bg:after {
  border-top-color: rgba(255,255,255,0.03);
  border-bottom-color: rgba(255,255,255,0.1);
}

.btn:active:before,
.btn.active:before {
  top: 7%;
  background: rgba(255,255,255,0.1);
}

.btn:active:after,
.btn.active:after {
  box-shadow: 0 3px 3px rgba(0,0,0,0);
}

.btn.disabled {
  cursor: default;
}

.btn.disabled > .btn__bg {
  top: 7%;
}

.btn.disabled > .btn__bg:before {
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.13) 100%),
                    linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 100%);
}

.btn.disabled > .btn__bg:after {
  border-top-color: rgba(255,255,255,0.03);
  border-bottom-color: rgba(255,255,255,0.1);
}

.btn.disabled:before {
  content: '';
  display: block;
  position: absolute;
  top: 7%;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 1;
  background: rgba(227,227,227,0.5);
  mix-blend-mode: normal;
  z-index: 100;
  border-radius: 0;
}

.btn.disabled:after {
  box-shadow: 0 3px 3px rgba(0,0,0,0);
}

.btn .tr {
  font-family: inherit;
}

.btn .tr:first-letter {
  text-transform: capitalize;
}

.btn-main > .btn__bg {
  background-color: #48B589;
  border-color: #44AC82;
  text-shadow: 0 1px 0.1em #44AC82;
}

.btn-main:after {
  background: #44AC82;
}

.btn-red > .btn__bg {
  background-color: #EF6C44;
  border-color: #E36641;
  text-shadow: 0 1px 0.1em #E36641;
}

.btn-red:after {
  background: #E36641;
}

.btn-gray {
  text-shadow: none;
  color: #5f5f5f;
  width: auto;
}

.btn-gray > .btn__bg {
  background: #fafafa;
  border-color: #dbdbdb;
}

.btn-gray > .btn__bg:before {
  background: #fafafa;
}

.btn-gray > .btn__bg:after {
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.btn-gray:after {
  border-bottom: 1px solid #c7c7c7;
  background: #dbdbdb;
  box-shadow: 0 3px 3px rgba(0,0,0,0.1);
}

.btn-gray:hover {
  color: #5f5f5f;
}

.btn-gray:active,
.btn-gray.active,
.btn-gray.disabled,
.btn-gray:disabled {
  color: #5f5f5f;
}

.btn-gray:active > .btn__bg,
.btn-gray.active > .btn__bg,
.btn-gray.disabled > .btn__bg,
.btn-gray:disabled > .btn__bg {
  background: #fafafa;
}

.btn-gray:active > .btn__bg:before,
.btn-gray.active > .btn__bg:before,
.btn-gray.disabled > .btn__bg:before,
.btn-gray:disabled > .btn__bg:before {
  background: #f5f5f5;
}

.btn-gray:active > .btn__bg:after,
.btn-gray.active > .btn__bg:after,
.btn-gray.disabled > .btn__bg:after,
.btn-gray:disabled > .btn__bg:after {
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.btn-gray:active:after,
.btn-gray.active:after,
.btn-gray.disabled:after,
.btn-gray:disabled:after {
  border-bottom: 1px solid #dbdbdb;
  box-shadow: 0 3px 3px rgba(0,0,0,0);
}