body,
main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

body {
    background-color: var(--black);
}

main {
    background-color: var(--white);
    padding-top: 75px;
    padding-bottom: 75px;
    width: 100%;
}

.intro {
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
}

.hello {
    font-family: Frames;
    font-weight: 400;
    color: var(--white);
    font-size: 3.5em;
    margin: 0;
    align-self: flex-start;
}

.estevao {
    margin: 0;
    font-family: Frames;
    font-weight: 700;
    margin-top: -40px;
    color: var(--white);
    font-size: 15em;
}

.about {
    text-align: left;
    color: var(--white);
    width: 25vw;
    font-weight: 300;
    align-self: flex-end;
    font-size: 0.9em;
    line-height: 1.5em;
}

.work {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    width: 100%;
    background-color: var(--white);
}

main {
    row-gap: 25px;
}

section {
    border: 3px solid var(--black);
    padding-top: 30px;
    padding-left: 30px;
    width: 80vw;
    overflow-x: scroll;
    overflow-y: hidden;
    padding-bottom: 20px;
    position: relative;
}

.works {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    column-gap: 25px;
    padding-bottom: 25px;
    max-height: 90vh;
    transition: height 1s;
}

section p {
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    margin: 0;
}

section p:first-child {
    position: sticky;
    top: 0px;
    left: 0px;
    z-index: 10;
}

article {
    background-color: var(--black);
    flex-shrink: 0;
    width: 25vw;
    height: 75vh;
    overflow: hidden;
    padding: 25px;
    transition: all 0.8s ease-in-out;
    margin-top: 25px;
}

.imgcard {
    height: 80%;
    margin: 0px;
    width: 100%;
    object-fit: cover;
    transition: all 0.8s ease-in-out;
    align-self: flex-start;
}

.imgcard:hover {
    height: 100%;
    width: 100%;
}

article h1,
article p,
article h1 a {
    color: var(--white);
}

article h1 {
    font-size: 1.5em;
    font-weight: 600;
    line-height: 125%;
    margin-top: 20px;
    margin-bottom: 15px;
}

article h1:hover {
    text-decoration: underline;
}

article p {
    font-size: 0.9em;
    font-weight: 400;
    line-height: 150%;
    padding-bottom: 25px;
}

article.hover {
    cursor: pointer;
    padding: 0px;
    width: calc(30vw + 50px);
    height: calc(75vh + 50px);
    transition: all 0.8s ease-in-out;
}

article.hidden {
    padding: 0px;
    transition: all 0.8s ease-in-out;
}

section a:last-child {
    padding-right: 25px;
}

.begin {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.loaded {
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

@media screen and (max-width: 1280px) {
    .hello {
        font-size: 2.5em;
    }

    .estevao {
        font-size: 9.8em;
        margin-top: 5px;
    }

    .about {
        width: 40vw;
        font-size: 0.8em;
    }

    .works {
        height: 80vh;
    }

    article {
        width: 40vw;
        height: 70vh;
    }

    article.hover {
        width: calc(45vw + 50px);
        height: calc(70vh + 50px);
        padding: 0;
    }

    .imgcard {
        height: 75%;
    }

    article h1 {
        font-size: 1.6em;
    }
}

@media screen and (max-width:720px) {
    .hello {
        font-size: 1.3em;
        align-self: flex-start;
    }

    .estevao {
        font-size: 5em;
        margin-top: 0;
    }

    .about {
        width: 70vw;
        font-size: 0.65em;
        align-self: flex-start;
    }

    .works {
        height: 60vh;
    }

    article {
        width: 70vw;
        height: 50vh;
    }

    article.hover {
        width: calc(75vw + 50px);
        height: calc(50vh + 50px);
        padding: 0;
    }

    .imgcard {
        height: 60%;
    }

    section p {
        font-size: 0.9em;
    }
}

.hidden {
    height: 0px;
    padding-bottom: 0;
    transition: height 1s;
}