/* Entry-page styles, a separate file so style-src needs no 'unsafe-inline'. */

/* The client's window colour, so the page never flashes white. */
html,
body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    height: 100%;
    background: var(--canvas, #050208);
}

#screen {
    width: 100%;
    height: 100%;
}

#screen.hidden {
    display: none;
}

#boot {
    position: fixed;
    inset: 0;
    /* Over the canvas the client starts under. */
    z-index: 1000;
    background: var(--canvas, #050208);
    display: grid;
    place-items: center;
    font: 400 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #cbb7d8;
    text-align: center;
}

#boot.hidden {
    display: none;
}

#boot .panel {
    width: min(360px, 78vw);
}

#boot img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    visibility: hidden;
    margin-bottom: 28px;
}

#boot.brand-ready:not(.pitslots-style) img {
    height: auto;
}

#boot.brand-ready img {
    visibility: visible;
}

#track {
    height: 3px;
    border-radius: 2px;
    background: #241430;
    overflow: hidden;
}

#bar {
    height: 100%;
    width: 30%;
    border-radius: 2px;
    background: #d33a5e;
    animation: slide 1.4s ease-in-out infinite;
}

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

    100% {
        transform: translateX(333%);
    }
}

#boot p {
    margin: 18px 0 0;
}

#boot button {
    margin-top: 20px;
    padding: 10px 26px;
    border: 0;
    border-radius: 6px;
    background: #236b31;
    color: #fff6dc;
    font: 700 14px system-ui, sans-serif;
    cursor: pointer;
}

.failed #bar {
    animation: none;
    width: 100%;
    background: #b03030;
}
