.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 40px;
    height: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: lightgray;
    animation: dotMove 1.5s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.3s;
}

.dot:nth-child(2) {
    animation-delay: -0.15s;
}

@keyframes dotMove {

    0%,
    80%,
    100% {
        transform: translateX(0);
        background-color: lightgray;
    }

    40% {
        transform: translateX(10px);
        background-color: gray;
    }
}

[content-display] {
    transition: transform 0.5s ease-in-out;
}

[content-display="open"] {
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.144);
    transform: translateX(0);
}

[content-display="closed"] {
    box-shadow: none;
    transform: translateX(100%);
}