html {
    height: 100%;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    color: #222;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    background: #f4f7f9;
}
  
.button {
    position: absolute;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);
    background: #333333;
    color: white;
    text-transform: uppercase;
    border: 0;
    padding: 20px 40px;
    z-index: 2;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 5px;
    transition: all .5s;
    overflow: hidden;
}
  
.button:hover {
    background: #333333;
}

.button--hide {
    opacity: 0;
}

.button--loading {
    padding-left: 70px;
}
  
.button .button__loader {
    float: left;
    position: absolute;
    left: -50px;
    top: 15px;
    transition: all .2s;
}
  
.button--loading .button__loader {
    left: 15px;
}
  
.success-screen {
    position: relative;
    background: #333333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 0;
    transition: all 1s;
}
  
.success-screen--show {
    opacity: 1;
}
  
.success-screen__header {
    text-align: center;
    position: relative;
    z-index: 1;
    font-size: 50px;
    transition: all .4s;
    transform: translate3d(0, 25px, 0);
    opacity: 0;
}
  
.success-screen__header--show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
  
.confetti-container {
    perspective: 700px;
    position: absolute;
    overflow: hidden;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
  
.confetti__particle {
    position: absolute;
    z-index: 1;
    top: -10px;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    background: white;
}
  
.confetti__particle--round {
    opacity: .7;
}
  
.confetti__particle--rectangle {
    background: #009900;
    border-radius: 0;
    width: 40px;
    height: 14px;
}
  
.confetti__particle--animation-slow {
    animation: confetti--slow 10.25s linear 1 forwards;
}
  
.confetti__particle--animation-medium {
    animation: confetti--medium 8.75s linear 1 forwards;
}
  
.confetti__particle--animation-fast {
    animation: confetti--fast 7.25s linear 1 forwards;
}
  
@keyframes confetti--slow {
    0% { transform: translate3d(0, 0, 0) rotate(0) }
    100% { transform: translate3d(25px, 105vh, 0) rotate(200deg)}
}
  
@keyframes confetti--medium {
    0% { transform: translate3d(0, 0, 0) rotate(0) rotateY(0); }
    100% { transform: translate3d(100px, 105vh, 0) rotate(160deg)}
}
  
@keyframes confetti--fast {
    0% { transform: translate3d(0, 0, 0) rotate(0) rotateY(0); }
    100% { transform: translate3d(-50px, 105vh, 0) rotate(100deg)}
}
  
.loader, .loader:after {
    border-radius: 50%;
    width: 20px;
    height: 20px;
}
.loader {
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 4px solid rgba(255, 255, 255, 0.2);
    border-right: 4px solid rgba(255, 255, 255, 0.2);
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid #ffffff;
    transform: translateZ(0);
    animation: loaderSpin 1.1s infinite linear;
}
  
@keyframes loaderSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
