* {
    padding: 0;
    margin: 0;

    line-height: 1.2em;
}

body {
    background: #3d3d3d;
}

p {
    color: #fff;
    font-size: 1.4em;
    line-height: 1.7em;
    margin-bottom: 5px;
}

/******* Default XS */

header {
    display: flex;
    align-items: center;

    height: 100vh;
    background-color: #d3d3d3;
    background-image: url('../../private/images/hero.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #fff;
}

header::after {
    content: " ";
    display: block;
    background-color: rgba(61,61,61,.5) ;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

h1 {
    color: #fff;
    font-size: 3em;
    font-weight: 700;
}

h1 div {
    word-wrap: break-word;
  word-break: break-word;
}

h2 {
    color: #fff;
    font-size: 2em;
    font-weight: 200;
    position: relative;
}

.wave {
    height: 40px;
    position: relative;
    margin: 0 0 10px -5px;
    display: block;
}

.headerContent {
    margin-bottom: 150px;
    padding-left: 50px;
    padding-right: 50px;
    z-index: 1;
}

.portfolioItemWrapper {
    position: relative;
    margin: 0;
    padding: 0;
}

.portfolioItem {
    height: 120vh;
}

.itemImageWrapper {
    margin: 0;
    padding: 0;
    overflow: scroll;
    position: relative;
    height: 120vh;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
}

.itemContent {
    list-style: none;
    transition: all .5s ease-out;
}

.image {
    height: 120vh;
}





.pagination {
    opacity: 0;
    display: none;
    position: fixed;
    z-index: 1111;
    bottom: -200px;
    right: -1000px;
    transition: opacity .7s ease-out .15s, bottom .4s ease-in-out .15s;
}

.current .pagination {
    opacity: 1;
    right: 50px;
    bottom: 50px
}

.pagination span {
    opacity: .3;
    display: block;
    height: 25px;
    width: 25px;
    background: #3d3d3d;
    margin-left: 20px;
    border-radius: 15px;
    border: 3px solid #fff;
}

.pagination span:hover {
    cursor: pointer;
}

.pagination span.active {
    opacity: 1;
}

#flipPhone {
    position: fixed;
    bottom: 50px;
    z-index: 999;
    width: 100%;
    text-align: center;
    padding: 0 50px;
}

#flipPhone span {
    display: inline-block;
    border-radius: 5px;
    background: #3d3d3d;
    font-size: .8em;
    line-height: 1.6em;
    padding: 20px;
    color: white;
    text-align: left;
    box-shadow: 0 32px 32px rgba(0,0,0,.15);
}


footer {
    padding: 50px;
    padding-bottom: 200px;
}

footer h2 {
    opacity: 1;
    margin-bottom: 30px;
}

footer p {
    font-size: 1em;
    transition: all .25s ease-out;
}




/******* Small devices */

@media (min-width: 576px) {

    h1 {
        font-size: 3em;
    }
    
    h2 {
        font-size: 2em;
    }

    .pagination {
        display: none;
    }

    #flipPhone {
        display: none;
    }

}

/******* Medium devices */

@media (min-width: 768px) {

    h1 {
        font-size: 4em;
    }
    
    h2 {
        font-size: 3em;
    }

    .pagination {
        display: flex;
    }

    .wave {
        height: 50px;
        margin: 0 0 10px -5px;
    }
    
    .headerContent {
        margin-bottom: 100px;
        padding-left: 100px;
        padding-right: 100px;
    }
    
    .current .pagination {
        right: 70px;
        bottom: 70px
    }

    .itemImageWrapper {
        margin: 0;
        padding: 0;
        overflow: hidden;
        position: relative;
        height: 120vh;
        display: block;
    }
    
    .itemContent {
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        list-style: none;
        transition: all .5s ease-out;
    }
    
    .itemContent.active {
        opacity: 1
    }
    
    footer {
        padding: 100px;
    }

}

/******* Large devices */

@media (min-width: 992px) {

    h1 {
        font-size: 5em;
    }
    
    h2 {
        font-size: 4em;
    }

    .wave {
        height: 60px;
        margin: 0;
        position: absolute;
        left: -90px;
        top: 10px;
    }
    
    .headerContent {
        padding-left: 150px;
        padding-right: 150px;
    }
    
    .current .pagination {
        right: 100px;
        bottom: 70px
    }
    
    footer {
        padding: 150px;
    }

}

/******* Extra Large devices */

@media (min-width: 1200px) {

    h1 {
        font-size: 6em;
    }
    
    h2 {
        font-size: 5em;
    }

    .wave {
        height: 70px;
        left: -100px;
        top: 15px;
    }

}








@keyframes changeText {
    from {opacity: .3; top: 70px;}
    to {opacity: 1; top: 0;}
}

h1 div {
    position: relative;
    display: inline-block;
    animation-name: changeText;
    animation-duration: .5s;
}













.description {
    position: fixed;
    opacity: 0;
    left: 9999px;
    bottom: 100px;
    background-color: rgba(61,61,61,1);
    padding: 30px;
    color: #fff;
    min-width: 20vw;
    max-width: 20vw;
    max-height: 50vh;
    z-index: 999;

    transition: opacity .15s ease-out;
}

.description p {
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;

}

.current .description {
    left: 100px;
    display: block;
    opacity: .3;
    display: none;
}

.description:hover {
    opacity: 1;
    max-width: 50vw;
    padding: 50px;
}

.description:hover p {
    text-overflow: clip;
    white-space: normal;
}



















.imageDescription {
    opacity: 1;
    display: block;
    position: absolute;
    left: 50px;
    bottom: 50px;
    background-color: rgba(61,61,61,1);
    padding: 50px;
    color: #fff;
    min-width: 20vw;
    max-width: 50vw;
    max-height: 50vh;
    transition: all .15s ease-out;
    display: none;
}

.imageDescription:hover {
    opacity: 1
}





