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

html {
    font-size: 100%;
}

body {
    font-family: 'Tinos', sans-serif;
    font-size: 0.65em;
    /*du coup 1em=10px*/
}

/*----HEADER----------------------------------------------------*/

header {
    width: 100%;
    height: 100vh;
    background: url(assets/portrait/JAHarris-1002795-opt.jpg) no-repeat bottom center;
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    display: flex;
}

@media screen and (max-width: 767px) {
    header {
        background: url(assets/portrait/JAHarris-mobile-opt.jpg) no-repeat center center;
        background-size: cover;
    }
}

/*----Hamburger------------------------------*/

#logo {
    height: 120px;
    padding: 10px 0 0 10px;
}

nav li {
    font-size: 2em;
}

.menu-toggle {
    position: absolute;
    padding: 1.8em;
    top: 3em;
    right: 2em;
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    background: black;
    height: 3px;
    width: 3em;
    border-radius: 3px;
    -webkit-transition: all ease-in-out 350ms;
    transition: all ease-in-out 350ms;
}

.hamburger::before {
    -webkit-transform: translateY(-7px);
    transform: translateY(-7px);
}

.hamburger::after {
    -webkit-transform: translateY(4px);
    transform: translateY(4px);
}

.open .hamburger {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.open .hamburger::before {
    display: none;
}

.open .hamburger::after {
    -webkit-transform: translateY(-1px) rotate(-90deg);
    transform: translateY(-1px) rotate(-90deg);
}

nav {
    margin: 0;
    padding: 10px;
    height: 150px;
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: none;
}

 nav ul.opening {
        display: block;
        height: 30px;
    }


nav li {
    border-bottom: 2px solid white;
    padding-left: 5px;
}

@media screen and (max-width: 767px) {
    nav li {
        background: rgba(136, 136, 136, .2);
    }
}

nav li:last-child {
    border-bottom: none;
}

nav a {
    color: black;
    font-weight: 300;
    display: block;
    text-decoration: none;
}

@media screen and (max-width: 767px) {
    nav a {
        color: white;
        font-size: 1.5em;
    }
}

nav a:hover {
    color: white;
    transition: all 0.2s;
    text-decoration: underline;
    text-decoration-color: white;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
    }
    nav li {
        flex: 1 1 auto;
        border: none;
    }

    nav li a {
        padding: 1.5em 1.3em 1.5em 1.3em;
        margin: 0;
        border: none;
    }

    nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        text-align: center;
    }
}

/*---------------------------------------------*/

header h1 {
    font-size: 8em;
    text-shadow: 3px 3px white;
    color: 7D7D7D;
    text-align: left;
    padding: 50px;
    padding-top: 6vh;
}

#scroll {
    width: 70px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 0);
}


.fade {
    opacity: 0.5;
    transition: opacity .2s ease-in;
    -moz-transition: opacity .2s ease-in;
    -webkit-transition: opacity .2s ease-in;
    animation: flickerAnimation 3s infinite;
}

@keyframes flickerAnimation {
    /* flame pulses */
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.animate-flicker 2 opacity:1;
animation: flickerAnimation 1s infinite;
}

.fade:hover {
    opacity: 1;
}

/*----SECTION--------------------------------------------------*/

section h1 {
    width: 100%;
    text-align: center;
    font-size: 5em;
    padding: 40px 0 20px;
}

h2 {
    width: 40%;
    margin: auto;
    text-align: center;
    font-size: 2.2em;
}

@media screen and (max-width: 767px) {
    h2 {
        width: 80%;
    }
}

p:nth-child(3) {
    width: 100%;
    font-style: italic;
    text-align: center;
    font-size: 1.3em;
    padding: 20px;
    margin: auto;
}

p:nth-child(4) {
    width: 50%;
    font-size: 1.6em;
    margin: auto;
    padding-top: 30px;
    padding-bottom: 20px;
}

@media screen and (max-width: 767px) {
    p:nth-child(4) {
        width: 80%;
    }
}



#peterblackportrait {
    width: 300px;
    padding: 20px;
}

#citybuildings {
    width: 100%;
    display: block;
}

/*----PLAYER----------------------------------------------*/

div video {
  width: 100%;
}

/*----WORK------------------------------------------------*/

#info {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background: #fcf8e3;
    border: 1px solid #fbeed5;
    width: 95%;
    max-width: 900px;
    margin: 0 auto 40px auto;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
}

#info .info-wrapper {
    padding: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
}

#info a {
    color: #c09853;
    text-decoration: none;
}

#info p {
    margin: 5px 0 0 0;
}


.container {
    position: relative;
    width: 1100px;
    margin: 0 auto;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}

#filters {
    margin: 1%;
    font-size: 1.8em;
    padding-top: 40px;
    list-style: none;
    display: flex;
    justify-content: center;
}

#filters :hover {
    color: #cccccc;
    transition: all 0.2s;
}

#filters li span {
    display: block;
    padding: 5px 20px;
    text-decoration: none;
    color: #666666;
    cursor: pointer;
}

#filters li span.active {
    text-decoration: underline;
    color: black;
}


#portfoliolist {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#portfoliolist .portfolio {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    width: 30%;
    margin: 1%;
    display: none;
    overflow: hidden;
}

.portfolio-wrapper {
    overflow: hidden;
    position: relative !important;
    background: black;
    cursor: pointer;
}

.portfolio img {
    max-width: 100%;
    position: relative;
    top: 0;
    -webkit-transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

.portfolio .label {
    position: absolute;
    width: 100%;
    height: 55px;
    bottom: -55px;
    -webkit-transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

.portfolio .label-bg {
    background: black;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.portfolio .label-text {
    color: #fff;
    font-size: 2em;
    position: relative;
    z-index: 500;
    padding: 5px 8px;
}

.portfolio .text-category {
    display: block;
    font-size: 0.75em;
    font-style: italic;
}

.portfolio:hover .label {
    bottom: 0;
}

.portfolio:hover img {
    top: -30px;
}

/* #Tablet (Portrait) */

@media only screen and (min-width: 768px) and (max-width: 1100px) {
    .container {
        width: 768px;
    }
}

/*  #Mobile (Portrait) - Note: Design for a width of 320px */

@media only screen and (max-width: 767px) {
    .container {
        width: 95%;
    }

    #portfoliolist .portfolio {
        width: 48%;
        margin: 1%;
    }

    #ads {
        display: none;
    }
}

/* #Mobile (Landscape) - Note: Design for a width of 480px */

@media only screen and (min-width: 480px) and (max-width: 767px) {
    .container {
        width: 70%;
    }

    #ads {
        display: none;
    }
}

/*----FOOTER------------------------------------------------*/

footer {
    background: url(assets/portrait/brian-chorski-356634.jpg) no-repeat bottom right/cover;
    width: 100%;
    position: relative;
}

#contact h1 {
    width: 100%;
    text-align: center;
    font-size: 5em;
    padding: 100px 0 20px;
}

#contact h2 {
    width: 40%;
    text-align: center;
    text-transform: uppercase;
    font-size: 2.2em;
}

@media screen and (max-width: 767px) {
    #contact h2 {
        width: 80%;
    }
}

#contact h3 {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    font-size: 1.5em;
}

#logobottom {
    width: 200px;
    margin: auto;
    padding: 30px;
}

#logobottom img {
    width: 100%;
}

/*----FORM------------------------------------------------*/

/* Style inputs with type="text", select elements and textareas */

input,
select,
textarea {
    width: 100%;
    /* Full width */
    padding: 12px;
    /* Some padding */
    border: 1px solid #ccc;
    /* Gray border */
    border-radius: 4px;
    /* Rounded borders */
    box-sizing: border-box;
    /* Make sure that padding and width stays in place */
    margin-top: 6px;
    /* Add a top margin */
    margin-bottom: 16px;
    /* Bottom margin */
    resize: vertical/* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */

input[type=submit] {
    background-color: gray;
    color: white;
    padding: 12px 60px;
    border-radius: 0px;
    cursor: pointer;
    display: block;
    margin: auto;
    -webkit-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border: 1px solid darkgray;
}

/* When moving the mouse over the submit button, add a darker green color */

input[type=submit]:hover {
    background-color: darkgray;
}

/* Add a background color and some padding around the form */

.containerform {
    border-radius: 5px;
    padding: 20px;
    display: flex;
    justify-content: center;
}
