@font-face {
    font-family: trebuc;
    src: url('../fonts/trebuc.woff');
}

:root {
    --f-regular: trebuc;
    --c-bg: #202221;
    --c-scnd-bg: #3a3a3a;
    --c-text: #dadada;
    --c-l-text: #747474;
    --c-highlights: #B80301;
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -o-font-smoothing: antialiased;
}

body {
    font-family: var(--f-regular);
    background-color: var(--c-bg);
    color: var(--c-text);
}
body.active {
    overflow: hidden;
}

/* --------------------------------------------- Resets */

ul {
    list-style-type: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
button:hover,
button:focus {
    outline: unset;
    border: unset;
    cursor: pointer;
}

button {
    background-color: unset;
}
/* --------------------------------------------- Presets */

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

section:not(.hero, .project-images) {
    padding: 10rem 0;
}

.top-bar,
.logo,
nav ul li.active a::after,
nav ul li a::after,
.home-projects__img,
.credits a strong,
.project-details a,
.filter-bg,
.filter,
nav ul li a:hover::after,
.filter div,
.project-details-hidden-info__btn,
.next-project a span,
.about-text-container a,
.awards a {
    transition: .5s;
}

.intro-animation-container,
.intro-animation-container h1 span {
    transition: 1s;
}

.project-details a:hover,
.credits a:hover strong,
.next-project a:hover span:last-child,
.about-text-container a:hover,
.awards a:hover {
    color: var(--c-highlights);
}

/* --------------------------------------------- Grid */

.container {
    width: 90%;
    margin: 0 auto;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-column {
    flex-direction: column;
}

/* --------------------------------------------- Typography */

a, 
p,
span, 
h3,
h4,
h5,
h6,
.filter div,
.project-details,
.award-text,
.award-text a {
    font-size: 1.8rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--f-regular);
    font-weight: normal;
}

h2,
.page-secondary h1,
.next-project a span {
    font-size: 3.6rem;
}

p {
    line-height: 1.6;
}


/* --------------------------------------------- Homepage intro */

.intro-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999999999;
    background-color: var(--c-bg);
}

.intro-animation-container.inactive-anim {
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

.intro-animation-container h1 {
    overflow: hidden;
}

.intro-animation-container h1 span {
    display: block;
    font-size: 5vw;
    text-align: center;
    transform: translateY(200%);
}

/* --------------------------------------------- Top bar / Menu */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1rem 0;
}

.top-bar.scroll__up {
    transform: translateY(0);
    background-color: var(--c-scnd-bg);
    padding: 1rem 0;
}

.top-bar.scroll__down {
    transform: translateY(-100%);
}

nav ul li {
    display: inline-flex;
}

nav ul li:first-child {
    margin-right: 2rem;
}

nav ul li a {
    display: inline-block;
    padding: 2rem;
    position: relative;
}

.logo svg {
    width: 4rem;
    fill: #fff;
}

.logo > img {
    width: 17rem;
}

nav ul li.active a::after,
nav ul li a::after {
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    height: 1px;
    content: '';
    background-color: var(--c-text);
}

nav ul li.active a::after {
    width: calc(100% - 4rem);
}

nav ul li a::after {
    width: 0;
}

nav ul li a:hover::after {
    width: calc(100% - 4rem);
}

/* --------------------------------------------- Filter */

.filter-btn {
    display: none;
    pointer-events: none;
    user-select: none;
}

.filter {
    position: fixed;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 999;
}

.filter div {
    color: var(--c-l-text);
    padding: 1rem;
    padding-left: 0;
    cursor: pointer;
    font-family: var(--f-regular);
}

.filter .active-btn,
.filter div:hover {
    color: var(--c-text);
}

/* --------------------------------------------- Hero */

.hero {
    width: 100%;
    height: 100vh;
}

.hero__image-container {
    width: 100%;
    height: 100%;
}

.hero__image {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------- Homepage project  */

.home-projects__container {
    width: 80%;
    margin-left: auto;
}

.home-projects__project-container:not(:last-child) {
    margin-bottom: 10rem;
}

.home-projects__project-container {
    display: block;
}

.home-projects__img-container {
    height: 80vh;
    overflow: hidden;
}

.home-projects__img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition-timing-function: cubic-bezier(.42, 0, .58, 1);
}

.home-projects__project-container:hover .home-projects__img {
    transform: scale(1.05);
}

.home-projects__detail {
    margin-top: 2rem;
}



/* --------------------------------------------- Footer */

footer {
    padding: 5rem 0;
    border-top: 1px solid var(--c-text);
}

.credits {
    text-align: right;
}

.credits a {
    display: block;
    color: var(--c-l-text);
    margin-bottom: 2rem;
}

.credits a strong {
    color: var(--c-text);
}


/* --------------------------------------------- Project page */

.project-info-container .container > .flex {
    align-items: flex-start;
}

.project-title-logo,
.project-details {
    border-top: 1px solid var(--c-text);
    padding-top: 3rem;
}

.project-title-logo {
    width: 40%;
}

.project-title-logo {
    align-items: flex-end;
}

.project-details {
    width: 40%;
}

.project-details a {
    text-decoration: underline;
}

.project-details-info div:first-child {
    color: var(--c-l-text);
}

.project-details-info > *:not(:last-child):not(ul),
.project-details-info > ul li:not(:last-child)
{
    margin-bottom: 1.5rem;
}

.project-details-hidden-info__btn {
    cursor: pointer;
    padding: 1rem;
    border: 1px solid var(--c-text);
    width: 13rem;
    text-align: center;
}

.project-details-hidden-info__btn:hover {
    color: var(--c-highlights);
    border-color: var(--c-highlights);
}

.project-details-hidden-info__content {
    margin-top: 5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .7s ease-out;
}

.project-details > div:not(:last-child),
.project-details-hidden-info__content > div:not(:last-child) {
    margin-bottom: 5rem;
}


.project-images .image-container:not(:last-child) {
    margin-bottom: 5rem;
}

.image-container img {
    max-height: 80vh;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.next-project a:last-child {
    margin-left: 5rem;
}
 
.next-project a span:first-child {
    color: var(--c-l-text);
}

/* --------------------------------------------- About page */

.about-text-container {
    width: 45%;
}

.about-text-container a {
    display: inline-block;
}

.about-text-container > *:not(:last-child) {
    margin-bottom: 3rem;
}

.award-container {
    padding: 3rem 0;
    width: 50%;
    margin: 0 auto;
}

.award-text {
    width: 80%;
}

.award-container:not(:last-child) {
    border-bottom: 1px solid var(--c-l-text);
}

.award-image-container {
    width: 15%;
    padding-bottom: 20%;
    margin-left: 5%;
}

.award-image-container img {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}

.awards {
    padding: 2rem 0 !important;
}

#baguetteBox-overlay .full-image img {
    max-height: 90vh;
}

.about-text-container a {
    font-size: 2.6rem;
    text-decoration: underline;
}

/* --------------------------------------------- Tablet & mobile */


@media (max-width: 1024px) {   

    h2,
    .page-secondary h1,
    .next-project a span {
        font-size: 2.7rem;
    }

    nav ul li:first-child {
        margin-right: unset;
    }
    .filter-btn {
        pointer-events: all;
        user-select: all;
        display: flex;
        position: fixed;
        top: 80%;
        right: 5%;
        transform: translateY(-80%);
        background-color: var(--c-text);
        color: var(--c-bg);
        z-index: 9999;
        width: 8rem;
        height: 8rem;
        border-radius: 50%;
        font-size: 1.5rem;
    }
    .filter-bg {
        width: 100%;
        height: 0;
        top: 0;
        left: 0;
        position: fixed;
        pointer-events: none;
        user-select: none;
        background-color: var(--c-bg);
        z-index: 999;
    }
    .filter-bg.active {
        height: 100vh;
    }

    .filter {
        pointer-events: none;
        user-select: none;
        opacity: 0;
    }

    .filter.active {
        pointer-events: all;
        user-select: all;
        opacity: 1;
    }

    .filter-bg.active {
        opacity: 1;
        pointer-events: all;
        user-select: all;
    }

    .home-projects__container {
        width: 100%;
        margin-left: unset;
    }

    footer {
        margin-top: 1rem;
    }

    footer .flex > * {
        width: 100%;
        text-align: center;
    }

    footer .flex > p {
        margin-bottom: 2rem;
    } 
    
    .project-title-logo {
        width: 100%;
        margin-bottom: 3rem;
    }
    
    .project-details {
        width: 100%;
    }

    .project-details-default-info > div {
        width: 50%;
    }

    .project-details-default-info .project-details-info:not(:last-child) {
        margin-bottom: 5rem;
    }

    .project-details > div:first-child {
        margin-bottom: 0;
    }

    .about-text-container {
        width: 100%;
        margin-bottom: 3rem;
    }
    
    .about-image {
        width: 100%;
    }

    .award-container {
        padding: 2rem 0;
        width: 100%;
    }

    .award-text {
        width: 60%;
    }
    
    .award-image-container {
        width: 20%;
        padding-bottom: 25%;
        margin-left: 20%;
    }

    .about-info {
        padding-bottom: 2rem !important;
    }


}

@media (max-width: 768px) { 

    .home-projects__project-container:not(:last-child) {
        margin-bottom: 6rem;
    }
    
    .home-projects__img-container {
        height: 45vh;
    }
}

@media (max-width: 667px) {

    .intro-animation-container h1 span {
        font-size: 10vw;
    }

    h2,
    .page-secondary h1,
    .next-project a span {
        font-size: 2rem;
    }

    .home-projects__img-container {
        height: 30vh;
    }

    .next-project .container .flex {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .next-project a:last-child {
        margin-left: 0;
        margin-top: .5rem;
    }

    .next-project a {
        padding: 1rem;
    }

    #baguetteBox-overlay .full-image img {
        max-height: 70vh;
    }

    .hero__image-container {
        overflow: hidden;
    }

    .hero__about {
        width: 200%;
    }

    .awards h2 {
        margin-bottom: 3rem;
    }
}

/*SERBAN*/
.project-not-found {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: calc(100vh - 183px);
}

.project-not-found h1 {
    padding: 0 .5rem;
    margin-top: 81px;
    font-size: 5rem;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .project-not-found {
        min-height: unset;
    }
}

#tinymce ul {
    margin-left: 2rem;
}

#tinymce ul li {
    list-style-type: disc;
}