@use '../utils' as *;

/*----------------------------------------*/
/* Congratulations style
/*----------------------------------------*/
.congratulations-section {
    @media #{$xs} {
        padding: 30px 0;
    }
}
.congratulation-wrapper {
    display: grid;
    place-content: center;
    text-align: center;
    height: 100vh;
    position: relative;
    z-index: 55;
}
.confetti-container {
    perspective: 700px;
    position: absolute;
    overflow: hidden;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.confetti {
    position: absolute;
    z-index: 1;
    top: -10px;
    border-radius: 0%;
    &--animation-slow {
        animation: confetti-slow 2.25s linear 1 forwards;
    }
    &--animation-medium {
        animation: confetti-medium 1.75s linear 1 forwards;
    }
    &--animation-fast {
        animation: confetti-fast 1.25s linear 1 forwards;
    }
}
.js-container {
	&.container {
		max-width: 100%;
		margin: 0 auto;
        width: 100vw;
        height: 100vh;
        display: fixed;
        top: 0px;
	}
}
.congratulation-contents-para {
    @include dark {
        color: var(--td-text-secondary);
    }
}
.congratulation-contents-title {
    margin-bottom: 10px;
    @include dark {
        color: var(--td-white);
    }
}
// confetti-slow
@keyframes confetti-slow {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
    }
    100% {
        transform: translate3d(25px, 105vh, 0) rotateX(360deg) rotateY(180deg);
    }
}
@keyframes confetti-medium {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
    }
    100% {
        transform: translate3d(100px, 105vh, 0) rotateX(100deg) rotateY(360deg);
    }
}
@keyframes confetti-fast {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
    }
    100% {
        transform: translate3d(-50px, 105vh, 0) rotateX(10deg) rotateY(250deg);
    }
}
/* Checkmark */
.checkmark-circle {
	width: 150px;
	height: 150px;
	position: relative;
	display: inline-block;
	vertical-align: top;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 20px;
	.background {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: #00C09D;
        position: absolute;
	}
	.checkmark {
		border-radius: 5px;
		&.draw {
			&:after {
				-webkit-animation-delay: 100ms;
				-moz-animation-delay: 100ms;
				animation-delay: 100ms;
				-webkit-animation-duration: 3s;
				-moz-animation-duration: 3s;
				animation-duration: 3s;
				-webkit-animation-timing-function: ease;
				-moz-animation-timing-function: ease;
				animation-timing-function: ease;
				-webkit-animation-name: checkmark;
				-moz-animation-name: checkmark;
				animation-name: checkmark;
				-webkit-transform: scaleX(-1) rotate(135deg);
				-moz-transform: scaleX(-1) rotate(135deg);
				-ms-transform: scaleX(-1) rotate(135deg);
				-o-transform: scaleX(-1) rotate(135deg);
				transform: scaleX(-1) rotate(135deg);
				-webkit-animation-fill-mode: forwards;
				-moz-animation-fill-mode: forwards;
				animation-fill-mode: forwards;
			}
		}
		&:after {
			opacity: 1;
			height: 75px;
			width: 37.5px;
			-webkit-transform-origin: left top;
			-moz-transform-origin: left top;
			-ms-transform-origin: left top;
			-o-transform-origin: left top;
			transform-origin: left top;
			border-right: 15px solid var(--td-white);
			border-top: 15px solid var(--td-white);
			border-radius: 2.5px !important;
			content: "";
			top: 80px;
			position: absolute;
			left: 40px;
		}
	}
}
@-webkit-keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    20% {
        height: 0;
        width: 37.5px;
        opacity: 1;
    }
    40% {
        height: 75px;
        width: 37.5px;
        opacity: 1;
    }
    100% {
        height: 75px;
        width: 37.5px;
        opacity: 1;
    }
}
@-moz-keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    20% {
        height: 0;
        width: 37.5px;
        opacity: 1;
    }
    40% {
        height: 75px;
        width: 37.5px;
        opacity: 1;
    }
    100% {
        height: 75px;
        width: 37.5px;
        opacity: 1;
    }
}
@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    20% {
        height: 0;
        width: 37.5px;
        opacity: 1;
    }
    40% {
        height: 75px;
        width: 37.5px;
        opacity: 1;
    }
    100% {
        height: 75px;
        width: 37.5px;
        opacity: 1;
    }
}
