/* ================= Boot Sequence ================= */

.boot-screen {
    position: fixed;
    inset: 0;
    background-color: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 40px;
    z-index: 10000;

    display: flex;
    flex-direction: column;

    overflow: hidden;
    /* Hide boot elements completely when removed */
.boot-screen.hidden,
.splash-screen.hidden {
    display: none !important;
}
}

/* Container that scrolls as lines print */
.boot-content {
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Each printed line */
.boot-line {
    margin-bottom: 2px;
    opacity: 0;
    animation: fadeIn 0.12s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}


/* Blinking DOS-style cursor */
.boot-cursor {
    display: inline-block;
    width: 9px;
    height: 1em;              /* match text height automatically */
    background: #00ff00;
    margin-left: 4px;
    vertical-align: bottom;   /* keeps cursor aligned with text baseline */
    animation: blink 0.9s steps(2, start) infinite;
}

/* Reliable blink (visibility can fail in some browsers) */
@keyframes blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}



/* ================= Splash Screen Container (no overlay) ================= */

.splash-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* no fullscreen sizing */
    width: auto;
    height: auto;

    background: transparent;
    z-index: 9999;

    opacity: 0;
    pointer-events: none;
}

.splash-screen.active {
    animation: splashFadeIn 0.5s ease forwards;
    pointer-events: auto;
}

.splash-screen.fade-out {
    animation: splashFadeOut 0.5s ease forwards;
}


@keyframes splashFadeIn { to { opacity: 1; } }
@keyframes splashFadeOut { to { opacity: 0; } }



/* ================= Centered Window ================= */

.splash-window {
    width: 520px;
    max-width: 90vw;
    padding: 40px 50px;

    background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
    border-radius: 14px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    transform: scale(0.94);
    animation: windowPop 0.45s ease forwards;
}

@keyframes windowPop {
    to { transform: scale(1); }
}



/* ================= Splash Content ================= */

.gusify-logo {
    font-size: 64px;
    font-weight: bold;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.splash-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin-bottom: 18px;
}

.version-text {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    margin-bottom: 22px;
}



/* ================= Animated Loading Text ================= */

.loading-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.loading-dots::after {
    content: '';
    animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}



/* ================= Animated Loading Text ================= */

.loading-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

/* animated dots */
.loading-dots::after {
    content: '';
    animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* Utility */
.hidden {
    display: none !important;
}
header,
.site-header,
.navbar {
    position: relative;
    z-index: 10001; /* higher than splash (9999) */
}
/* Hide header initially during boot sequence */
body.booting header,
body.booting main {
    display: none;
}