/*  Reset */

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

ul,
li {
    list-style-type: none;
}

iframe {
    border: 0;
}

input {
    border-radius: 0;
    -webkit-appearance: none;
}

:focus {
    border: 0px;
    outline: none;
}


/*  Typography */

@font-face {
    font-family: 'IBM';
    src: url('fonts/ibm-bold.woff2') format('woff'),
        url('fonts/ibm-bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body,
html,
h1,
h2,
h3,
h4,
::placeholder,
input,
button,
small {
    font-family: 'IBM', Arial, Helvetica, sans-serif;
    letter-spacing: 0.04em;
    font-size: 23px;
    line-height: 1.3em;
    font-weight: normal;
    font-style: normal;
}

a {
    color: initial;
    text-decoration: none;
}

a:hover {
    color: initial;
    text-decoration: none;
}

p {
    padding: 0;
    margin: 0;
}

h1 {
    display: none;
}

:root {
    --font-size-1: 1.25rem;
    --font-size-2: 4rem;
    --font-size-3: 3rem;
    --color-1: rgb(255, 24, 24);
    --color-2: rgb(252, 252, 180);
    --border-size: 3px black solid;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/*  Home */
.header-title,
.header-abstract,
.projects-item {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
}

.header-title,
.header-abstract {
    justify-content: center;
    align-items: center;
    display: flex;
    align-items: center;

}

.header-abstract p {
    font-size: var(--font-size-1);
    line-height: 1.3em;
    text-align: center;
    padding: 0.5em 2em;
}

.header-abstract-content {
    width: calc(100% - 1em);
    margin: auto;
}

.header-title {
    pointer-events: none;

}

.header-title h2 {
    transform: rotate(-30deg);
    font-size: var(--font-size-2);
    color: var(--color-1);
}

.projects-item {
    filter: drop-shadow(0 0 0.5em rgba(0, 0, 0, 0.2));
}

.projects-item-acronim,
.projects-item-content {
    background: var(--color-2);
}

.projects-item-acronim {
    width: calc(100% / 5);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2em;
    text-transform: uppercase;
}

.projects-item:nth-child(2) .projects-item-acronim {
    margin-left: calc(100% / 5);
}

.projects-item:nth-child(3) .projects-item-acronim {
    margin-left: calc(100% / 5 * 2);
}

.projects-item:nth-child(4) .projects-item-acronim {
    margin-left: calc(100% / 5 * 3);
}

.projects-item:nth-child(5) .projects-item-acronim {
    margin-left: calc(100% / 5 * 4);
}

.projects-item-content {
    height: calc(100vh - 2em);
}

.project-item-wrapper {
    font-size: var(--font-size-1);
    line-height: 1.3em;
    padding: 2rem;
}

.project-item-wrapper h3 {
    font-size: var(--font-size-3);
    text-transform: uppercase;
    text-align: center;
    padding: 1em;
}

.project-item-abstract {
    max-width: 30em;
    margin: auto;
}

.project-item-abstract p {
    padding-bottom: 1em;
}

.project-item-abstract a:hover {
    border-bottom: var(--border);
}

/*  Project page */
.home .project-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    overflow: scroll;
    filter: drop-shadow(0 0 0.5em rgba(0, 0, 0, 0.2));
    transform: translateY(0);
    scroll-behavior: smooth;
}

.home .entering .project-page {
    transform: translateY(100vh);
    animation: enter 0.25s ease 0.5s forwards;
}


@keyframes enter {
    0% {
        transform: translateY(100vh);
    }

    100% {
        transform: translateY(0vh);
    }
}

.project-back {
    position: sticky;
    top: 0;
    padding: 0.75em 1em;
}

.project-content {
    width: calc(100% - 2em);
    max-width: 40em;
    margin: auto;
}

.project-content h2 {
    text-transform: uppercase;
    text-align: center;
    font-size: var(--font-size-3);
    padding: 1em 1em 0.75em 1em;
}

.project-index {
    margin: 2em 4em;
}

.project-index li {
    padding-left: 0.5em;
    margin-left: 1em;
    list-style-type: disc;
}

.project-index:hover li {
    opacity: 0.25;
}

.project-index li:hover {
    opacity: 1 !important;
}

.project-block {
    border-top: 2px black solid;
    padding: 1em 0 2em 0;
    margin-top: 1em;
}

.project-block h4 {
    text-align: center;
    text-transform: uppercase;
    padding: 2em;
    max-width: 27em;
    margin: auto;
}

.project-block-abstract {
    padding-bottom: 1em;
}

.project-block-images {
    padding: 2em 3em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    row-gap: 2em;
}

.project-block-images img {
    width: 100%;
}

.project-block-images figure {
    pointer-events: none;
}

figcaption {
    text-align: center;
    font-size: 0.8em;
}

.zoomIn {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    cursor: pointer;

}

.zoomIn img {
    margin: 1em;
    width: calc(100% - 2em);
    height: calc(100% - 2em);
    object-fit: contain;
    pointer-events: none;
}

/*  Media Query */
@media only screen and (max-width: 768px) {

    body,
    html,
    h1,
    h2,
    h3,
    h4,
    ::placeholder,
    input,
    button,
    small {
        font-size: 16px;
    }

    .header-title h2 {
        transform: rotate(-60deg);
    }

    :root {
        --font-size-1: 1.1rem;
        --font-size-2: 4rem;
        --font-size-3: 1.5rem;
        --border: 2px black solid;
    }

    .project-item-wrapper h3 {
        padding: 1em 0;
    }

    .project-index {
        margin: 2em 1em;
    }

    .project-block-images {
        padding: 2em 0;
    }

    .project-block h4 {
        padding: 1em 0.5em 1.5em 0.5em;
    }

    .project-back a {
        display: inline-flex;
        padding: 0.5em 1.5em;
        border-radius: 2em;
        background-color: white;
        filter: drop-shadow(0 0 0.5em rgba(0, 0, 0, 0.2));
    }

}