/* --- manifeste.css --- */
body {
    align-items: center;
    /* Specific centering for manifest flow */
}

/* --- CRT TURN ON EFFECT --- */
#screen-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--void);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: turn-off 0.1s forwards;
    /* Hidden by default */
}

.turn-on-bar {
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    box-shadow: 0 0 20px #fff;
    animation: turn-on 2.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes turn-on {
    0% {
        transform: scaleX(0) scaleY(0);
        opacity: 1;
    }

    10% {
        transform: scaleX(0.02) scaleY(0.02);
        opacity: 1;
    }

    30% {
        transform: scaleX(1) scaleY(0.02);
        opacity: 1;
    }

    60% {
        transform: scaleX(1) scaleY(0.02);
        opacity: 1;
    }

    100% {
        transform: scaleX(1) scaleY(1);
        opacity: 0;
    }
}

/* --- LAYOUT --- */
#main-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 1.5s ease-in-out;
    opacity: 0;
    /* Hidden until TV turns on */
}

#main-container.visible {
    opacity: 1;
}

#main-container.active {
    justify-content: flex-start;
    padding-top: 100px;
}

/* --- TYPOGRAPHY --- */
h1 {
    font-family: var(--font-sacred);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text);
    text-align: center;
    margin-bottom: 0;
    transition: all 1s ease;
}

#main-container.active h1 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: left;
}

.subtitle {
    text-align: center;
    font-style: italic;
    opacity: 0;
    margin-bottom: 3rem;
    transition: opacity 1s;
}

#main-container.active .subtitle {
    text-align: left;
}

/* --- CONTENT SECTIONS --- */
.content-block {
    display: none;
    margin-bottom: 6rem;
    opacity: 0;
    transition: opacity 1s;
}

.content-block.visible {
    opacity: 1;
}

h2 {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #ccc;
    opacity: 0;
    /* Hidden before decode */
}

p.decoding {
    opacity: 1;
}

/* --- CTA --- */
.cta-container {
    text-align: center;
    margin-top: 4rem;
    display: none;
    opacity: 0;
    transition: opacity 1s;
    padding-bottom: 100px;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: var(--accent);
    color: var(--void);
    box-shadow: 0 0 20px var(--accent);
}

footer {
    display: none;
    margin-top: 2rem;
    opacity: 0.5;
    font-family: var(--font-sacred);
    font-size: 0.8rem;
}