@import url(config.css);
@import url(root.css);

body {
    background-color: var(--background_i);
    color: var(--white-text-spk);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;

    animation: flashBackgorund 22s linear forwards;
}

.window-narrative {
    position: relative;
    width: 80%;
    max-width: 600px;
    height: 400px;
    overflow: hidden;
    text-align: center;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);

    animation:  earthquake 25s linear forwards;
}

.text {
    position: absolute;
    width: 100%;
    animation: upText 22s linear forwards;
}

h1 {
    color: var(--h1_color);
    font-size: 2rem;
    margin-bottom: 40px;
}

.diferent{
    font-style: italic;
    color: var(--diferent);
}

p {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

@keyframes upText {
    0% {
        transform: translateY(400px);
    }

    100% {
        transform: translateY(-750px);
    }
}

.button-next {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color:  var(--h1_color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    background: var(--btn_background);

    opacity: 0;
    pointer-events: none;

    animation: buttonAnimation 0.5s linear 25s forwards;
    transition: background 0.3s, color 0.4s;
}

.button-next:hover{
    background-color: rgba(255, 180, 68, 02);
    color: var(--letter);
}

@keyframes buttonAnimation {
    to {
        opacity: 1;
        pointer-events: auto;
    }
}

@keyframes earthquake {
    0%, 34%, 56%, 100% {
        transform: translate(0, 0);
    }
    35% {
        transform: translate(2px, 1px);
        rotate: 0deg;
    }
    37%{
        transform: translate(-1px, -2px);
        rotate: -1deg;
    }
    39% {
        transform: translate(-3px, 0px);
        rotate: 1deg;
    }
    41%{
        transform: translate(0px, 2px);
        rotate: 0deg;
    }
    43% {
        transform: translate(1deg);
        rotate: 1deg;
    }
    45% {
        transform: translate(-1px, 2px);
        rotate: -1deg;
    }
    47%{
        transform: translate(-3px, 1px);
        rotate: 0deg;
    }
    49%{
        transform: translate(2px, 1px);
        rotate: -1deg;
    }
    51%{
        transform: translate(-1px, -1px);
        rotate: 1deg;
    }
    53% {
        transform: translate(2px, 2px);
        rotate: 0deg;
    }
    55% {
        transform: translate(1px, -2px);
        rotate: 0deg;
    }
}

@keyframes flashBackground {
    0%, 34%, 56%, 100% {
        background-color: #0B0B0D;
    }

    35%, 55% {
        background-color: var(--flash_effect_medi);
    }
    45%{
        background-color: var(--flash_effect_finished);
    }
}

h1 {
    color: #ffb444;
    text-shadow: 0 0 5px rgba(255, 180, 68, 0.5), 0 0 20px rgba(255, 100, 0, 0.25);
    animation: goldenPulse 3s ease-in-out infinite;
}

@keyframes goldenPulse {
    0%, 100%{
        text-shadow: 0 0 5px rgba(255, 180, 68, 0.3);
    }
    50%{
        text-shadow: 0 0 12px #ffb444, 0 0 32px rgba(255, 80, 0, 0.7);
    }
}

