﻿#custom-loader-container, .custom-loader-container {
    display: grid;
    justify-content: center;
    margin-top: 15px;
}

#custom-loader-container .custom-loader {
    --color-1: #fff;
    --color-2: #00aeff;
    --size: 1px;

    position: relative;
    width: calc(164 * var(--size));
    height: calc(164 * var(--size));
}

#custom-loader-container .custom-loader::before,
#custom-loader-container .custom-loader::after {
    content: '';
    position: absolute;
    width: calc(40 * var(--size));
    height: calc(40 * var(--size));
    background-color: var(--color-1);
    left: 50%;
    top: 50%;
    animation: rotate 1s ease-in infinite;
}

#custom-loader-container .custom-loader::after {
    width: calc(20 * var(--size));
    height: calc(20 * var(--size));
    background-color: var(--color-2);
    animation:
        rotate 1s ease-in infinite,
        moveY 1s ease-in infinite;
}

@keyframes moveY {
    0%,
    100% {
        top: 10%;
    }

    45%,
    55% {
        top: 59%;
    }

    60% {
        top: 40%;
    }
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -100%) rotate(0deg) scale(1, 1);
    }

    25% {
        transform: translate(-50%, 0%) rotate(180deg) scale(1, 1);
    }

    45%,
    55% {
        transform: translate(-50%, 100%) rotate(180deg) scale(3, 0.5);
    }

    60% {
        transform: translate(-50%, 100%) rotate(180deg) scale(1, 1);
    }

    75% {
        transform: translate(-50%, 0%) rotate(270deg) scale(1, 1);
    }

    100% {
        transform: translate(-50%, -100%) rotate(360deg) scale(1, 1);
    }
}

/* #custom-loader-container .custom-loader, .custom-loader-container .custom-loader {
    width: 70px;
    height: 70px;
    display: grid;
}

#custom-loader-container .custom-loader::before,
#custom-loader-container .custom-loader::after,
.custom-loader-container .custom-loader::before,
.custom-loader-container .custom-loader::after
{
    content: "";
    grid-area: 1/1;
    --c: radial-gradient(farthest-side, #03d3df 92%, #0000);
    background: var(--c) 50% 0, var(--c) 50% 100%, var(--c) 100% 50%, var(--c) 0 50%;
    background-size: 12px 12px;
    background-repeat: no-repeat;
    animation: s2 1s infinite;
}

#custom-loader-container .custom-loader::before,
.custom-loader-container .custom-loader::before
{
    margin: 4px;
    filter: hue-rotate(45deg);
    background-size: 8px 8px;
    animation-timing-function: linear
}

@keyframes s2 {
    100% {
        transform: rotate(.5turn)
    }
}

@keyframes astronaut {
    0% {
        right: -175px;
        transform: scale(0.2) rotate(0deg);
    }

    100% {
        right: calc(100vw + 500px);
        transform: scale(0.4) rotate(180deg);
    }
} */


.astronaut {
    width: 250px;
    height: 300px;
    position: fixed;
    z-index: 11;
    /*top: calc(50% - 150px);*/
    right: -175px;
    z-index: 0;
    transform: scale(0.2);
    opacity: 0.25;
}

.astronaut.flyAcross {
    animation: astronaut 4s ease-in-out;
}

.schoolbag {
    width: 100px;
    height: 150px;
    position: absolute;
    z-index: 1;
    top: calc(50% - 75px);
    left: calc(50% - 50px);
    background-color: #94b7ca;
    border-radius: 50px 50px 0 0 / 30px 30px 0 0;
}

.head {
    width: 97px;
    height: 80px;
    position: absolute;
    z-index: 3;
    background: -webkit-linear-gradient(left, #e3e8eb 0%, #e3e8eb 50%, #fbfdfa 50%, #fbfdfa 100%);
    border-radius: 50%;
    top: 34px;
    left: calc(50% - 47.5px);
}

    .head:after {
        content: "";
        width: 60px;
        height: 50px;
        position: absolute;
        top: calc(50% - 25px);
        left: calc(50% - 30px);
        background: -webkit-linear-gradient(top, #15aece 0%, #15aece 50%, #0391bf 50%, #0391bf 100%);
        border-radius: 15px;
    }

    .head:before {
        content: "";
        width: 12px;
        height: 25px;
        position: absolute;
        top: calc(50% - 12.5px);
        left: -4px;
        background-color: #618095;
        border-radius: 5px;
        box-shadow: 92px 0px 0px #618095;
    }

.body {
    width: 85px;
    height: 100px;
    position: absolute;
    z-index: 2;
    background-color: #fffbff;
    border-radius: 40px / 20px;
    top: 105px;
    left: calc(50% - 41px);
    background: -webkit-linear-gradient(left, #e3e8eb 0%, #e3e8eb 50%, #fbfdfa 50%, #fbfdfa 100%);
}

.panel {
    width: 60px;
    height: 40px;
    position: absolute;
    top: 20px;
    left: calc(50% - 30px);
    background-color: #b7cceb;
}

    .panel:before {
        content: "";
        width: 30px;
        height: 5px;
        position: absolute;
        top: 9px;
        left: 7px;
        background-color: #fbfdfa;
        box-shadow: 0px 9px 0px #fbfdfa, 0px 18px 0px #fbfdfa;
    }

    .panel:after {
        content: "";
        width: 8px;
        height: 8px;
        position: absolute;
        top: 9px;
        right: 7px;
        background-color: #fbfdfa;
        border-radius: 50%;
        box-shadow: 0px 14px 0px 2px #fbfdfa;
    }

.arm {
    width: 80px;
    height: 30px;
    position: absolute;
    top: 121px;
    z-index: 2;
}

.arm-left {
    left: 30px;
    background-color: #e3e8eb;
    border-radius: 0 0 0 39px;
}

.arm-right {
    right: 30px;
    background-color: #fbfdfa;
    border-radius: 0 0 39px 0;
}

    .arm-left:before,
    .arm-right:before {
        content: "";
        width: 30px;
        height: 70px;
        position: absolute;
        top: -40px;
    }

.arm-left:before {
    border-radius: 50px 50px 0px 120px / 50px 50px 0 110px;
    left: 0;
    background-color: #e3e8eb;
}

.arm-right:before {
    border-radius: 50px 50px 120px 0 / 50px 50px 110px 0;
    right: 0;
    background-color: #fbfdfa;
}

.arm-left:after,
.arm-right:after {
    content: "";
    width: 30px;
    height: 10px;
    position: absolute;
    top: -24px;
}

.arm-left:after {
    background-color: #6e91a4;
    left: 0;
}

.arm-right:after {
    right: 0;
    background-color: #b6d2e0;
}

.leg {
    width: 30px;
    height: 40px;
    position: absolute;
    z-index: 2;
    bottom: 70px;
}

.leg-left {
    left: 76px;
    background-color: #e3e8eb;
    transform: rotate(20deg);
}

.leg-right {
    right: 73px;
    background-color: #fbfdfa;
    transform: rotate(-20deg);
}

    .leg-left:before,
    .leg-right:before {
        content: "";
        width: 50px;
        height: 25px;
        position: absolute;
        bottom: -26px;
    }

.leg-left:before {
    left: -20px;
    background-color: #e3e8eb;
    border-radius: 30px 0 0 0;
    border-bottom: 10px solid #6d96ac;
}

.leg-right:before {
    right: -20px;
    background-color: #fbfdfa;
    border-radius: 0 30px 0 0;
    border-bottom: 10px solid #b0cfe4;
}