:root {
    --loading-color: rgba(255, 132, 187);
    --loading-bg-color: rgba(32, 33, 44);
    --loading-bar-height: 60px;
    --loading-bar-width: 5px;
    --loading-bar-gap: calc(var(--loading-bar-width) * 2);
    --animation-delay: 0.1s;
}

/* Loading Screen */
#loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 9999;
    background-color: var(--loading-bg-color);
    top: 0;
    left: 0;
    transition: all 0.9s;
}
#loading .main {
    display: flex;
    flex-direction: row;
    margin-left: auto;
    margin-right: auto;
    gap: calc(var(--loading-bar-gap) / 2);
}
#loading .main div {
    width: var(--loading-bar-width);
    height: 0;
    background-color: var(--loading-color);
    border-radius: 25px;
    animation: load 0.9s infinite;
}
#loading .main div:nth-child(2) {
    animation-delay: 0.1s;
}
#loading .main div:nth-child(3) {
    animation-delay: 0.2s;
}
#loading .main div:nth-child(4) {
    animation-delay: 0.3s;
}
#loading .main div:nth-child(5) {
    animation-delay: 0.4s;
}
#loading .main div:nth-child(6) {
    animation-delay: 0.5s;
}
#loading .main div:nth-child(7) {
    animation-delay: 0.6s;
}
#loading .main div:nth-child(8) {
    animation-delay: 0.7s;
}
@keyframes load {
    0% {
        height: 0;
        margin-top: calc(var(--loading-bar-height) / 2);
    }
    50% {
        height: var(--loading-bar-height);
        margin-top: 0;
    }
    100% {
        height: 0;
        margin-top: calc(var(--loading-bar-height) / 2);
    }
}

/* Skeleton Loading */
/*
img {
    background-color: red;
    animation: skeleton 0.9s infinite;
}

@keyframes skeleton {
    0% {
        background-color: white;
    }
    50% {
        background-color: darkgray;
    }
    100% {
        background-color: white;
    }
}
*/
