/* The web page around the shared screens (client-app.css): the brief mark shown while the live connection starts,
   and the dialog shown while it reconnects. */

.boot {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    z-index: 0;
}

.boot__mark {
    font-family: 'Spectral SC', Georgia, serif;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--gold);
}

/* Once a screen is on the page, the mark goes. */
body:has(.public, .app) .boot {
    display: none;
}

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal.components-reconnect-failed button.components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-paused button.components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed button.components-resume-failed-visible {
    display: inline-flex;
}

.reconnect {
    width: min(22rem, calc(100% - 32px));
    border: 0;
    border-radius: 16px;
    padding: 24px;
    background: var(--white);
    color: var(--navy);
    font-family: var(--font-body);
    box-shadow: 0 8px 24px var(--navy-shadow);
}

.reconnect::backdrop {
    background: rgba(25, 37, 55, 0.5);
}

.reconnect__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}
