/* 
 * Read the blog post here: 
 * https://letsbuildui.dev/articles/how-to-build-a-skeleton-loading-placeholder 
 */
.faux-text {
    background: #dddddd;
    border-radius: 4px;
    height: 20px;
    margin-bottom: 5px;
    width: 100%;
}

.faux-text.short {
    width: 75%;
}
.faux-text.shorter {
    width: 55%;
}

.shimmer {
    overflow: hidden;
    position: relative;
}

.shimmer::before {
    content: "";
    position: absolute;
    background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
    );
    height: 100%;
    width: 100%;
    z-index: 1;
    animation: shimmer 1s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
