:root {
    --cor_fundo_escuro: #333333;
    --cor_fundo_claro: #C0BCB5;
    --cor_texto: ;
    --cor_destaque: #a81414;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

header {
    z-index: 10;
    display: flex;
    flex-direction: row;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;

    background-color: var(--cor_fundo_escuro);
}

a {
    text-decoration: none;
    color: var(--cor_destaque);
}

header > img {
    margin: 0.5rem;
    height: 1.75rem;
}

header > a {
    padding: 0.5rem;
    margin: auto;
}

p {
    position: absolute;
    top: 0;
    padding: 2rem;
}

.article-container {
    display: flex;
    flex-direction: column;
}

.article {
    height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background-color: #f4f4f4;
    color: #333;
    transition: transform 1s ease, opacity 1s ease;
    transform: scale(0.75);
    opacity: 0.5;
}

.article.in-view {
    transform: scale(1);
    /* Zoom in when in view */
    opacity: 1;
}

.article:nth-child(even) {
    background-color: #ddd;
}

.article:nth-child(odd) {
    background-color: #bbb;
}

/* Para os articles que tiverem a classe in-view criar animacoes secundarias */
.article > img {
    transition: transform 4s ease;
    transform: translateX(50rem);
}

.article.in-view > img {
    transform: translateX(0);
}

.article > p {
    transition: opacity 4s ease;
    opacity: 0;
}

.article.in-view > p {
    opacity: 1;
}
