* { box-sizing: border-box; }
@font-face {
    font-family: "Quicksand Light";
    src: url(Quicksand-Light.ttf)
}
* {
    font-family: "Quicksand Light", Arial, sans-serif;
    font-weight: normal;
}

/*------------------------ IDs START ----------------------*/

#title {
    margin: 37vh auto 25em auto;
    width: 60vw;
}
#title img {
    width: 100%;
    height: auto;
}
#titleheaderimg {
    float: left;
    width: 275px;
    height: auto;
    padding: .5em;
    cursor: pointer;
}
#mobileheader {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 10;
}
#mobilemenu {
    display: none;
    position: fixed;
    right: 0;
    text-align: right;
    font-size: 1.2em;
}
#mobilemenu a {
    display: block;
    padding: .75em 1.3em;
    background-color: rgba(230, 230, 230, 0.95);
}
#mobilemenu a:hover {
    background-color: rgba(200, 200, 200, 0.95);
}
#hamburgermenu {
    cursor: pointer;
    float: right;
    padding: .25em;
    background-color: rgba(255, 255, 255, 0.85);
}
#hamburgermenu:hover {
    background-color: rgba(230, 230, 230, 0.95);
}
#demoreel {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: 660px;
    padding-top: 100px;
}
#iframecontainer {
    margin: auto;
    width: auto;
    height: 100%;
    background-color: rgb(255, 255, 255);
}
#portfolio {
    margin-left: auto;
    margin-right: auto;
    width: 90vw;
    height: auto;
    padding-top: 100px;
}
#gallerycontainer {
    width: 100%;
    height: auto;
}
#gallerythumbnails {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
#popvid01, #popvid02, #popvid03, #popvid04, #popvid05, #popvid06, #popvid07, #popvid08 {
    display: none;
}
#popvid01.active, #popvid02.active, #popvid03.active, #popvid04.active, #popvid05.active, #popvid06.active, #popvid07.active, #popvid08.active {
    display: block;
}
#about {
    margin-left: auto;
    margin-right: auto;
    width: 900px;
    height: auto;
}
#aboutcontainer {
    padding: 5em 0;
}
#aboutportrait {
    box-sizing: content-box;
    margin: auto;
    padding-bottom: 1.4em;
    width: 250px;
    height: 250px;
}
#aboutportrait img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}
#abouttext {
    margin: auto;
    width: 75%;
    font-size: 1.2em;
    text-indent: 50px;
}
#contact {
    margin-left: auto;
    margin-right: auto;
    width: 900px;
    height: auto;
}
#formpadding {
    padding: 4em 0;
}
#formcontainer {
    padding: .5em;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
    height: auto;
}
#formcontainer h2 {
    font-size: 1.8em;
    margin: 0;
    color: rgb(55, 62, 79);
}
#formcontainer h3 {
    font-size: 1.2em;
    margin-top: 0;
    color: rgb(55, 62, 79);
}
#spacerfirst {
    background-image: url(images//nav_banner_test_1.png);
    background-position: center;
    opacity: 0.45;
}
#spacerlast {
    height: 10em;
    width: 100%;
}

/*------------------------ IDs END ----------------------*/

/*------------------------ CLASSES START ----------------------*/

.thumbnail {
    width: 50%;
    height: auto;
    padding: .5em;
    position: relative;
    cursor: pointer;
}
.hoverthumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    position: relative;
}
.hoverthumb img {
    width: 100%;
    height: 100%;
    transition: transform .35s;
}
.hoverthumb:hover img {
    transform: scale(1.1);
}
.playbutton {
    position: absolute;
    top: 0.5;
    left: 0.5;
    width: calc(100% - 1em);
    height: calc(100% - 1em);
    opacity: 0;
    z-index: 1;
    transition: opacity .35s;
}
.playbutton img {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
}
.playbutton:hover {
    opacity: 1;
}
.playbutton:hover ~ .hoverthumb img {
    transform: scale(1.1);
}
.spacer {
    height: 18em;
    width: 100%;
}
.popupvideos {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 10;
    background: rgba(0, 0, 0, .95);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
}
.popupvideos.active {
    visibility: visible;
    opacity: 1;
}
.popupvideos div {
    height: 100%;
    width: 100%;
    max-width: 900px;
}
.popupvideos div iframe {
    width: 100%;
    height: 100%;
}
.close {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    max-width: 32px;
}

/*------------------------ CLASSES END ----------------------*/

/*------------------------ BASIC ELEMENTS START ----------------------*/

header {
    position: fixed;
    top: -100px;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transition: top 0.5s;
}
nav {
    width: 700px;
    margin: auto;
    padding: 1.2em 0;
    font-size: 1.2em;
    text-align: center;
    color: black;
}
nav a {
    display: inline-block;
    padding: 0 1.6em;
    transform: translate(0, 0);
    transition: color, transform 0.35s;
}
nav a:hover {
    color: rgb(208, 74, 74);
    transform: translate(0, -5px);
}
body {
    background-color: white;
    margin: 0;
}
ul {
    font-size: 3em;
    list-style: none;
    padding-left: 0;
    margin: 0;
}
li {
    padding: 1em 2em;
}
a {
    text-decoration: none;
    color: black;
}
a:visited {
    color: black;
}
iframe {
    width: 100%;
    height: 100%;
}
form input {
    width: 100%;
}
form textarea {
    width: 100%;
}
form #submit {
    cursor: pointer;
    font-size: 1.2em;
}

/*------------------------ BASIC ELEMENTS END ----------------------*/

/*------------------------ MEDIA QUERIES START ----------------------*/

@media only screen and (max-width: 1024px) {
    ul {
        font-size: 2em;
    }
    nav a {
        padding: 0 .65em;
    }
    #demoreel {
        height: 520px;
    }
    #portfolio {
        width: 97.5vw;
    }
    #gallerycontainer {
        padding: 1.5em;
    }
    .thumbnail {
        width: 50%;
        height: auto;
        padding: .35em;
    }
    .playbutton {
        width: calc(100% - .7em);
        height: calc(100% - .7em);
    }
    #about {
        width: 750px;
        height: auto;
    }
    #aboutcontainer {
        padding: 3.5em 0;
    }
    #aboutportrait {
        width: 180px;
        height: 180px;
    }
    #abouttext {
        font-size: 1em;
        text-indent: 40px;
    }
    #contact {
        width: 600px;
        height: auto;
    }
    #formpadding {
        padding: 3em 0;
    }
    #formcontainer {
        padding: .5em;
        width: 80%;
    }
    #formcontainer h2 {
        font-size: 1.4em;
    }
    #formcontainer h3 {
        font-size: .93em;
    }
    .spacer {
        height: 15em;
    }
}

@media only screen and (max-width: 768px) {
    ul {
        font-size: 1.5em;
    }
    #title {
        width: 80vw;
    }
    header {
        display: none;
    }
    #mobileheader {
        display: block;
    }
    #demoreel {
        width: 100%;
        height: 100%;
        background-color: unset;
    }
    #iframecontainer {
        padding: 0;
        width: 100%;
        height: 56.5vw;
    }
    #portfolio {
        width: 95%;
        height: auto;
        padding-top: 0;
    }
    #gallerycontainer {
        padding: 4vw 0;
    }
    #gallerythumbnails {
        flex-direction: column;
    }
    .thumbnail {
        width: 100%;
        height: auto;
        padding: 1vw;
        margin: auto;
    }
    .playbutton {
        top: 0.5;
        left: 0.5;
        width: calc(100% - 2vw);
        height: calc(100% - 2vw);
    }
    #about {
        padding-bottom: 2em;
        width: 90vw;
        height: auto;
    }
    #aboutportrait {
        width: 150px;
        height: 150px;
    }
    #abouttext {
        width: 90%;
        font-size: .8em;
        text-indent: 30px;
    }
    #contact {
        width: 100vw;
        height: auto;
    }
    #formpadding {
        padding: 2em 0;
    }
    #formcontainer {
        padding: .5em;
        width: 90%;
    }
    #formcontainer h2 {
        font-size: .9em;
    }
    #formcontainer h3 {
        font-size: .7em;
    }
    .spacer {
        height: 10em;
    }
}

/*------------------------ MEDIA QUERIES END ----------------------*/