body {
	overflow: hidden;
}

.loading {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 100;
    margin-top: -35px;
    margin-left: -35px;
}

.loading-background {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(120, 120, 120, 0.4);
	z-index: 98;
}

.loading .circular {
    -webkit-animation: loading-rotate 2s linear infinite;
    animation: loading-rotate 2s linear infinite;
    -webkit-transform-origin: center center;
    transform-origin: center center;
    height: 70px;
    width: 70px;
}

.loading .path {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    -webkit-animation: loading-dash 1.5s ease-in-out infinite, loading-color 6s ease-in-out infinite;
    animation: loading-dash 1.5s ease-in-out infinite, loading-color 6s ease-in-out infinite;
    stroke-linecap: round;
}

.loading-top, .loading-bottom {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	height: 50%;
	background: black;
	z-index: 99;
	transition: all 0.5s ease;
}

.loading-top {
	top: 0;
}

.loading-bottom {
	bottom: 0;
}

.loaded .loading-top {
	-webkit-transform: translateY(-100%);
	transform: translateY(-100%);
	-webkit-transition: all 0.7s ease 0.3s;
}

.loaded .loading-bottom {
	-webkit-transform: translateY(100%);
	transform: translateY(100%);
	-webkit-transition: all 0.7s ease 0.3s;
}

.loading-text {
    position: absolute;
    top: 80%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: #ebebeb;
    -webkit-animation: loading-text-animation 3s ease-in-out infinite;
    animation: loading-text-animation 3s ease-in-out infinite;
    z-index: 11;
    font-size: 24px;
}

@-webkit-keyframes loading-rotate {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loading-rotate {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes loading-dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

@keyframes loading-dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

@-webkit-keyframes loading-color {
    100%, 0% {
        stroke: #d62d20;
    }
    40% {
        stroke: #0057e7;
    }
    66% {
        stroke: #008744;
    }
    80%, 90% {
        stroke: #ffa700;
    }
}

@keyframes loading-color {
    100%, 0% {
        stroke: #d62d20;
    }
    40% {
        stroke: #0057e7;
    }
    66% {
        stroke: #008744;
    }
    80%, 90% {
        stroke: #ffa700;
    }
}

@-webkit-keyframes loading-text-animation {
	100%, 0% {
		opacity: 0
	}
	30% {
		opacity: 1
	}
	80% {
		opacity: 0
	}
}

@keyframes loading-text-animation {
	100%, 0% {
		opacity: 0
	}
	30% {
		opacity: 1
	}
	80% {
		opacity: 0
	}
}
