@import url(./variables.css);

.homepage section, .homepage section > .container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em;
}

.homepage section p {
    font-size: 20px;
}

.homepage #capa {
    background-color: var(--lum-grey);
    background-image: url('../img/hero-banner.jpg');
    background-size: cover;
    flex-direction: column;
}

.homepage #capa .logo {
    width: calc(20vw + 200px);
}

.homepage #capa .icon-down {
    width: 50px;
    margin-bottom: -40vh;
    animation: 2000ms ease 0ms infinite normal none running;
    animation-name: pulse-down;
    animation-delay: 1.5s;
    opacity: 0;
}

.homepage #bem-vindo, .homepage #resenha {
    background-image: url('../img/lumina-background.png');
    background-size: cover;
}

.homepage #bem-vindo > .container,
.homepage #resenha > .container {
    gap: 3em;
}

.homepage #bem-vindo > div > div,
.homepage #resenha > div > div {
    width: 40%;
}

.homepage #bem-vindo img {
    width: 300px;
}

.homepage #glossario {
    text-align: center;
    color: white;
    background-color: var(--lum-grey);
    background-image: radial-gradient(circle at 50%, #000d, transparent), url('../img/splashed-books.jpg');
    background-size: cover;
}

.homepage #glossario h1 {
    font-size: 50px;
}
.homepage #glossario > .container {
    flex-direction: column;
    gap: 2em;
}

.entrance-animation {
    opacity: 0;
    transition: opacity 1s ease, transform 1.2s ease;
    transform: translateY(50px);
}

.entrance-animation.show {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 992px) {
    .homepage #bem-vindo > .container {
        flex-direction: column-reverse;
    }
    .homepage #resenha > .container {
        flex-direction: column;
    }
    .homepage #bem-vindo > div > div,
    .homepage #resenha > div > div {
        width: 100%;
    }
    .homepage #bem-vindo img {
        width: 70%;
        display: none;
    }
}

@keyframes pulse-down {
    0% {
        opacity: 0;
        margin-bottom: -40vh;
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
    
    50% {
        opacity: 1;
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }
    100% {
        opacity: 0;
        margin-bottom: calc(-40vh - 40px);
    }
}