/* Spec 429: the Blazor reconnect notice, its own sheet so the static public pages with an island load it too.
   Moved from components.css; tabletop-pieces.css still adds the tabletop look. */

#components-reconnect-modal {
    align-items: center;
    background: var(--tt-field);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
}

#components-reconnect-modal.components-reconnect-show {
    display: flex;
}

/* Spec 319: the first 2.5 s of a drop only take clicks; nothing is shown or announced. */
#components-reconnect-modal.components-reconnect-pending {
    background: transparent;
    cursor: progress;
    display: block;
}

#components-reconnect-modal.components-reconnect-pending .reconnect-card {
    visibility: hidden;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none;
}

/* Spec 327 rule 7: the restart texts replace the drop texts while the server is away. */
#components-reconnect-modal .reconnect-text-restart,
#components-reconnect-modal.components-reconnect-restarting .reconnect-text-drop {
    display: none;
}

#components-reconnect-modal.components-reconnect-restarting strong.reconnect-text-restart {
    display: inline;
}

#components-reconnect-modal.components-reconnect-restarting p.reconnect-text-restart {
    display: block;
}

#components-reconnect-modal .reconnect-card {
    background: var(--tt-field);
    border: 1px solid var(--tt-line);
    border-radius: 0;
    box-shadow: none;
    color: var(--tt-ink);
    max-width: 25rem;
    padding: 1.5rem;
    text-align: center;
}

#components-reconnect-modal .reconnect-card p {
    color: var(--tt-accent);
    margin: 0.55rem 0 0;
}

#components-reconnect-modal .reconnect-spinner {
    animation: reconnect-spin 0.8s linear infinite;
    border: 3px solid var(--tt-line);
    border-top-color: var(--tt-accent);
    border-radius: 0;
    height: 2.25rem;
    margin: 0 auto 0.9rem;
    width: 2.25rem;
}

@keyframes reconnect-spin {
    to {
        transform: rotate(360deg);
    }
}
