/*PRELOADER*/

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader img {
    width: 180px;
    height: 180px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.glitch-text {
    margin-top: 3vh;
    color: rgb(0, 162, 216);
    text-shadow:
        0 0 5px rgba(0, 162, 216, 0.679),
        0 0 10px rgba(0, 162, 216, 0.574),
        0 0 20px rgba(0, 162, 216, 0.432),
        0 0 30px rgba(0, 162, 216, 0.222);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 500px;
}

.letter {
    display: inline-block;
    transform-style: preserve-3d;
    animation: circle-3d 0.4s infinite linear;
    animation-delay: calc(var(--index) * 0.01s);
}

@keyframes circle-3d {
    0% {
        transform: rotateY(0deg);
    }

    25% {
        transform: rotateY(90deg);
    }

    50% {
        transform: rotateY(180deg);
    }

    75% {
        transform: rotateY(270deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.letter:nth-child(odd) {
    animation: circle-3d 4s infinite ease-in-out, glitchText 1.5s infinite;
}

.letter:nth-child(even) {
    animation: circle-3d 4s infinite ease-in-out, glitchText 2s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    60% {
        transform: translate(-2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.scanline {
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to bottom,
            rgba(0, 191, 255, 0.2),
            rgba(0, 191, 255, 0.5),
            rgba(0, 191, 255, 0.8));
    opacity: 0.5;
    animation: scan 2s linear infinite;
}

.scanline2 {
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to bottom,
            rgba(0, 191, 255, 0.2),
            rgba(0, 191, 255, 0.5),
            rgba(0, 191, 255, 0.8));
    animation: scan2 2s linear infinite;
}

.scanline3 {
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to bottom,
            rgba(0, 191, 255, 0.2),
            rgba(0, 191, 255, 0.5),
            rgba(0, 191, 255, 0.8));
    animation: scan3 2s linear infinite;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

@keyframes scan2 {
    0% {
        top: 10px;
    }

    100% {
        top: 110%;
    }
}

@keyframes scan3 {
    0% {
        top: 20px;
    }

    100% {
        top: 120%;
    }
}

@media only screen and (max-width: 1024px) {
    #preloader {
        justify-content: flex-start;
        padding-top: 20%;
    }
}

@media only screen and (max-width: 793px) {
    #preloader {
        justify-content: flex-start;
        padding-top: 50%;
    }
}