body {
    background-color: #111922;
}

#index-loading {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: black;
    overflow: hidden;
}
#index-loading p {
    width: 300px;
    height: 300px;
    margin: 0;
    background: url(/images/logo/loading.png) no-repeat center;
    background-size: 100% 100%;
    animation: imageBounce 1.4s ease infinite;
}
#index-loading.seven p{
    background-image: url(/images/logo/loading-777-tp.png);
}
#index-loading span {
    position: relative;
    display: block;
    width: 260px;
    height: 10px;
    margin-top: 15px;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #151c26;
}
#index-loading span:before {
    position: absolute;
    content: '';
    width: 20px;
    height: 100%;
    border-radius: 0.5rem;
    transform: translate(-10px, 0);
    animation: lineSliding 1.4s infinite ease;
    background-color: #156af3;
}

body.light {
    background-color: #f4f6f7;
}

.light #index-loading {
    background-color: white;
}
.light #index-loading p {
    background-image: url(/images/logo/loading-light.png);
}
.light #index-loading span {
    background-color: #dedede;
}
.light #index-loading span:before {
    background-color: #77abff;
}

@media screen and (max-width: 768px) {
    #index-loading p {
        width: 200px;
        height: 200px;
    }
    #index-loading span {
        width: 160px;
        height: 8px;
    }
}

@keyframes imageBounce {
    0% {
        transform: scale(1);
        filter: blur(0);
    }
    50% {
        transform: scale(0.9);
        filter: blur(1.4);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes lineSliding {
    0% {
        left: 0;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 0;
    }
}
