/**** INIT ****/


*, html, body {
    margin: 0;
    padding: 0;
    font-family: 'roboto', sans-serif;
    box-sizing: border-box;
}

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

/**** HEADER ****/

.header{
    margin:2em 2em 4em 2em;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    font-size: 1.2em;
    letter-spacing: .2em;
}
.title {
    font-weight: bold;
}

.active {
    border-bottom: 2px solid red;
}

.header-barnav {
    list-style: none;
    display: flex;
    margin:0;
    font-weight: normal;
    font-size: .8em
}

.header-barnav > li {
    margin: 0 3em;
    padding: 1em 1em .5em 1em;
}

#icon-burger {
    display: none;
}


/**** RESPONSIVE ****/
@media screen and (max-width: 800px){
    body, html {
        overflow-x: hidden;
    }

    section.center.slider{
        width: 100%;
    }

    .header{
        margin: .4em .6em;
    }
    .inner-header-container{
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .header-barnav{
        display: flex;
        transition: height 1s ease;
        height: 0px;
        justify-content: flex-end;
        flex-direction: column;
        align-items: flex-end;
    }

    .header-barnav.toggled {
        height: 200px;
    }

    .item-navbar {
        margin: .5em 0 !important;
    }

    #icon-burger {
        display: block;
    }

    .about-resume-img {
        width: 100%!important;
        justify-content: center!important;
    }
    .about-resume-img > img {
        margin-right: 0!important;
    }

    .about-header-text{
        align-items: flex-start;
        margin-top: 2em;
        margin-bottom: 4em
    }

    .about-body-description {
        display: flex;
        flex-direction: column;
    }
    .about-body-description>span {
        padding-right: 0!important;
        margin-bottom: 1em;
    }

    .about-resume{
        flex-direction: column!important;
        padding: 0!important;
        align-items: center !important;
        margin-bottom: .5em;

    }

    .about-resume > img {
        max-height: 250px!important;
    }

    .about-body-description{
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto!important;
        display: flex;
        width: 80% !important;
    }

    .project-header {
        flex-direction: column;
        align-items: center;
    }

    .project-header-img {
        width: 100%!important;
        margin: 0 auto!important;
    }

    .project-header-img > img {
        /* display: block; */
        width: 100%!important;
        height: auto!important;
        object-fit: scale-down;
    }

    .project-header-txt {
        align-items: flex-start!important;
        justify-content: flex-start!important;
        width: 100%!important;
        margin: 1em auto!important;
    }

    .project-header-txt > div {
        margin: 0!important;
    }

    .project-body-txt {
        flex-direction: row!important;
        align-items: flex-start!important;
        margin: 0!important;
    }

    .project-body-txt > p{
        width: 100%!important;
    }

    .project-bottom-imgs > img{
        width: 95%!important;
        margin: 1em auto!important;
        display: flex;
    }

    .slick-dots {
        bottom: 0!important;
    }

    footer {
        position: inherit!important;
    }
}

/**** FOOTER ****/

footer {
    position: fixed;
    background-color: #FFF;
    color: #000;
    height: 30px;
    left:0;
    bottom: 0;
    width: 100%;
    padding-bottom: .5em;
}

.footer {
    text-align: center;
    display:flex ;
    justify-content: center;
}

.footer > a {
    text-decoration: underline;
}

/**** CAROUSEL HOME ****/

.slider {
    width: 50%;
    margin: 10em auto;
}

.slick-slide {
    margin: 0px 20px;
}

.slick-slide > img {
    width: 100%;
}

.slick-prev:before,
.slick-next:before {
    color: black;
}


.slick-slide {
    transition: all ease-in-out .3s;
    opacity: .2;
}

.slick-active {
    opacity: .5;
}

.slick-current {
    opacity: 1;
}

/**** ABOUTME ***/

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.about-resume {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

.about-resume-img {
    display: flex;
    width: 50%;
    justify-content: flex-end;
}

.about-resume-img > img {
    margin-right: 6em;
    max-height: 250px;
    width: auto;
    object-fit: scale-down;
}

.about-header-text {
    display: flex;
    flex-direction: column;
    font-size: .8em;
    width: 50%;
}

.about-header-text > span {
    text-align: left;
    margin-top: 1.5em;
}

.about-body-description{
    text-align: justify;
    text-justify: inter-word;
    align-self: flex-end;
    width: 50%;
    font-size: .8em;
    margin-top: 3em;
}

.about-body-description > span {
    display: flex;
    justify-content: flex-start;
    padding-right: 4em;
}

/**** PROJECTS ****/

.projects {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.projects-filter {
    margin: 0 2.5em 2.5em 2.5em;
    /* align-self: flex-start; */
}

.card-deck {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.card {
    margin: 1em 1.5em;
    position: static;
    opacity: 1;
    transition: opacity .5s linear;
}

.img-card {
    width: 250px;
    height: 250px;
}
h3.card-title{
    margin-top: .1em;
    font-weight: normal;
    text-align: center;
}
.hvrbox * {
    box-sizing: border-box;
}

.hvrbox {
    position: relative;
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
    height: auto;
}

.hvrbox img {
    max-width: 100%;
    object-fit: cover;
}

.hvrbox .hvrbox-layer_bottom {
    display: block;
}

.hvrbox .hvrbox-layer_top {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    height: 250px;

    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    -moz-transition: all 0.4s ease-in-out 0s;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -ms-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
}

.hvrbox:hover .hvrbox-layer_top,
.hvrbox.active .hvrbox-layer_top {
    opacity: 1;
}

.hvrbox .hvrbox-text {
    text-align: center;
    font-size: 18px;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.hvrbox .hvrbox-text_mobile {
    font-size: 15px;
    border-top: 1px solid rgb(179, 179, 179);
    /* for old browsers */
    border-top: 1px solid rgba(179, 179, 179, 0.7);
    margin-top: 5px;
    padding-top: 2px;
    display: none;

}

.hvrbox.active .hvrbox-text_mobile {
    display: block;
}

.hidden {
    opacity: 0;
    position: absolute;
}

/**** PROJECT LAYOUT ****/

.project-container {
    display: flex;
    flex-direction: column;
    padding: 0 4em;
    font-size: .8em;
}

.project-header {
    display: flex;
    justify-content: center;
}
.project-header-img {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.project-header-img > img {
    width: auto;
    max-height: 500px;
}

.project-header-txt {
    display: flex;
    width: 50%;
    flex-direction: column;
    justify-content: space-between;
    text-transform: lowercase;
}

.project-header-txt > div{
    margin: 0 2em;
}

.project-header-txt-meta > p {
    margin-top: 0;
    margin-bottom: 1.5em;
}

.project-body-txt {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    margin: 5em 2em;
}
.project-body-txt > p {
    width: 50%;
    text-align: justify;
}

.project-bottom-imgs {
    margin-top: 2em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.project-bottom-imgs:hover {
    cursor: pointer;
}

.project-bottom-imgs > img {
    max-width: 500px;
    margin: 1em 1em;
}

/**** MODAL ****/

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2em auto;
    width: 80%;
    height: 80%;
}
.modal-content > img {
    max-height: 100%;
    max-width: 100%;
    display: inline-block;
}
