/*
 * The loading bar, under the PLEXPIXEL logo at half its width.
 *
 * It is absolutely positioned and takes no pointer events, so it reserves no
 * space in the logo block and nothing under it is covered: the page is live
 * for the whole of a load and the layout does not move when the bar goes.
 *
 * js/three/load-bar.js writes the width, the word and the one class.
 *
 * docs/notes/css/load-bar.css.md
 */

.pp-loadbar {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 50%;
    margin-top: 14px;
    transform: translateX(-50%);
    z-index: 6;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pp-loadbar.on {
    opacity: 1;
}

/* What is coming in, named. */
.pp-loadbar-word {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.62);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-loadbar-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.pp-loadbar-fill {
    height: 100%;
    width: 0;
    background: #66a3d1;
    transition: width 0.2s linear;
}

@media (max-width: 640px) {
    .pp-loadbar { width: 72%; margin-top: 10px; }
    .pp-loadbar-word { font-size: 10px; }
}
