/* RESET */
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}
* {
    box-sizing: border-box;
}
h1,
h2,
h3,
h4,
p,
blockquote,
figure,
ol,
ul {
    margin: 0;
    padding: 0;
}
main,
li {
    display: block;
}
h1,
h2,
h3,
h4 {
    font-size: inherit;
}
strong {
    font-weight: bold;
}
a,
button {
    color: inherit;
    transition: .3s;
}
a {
    text-decoration: none;
}
button {
    overflow: visible;
    border: 0;
    font: inherit;
    -webkit-font-smoothing: inherit;
    letter-spacing: inherit;
    background: none;
    cursor: pointer;
}
::-moz-focus-inner {
    padding: 0;
    border: 0;
}
:focus {
    outline: 0;
}
img {
    max-width: 100%;
    height: auto;
    border: 0;
}






body {
    background: white;
}
html, body {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #757575;
}

p {
    line-height: 1.35em;
}

header {
    text-align: center;
    position: relative;
    z-index: 2;
    pointer-events: none;
}




/* GENERAL */

.title {
    font-size: 1.6em;
}
.tagline {
    margin-top: .7em;
}

.dark {
    color: #403938;
}
.font-xsmall {
    font-size: .8em;
    font-weight: normal;
}
.font-small {
    font-size: 1em;
    font-weight: lighter;
}
.font-medium {
    font-size: 1.2em;
    font-weight: lighter;
}
.font-large {
    font-size: 1.6em;
    font-weight: normal;
}
.font-xlarge {
    font-size: 2.2em;
    font-weight: lighter;
}
.font-xxlarge {
    font-size: 3em;
    font-weight: lighter;
}


.clearfix:after {
    content:"";
    display: block;
    clear: both;
}

.nav {
    margin: 12vh auto 0px;
    width: 100%;
    max-width: 630px;
    text-align: center;
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
}

.nav li {
    text-align: center;
    display: block;
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;         /* OLD - Firefox 19- */
    -webkit-flex: 1;          /* Chrome */
    -ms-flex: 1;              /* IE 10 */
    flex: 1;
    padding: 25px 0px;
    -webkit-transition: background-color .8s;
    -moz-transition: background-color .8s;
    -o-transition: background-color .8s;
    -ms-transition: background-color .8s;
    transition: background-color .8s;
    border-radius: 5px;
}
.nav li:hover {
    background-color: #F8F8F8;
}

.nav li a {
    display: block;
    position: relative;
    width: 100%;
    text-decoration: none;
    text-align: center;
}



.round-icon {
    width: 100%;
    background: black;
    border-radius: 100%;
    background-size: contain;
    box-shadow: inset -20px -20px 0px 0px #00000059;
    border: 3px solid white;

}

.round-icon:after {
    content: "";
    display: block;
    padding-bottom: 100%;
    position: relative;
    width: 100%;
}



.nav label {
    margin-top: 2.3em;
    display: block;
    text-decoration: none;
    font-weight: lighter;
    cursor: pointer;
}

.nav-secondary {
    display: none !important;
    position: fixed;
    top: 30px;
    right: 0px;
    width: 167px;
    min-width: auto;
    margin: auto;
}

.nav-secondary li {
    display: block;
    padding: 10px 30px 15px;
    text-align: right;
}


.menu-icon {
    width: 34px;
    height: 34px;
    display: inline-block;
    opacity: .4;
    -webkit-filter: blur(2px);
    filter: blur(2px);
}


.menu-icon:hover {
    opacity: 1;
    -webkit-filter: blur(1px);
    filter: blur(1px);
}

.contact-email {
    background: url('gfx/icon_mail.png') no-repeat;
}
.contact-linkedin {
    background: url('gfx/icon_linkedin.png') no-repeat;
}
.contact-twitter {
    background: url('gfx/icon_twitter.png') no-repeat;
}

.nav-secondary li:hover a {
    color: black;
}



/* ANIMATIONS */
.animation-element.slide-fade {
  opacity: 0;
  -moz-transition: all 1s ease-out;
  -webkit-transition: all 1s ease-out;
  -o-transition: all 1s ease-out;
  transition: all 1s ease-out;
  -moz-transform: translate3d(200px, 0, 0px);
  -webkit-transform: translate3d(200px, 0, 0px);
  -o-transform: translate(200px,0px);
  -ms-transform: translate(200px,0px);
  transform: translate3d(200px, 0, 0px);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

.animation-element.slide-fade.in-view {
  opacity: 1;
  -moz-transform: translate3d(0px, 0px, 0px);
  -webkit-transform: translate3d(0px, 0px, 0px);
  -o-transform: translate(0px, 0px);
  -ms-transform: translate(0px, 0px);
  transform: translate3d(0px, 0px, 0px);
}

.animation-element.fade-in {
  opacity: 0;
  -moz-transition: all 1s ease-out;
  -webkit-transition: all 1s ease-out;
  -o-transition: all 1s ease-out;
  transition: all 1s ease-out;
}

.animation-element.fade-in.in-view {
  opacity: 1;
}



@-webkit-keyframes pulsate {
    0% {opacity: 1.0}
    50% {opacity: 0.0;}
    100% {opacity: 1.0;}
}




/* TOP HERO */


#hero {
    position: absolute;
    top: 0px;
    z-index: 0;
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    flex-direction: column;
    min-height: 320px;
    width: 100%;
}


#hero .nav li:nth-of-type(2) {
    -moz-transition-delay: 200ms;
    -webkit-transition-delay: 200ms;
    -ms-transition-delay: 200ms;
    -o-transition-delay: 200ms;
    transition-delay: 200ms;
}
#hero .nav li:nth-of-type(3) {
    -moz-transition-delay: 400ms;
    -webkit-transition-delay: 400ms;
    -o-transition-delay: 400ms;
    -ms-transition-delay: 400ms;
    transition-delay: 400ms;
}
#hero .nav li {
    -moz-transition: opacity 1s ease-in;
    -ms-transition: opacity 1s ease-in;
    -o-transition: opacity 1s ease-in;
    -webkit-transition: opacity 1s ease-in;
    transition: opacity 1s ease-in;
}


#hero .nav .round-icon {
    width: 64%;
    margin: 0px auto;
    max-width: 110px;
    -moz-transition: transform .1s;
    -ms-transition: transform .1s;
    -o-transition: transform .1s;
    -webkit-transition: transform .1s;
    transition: transform .1s;
}
#hero .nav li:hover .round-icon {
    -ms-transform: translateY(-6%);
    -webkit-transform: translateY(-6%);
    -moz-transform: translateY(-6%);
    transform: translateY(-6%);
}
.round-about {
    background-image: url('gfx/thumb_about.jpg');
    background-color: #ff7474;
}

.round-projects {
    background-image: url('gfx/thumb_projects.jpg');
    background-color: #A4C791;
}


.round-blog {
    background-image: url('gfx/thumb_blog.jpg');
    background-color: #97a4b2;
}




/* SECTIONS GENERAL */
.section {
    width: 100%;
    background-color: white;
    z-index: 2;
    position: relative;
}
.section-wrapper {
    margin: 0px auto;
    max-width: 1024px;
    width: 80%;
    padding: 5em 0;
}
.section-wrapper:after {
    content:"";
    display: block;
    position: relative;
}

#content .vid {
    display: none;
}


@media only screen  and (min-width : 1025px) {
     body {
        font-size: 20px;
     }
     #content {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
        column-gap: 3.5em;
    }
}


/* SERVICES */

#services {
    padding: 4em 0px;
    background: #fafafa;
    font-size: 13px;
    border-bottom: thin solid #e3e3e3;
    border-top: thin solid #e3e3e3;
}

.service-card {
    width: 500px;
    height: 700px !important;
    overflow: hidden;
    box-shadow: -2px 3px 13px #c8c8c83d;
    border-radius: 14px;
    position: relative;
    background: white;
    margin: 50px 10px;
    border: thin solid #e4e4e4;
    transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
}
.service-card.link:hover {
    background: #f3f4f5;
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
}
.service-card a {
    color: rgba(170, 73, 65, 1);
    font-weight: 500;
}

.service-card .top {
    height: 200px;
    background: #efefef;
    border-bottom: 1px solid #e3e3e3;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    position: relative;
}

.card-bg {
    position   : absolute;
    width      : 100%;
    height     : 100%;
    top        : 0;
    left       : 0;
    opacity    : 0;
    transition : opacity 1s ease-out; 
    background : #FFF url('') 0 0 no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    box-shadow: 1px -1px 2px 0px inset #0000001a;
}

.card-bg.active {
  opacity: 1;
}

.service-card li {
    display: list-item;
    list-style-position: inside;
    margin-top: -7px;
}

.service-icon {
    position: absolute;
    text-align: center;
    width: 4em;
    height: 4em;
    border-radius: 100%;
    background-color: #fff;
    box-shadow: -1px 2px 10px #d2d2d2;
    margin-top: -27px;
    left: 40%;
    background-size: 56%;
    background-repeat: no-repeat;
    background-position: center center;
}
p.service-featured {
    margin-top: 1em;
    font-size: .8em;
    color: #9d6530;
    display: none;
}
#services .slick-center {
    transform: scale(1.04);
}
.service-ideation .service-icon{
    background-image: url('gfx/icon_services1.svg');
}

.service-wireframes .service-icon{
    background-image: url('gfx/icon_services2.svg');
}

.service-prototypes .service-icon{
    background-image: url('gfx/icon_services3.svg');
}

.service-polish .service-icon{
    background-image: url('gfx/icon_services4.svg');
}

.service-branding .service-icon{
    background-image: url('gfx/icon_services5.svg');
}



.service-body {
    padding: 12% 9%;
    height: 500px;
}

.service-body h3 {
    text-align: center;
    margin-bottom: 1.5em;
    font-size: 1.5em;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
}
.service-body p, .service-body li{
    font-size: 1.3em;
}


/* ITEMS */

#content .sectionContent {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.sectionContent {
    margin: 0px 0px 100px;
}

.sectionContent.detailed img{
    cursor:pointer;
}

.showTextBtn {
    display: none;
}

.blockInfo p {
    margin: 0em 0px 1em;
}

.flip .showInfoBtn {
    display: none;
}


#content .front-img{
    display: none;
}
#content .front-img:first-child {
    display: block;
}
#content .project-link {
    display: none;
}
.project-link {
    display: inline;
    float: left;
    background: rgb(255, 255, 255);
    padding: 2px 8px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #72806B !important;
    top: 2px;
    position: relative;
}

.textBox h4 {
    display: inline-block;
    float: left;
    margin-right: 10px;
    font-size: 1.7em;
    font-weight: normal;
    color: #3c3c3c;
    margin-top: 0.6em;
    line-height: 1.1em;
}

.tag {
    display: inline-block;
    padding: .23em .8em .23em;
    border-radius: 12px;
    font-weight: bold;
    background: #0b0b0b;
    font-size: .8em;
    color: #fff;
    margin: 0px .3em .2em 0px;
}
.project-lightbox .tag {
    background: #000;
}

span.projectDate {
    display: none;
    clear: both;
}

p.rolesText {
    clear: both;
    padding-top: 1em;
}


.sectionContent .back {
    display: none;
}

.sectionContent.flip .vidCover {
    display: block !important;
}
.sectionContent.flip .vid {
    display: none !important;
}

.sectionContent.flip.wide{
    margin-right:60px;
}
.sectionContent.flip.wideLeft{
    margin-left:60px;
}

.hideInfoBtn {
    display: none;
}

img.thumb {
    margin: .5em 1em;
}
.sectionContent .vid{
    z-index:2;
}


.videoLink {
    margin-left: 10px;
}


.largeImg {
    margin: 0px auto;
    display: block;
}




/* ABOUT SECTION */

#section-about {
    background: url('gfx/img-noise-200x200.png') #161616;
    background-size: 6%;
    color: white;
    font-size: .8em;
    font-weight: normal;
    margin-top: 100vh;
    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox; /* TWEENER - IE 10 */
    display: -webkit-flex;/* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    -webkit-justify-content: flex-end;
    -moz-justify-content: flex-end;
    justify-content: flex-end;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    flex-direction: column;
}
.section-about-text {
    text-align: center;
}
.section-about-text .about-icons {
    width: 100%;
    background: url('gfx/about_icons2.png') no-repeat;
    background-position: bottom;
    max-width: 400px;
    background-size: 100%;
    margin: 1vw auto 3vw;
}
.section-about-text .about-icons:after{
    content:"";
    padding-top: 30%;
    display: block;
}

.section-about-images {
    display: none;
}

 .section-about-quotes {
        background: rgba(143, 9, 1, 0.9);
        height: auto;
        padding: 0px;
        width: 100%;
        overflow: hidden;
        position:relative;
        display: -webkit-box !important;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
        display: -ms-flexbox !important;  /* TWEENER - IE 10 */
        display: -webkit-flex !important; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
        display: flex !important;
        -webkit-justify-content: flex-end;
        -moz-justify-content: flex-end;
        justify-content: flex-end;
        -webkit-flex-direction: row;
        -moz-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: wrap;
        -moz-flex-wrap: wrap;
        flex-wrap: wrap;
        padding: 1em;
}

.quote-body {
    background-position: center top;
    padding: 2em 0.5em 0px;
    font-style: italic;
    background-size: 100% 10px;
}

.quote {
    z-index: 2;
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    flex-direction: column;
    justify-content: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
    align-items: center;
    padding: 1em 0 1.5em;
    width: 100%;
}

.quote:nth-child(3) {
    display: none;
}


.quote-header {
    position: relative;
    top: 1em;
}
.quote-img {
    width: 4em;
    height: 4em;
    background: #000;
    background-size: contain;
    box-shadow: 1px 1px 10px #482D2D;
    border: 3px solid #FFF;
    float: left;
    margin-right: 1em;
}

.quote:nth-child(2) {
    background: #8c78540f;
}

.quote:nth-child(3) {
    background: #27221314;
}

.quote-title  {
    display: block;
    white-space: nowrap;
}

.section-about-text>* {
    padding: 0px !important;
    margin: 0px;
}

#section-about a {
    text-decoration: underline;
    color: #FFF;
}



video#about-video {
    display: none;
}
.quotes-back-img {
    background: url(gfx/img-noise-200x200.png);
    background-size: 45%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
}



/* CLIENTS SECTION */
#section-clients {
    padding-bottom: 2em;
}
#section-clients .section-wrapper {
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 2em 0 0em;
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    -webkit-justify-content: space-around;
    -moz-justify-content: space-around;
    justify-content: space-around;
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    flex-wrap: wrap;
}
.client-wrapper {
    position: relative;
    float: left;
    width: 22%;
    margin: 0em 1em;
}
.client-wrapper:after {
    content: "";
    padding-top: 100%;
    display: block;
}
.client {
    position: absolute;
    top: 0px;
    width: 0px;
    width: 100%;
    height: 100%;
    background-color: white;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}
.client-microsoft {
    background-image: url('gfx/client_microsoft.png');
}
.client-columbia {
    background-image: url('gfx/client_columbia.png');
}
.client-people {
    background-image: url('gfx/client_people.png');
}
.client-schrodinger {
    background-image: url('gfx/client_schrodinger.png');
}
.client-webbmedia {
    background-image: url('gfx/client_webbmedia.png');
}
.client-att {
    background-image: url('gfx/client_att.png');
}
.client-cli {
    background-image: url('gfx/client_cli.png');
}
.client-apple {
    background-image: url('gfx/client_apple.png');
}
.client-ilta {
    background-image: url('gfx/client_ilta.png');
}


@media only screen  and (min-width : 769px) {
    #hero {
        position: fixed;
    }
    .nav-secondary {
        display: block !important;
    }
    .quote {
        width: 50%;
        border-bottom: none;
        border-right: thin solid #7B1616;
    }
    #section-about {
        display: block;
    }
    .section-about-quotes {
        -webkit-flex-wrap: nowrap;
        -moz-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    .quote:nth-child(2) {
        border-right: none;
    }

    .client-wrapper {
        width: 11%;
    }
    .project-lightbox .back .blockInfo {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
        -webkit-column-gap: 1.5em;
        column-gap: 1.5em;
    }



}

@media only screen  and (min-width : 1025px) {
    #section-about .section-wrapper {
        display: block;
        position: absolute;
        overflow: hidden;
        max-width: none;
    }
    .section-about-text {
        width: 50%;
        height: 100%;
        left: 0px;
        top: 0px;
        padding: 6vw 3vw 2em;
        text-align: right;
    }

/*
    .section-about-images:after {
        content:"";
        background-color: #a72c24;
        opacity: .8;
        position: absolute;
        width:100%;
        height: 100%;
        top: 0px;
        left: 0px;
    }
    */

    video#about-video {
        display: none;
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        z-index: -100;
        -moz-transform: translateX(-50%) translateY(-50%);
        -webkit-transform: translateX(-50%) translateY(-50%);
        -ms-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
        background: url(images/livedesign_play.jpg) no-repeat;
        background-size: cover;
    }
    .quotes-back-img {
        display: none;
    }

    .section-about-quotes {
        width: 50%;
        height: 100%;
        right: 0px;
        bottom: 0px;
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        flex-direction: column;
        padding: 0;
        background: url('gfx/dark_gradient.png') rgba(143, 9, 1, 0.9) repeat-y;
    }

    .quote {
        opacity: .9;
        width: 100%;
        border-right: none;
        -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
        -moz-box-flex: 1;         /* OLD - Firefox 19- */
        -webkit-flex: 1;          /* Chrome */
        -ms-flex: 1;              /* IE 10 */
        flex: 1;
    }
    .quote-body {
        width: 86%;
        padding: 2em 2.5em 0px;
    }

    .quote:nth-child(3) {
        display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
        display: -ms-flexbox;  /* TWEENER - IE 10 */
        display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
        display: flex;
    }
    #main .textBox h4 {
        font-size: 1.5em;
    }


}




.sectionContent a {
    color: #aa4941;
    cursor: pointer;
    font-weight: bold;
}




/* CONTACT FORM */
#section-contact {
    background: whitesmoke;
    color: #222;
}
.section-wrapper.section-contact {
    padding: 2em 0;
}

#section-contact label {
    display: block;
}

form#ajax-contact {
    display: block;
    width: 100%;
}

#ajax-contact #message {
    width: 100%;
    height: 8em;
}

#ajax-contact input, #ajax-contact textarea {
    border: thin solid #ddd;
    background: white;
    padding: .5em;
}

#ajax-contact #name, #ajax-contact #email {
    width: 50%;
    float: left;
}

#ajax-contact button {
    background: #A22E1E;
    color: white;
    margin: 20px 0px 0px;
    display: block;
    padding: .5em;
    float: right;
    width: 100%;
}

#form-messages {
    font-size: .8em;
    padding-top: 2em;
}



@media only screen  and (min-width : 769px) {
    form#ajax-contact {
        display: block;
        margin: 2px;
        max-width: 700px;
        float: right;
        width: 70%;
    }
    #section-contact:before {
        content: "";
        position: absolute;
        background: url('gfx/icon_mail_big.png') no-repeat #E5E5E5;
        top: 0px;
        left: 0px;
        width: 32%;
        height: 100%;
        background-position: center center;
        background-size: 50%;
        -webkit-transition: all 1s ease-in;
        -moz-transition: all 1s ease-in;
        -ms-transition: all 1s ease-in;
        -o-transition: all 1s ease-in;
        transition: all 1s ease-in;
    }
    #section-contact.sending:before {
        -webkit-animation: pulsate 1s ease-out;
        -webkit-animation-iteration-count: infinite;
    }
    #section-contact.sent:before {
        background-color: #53B253;
    }
    #ajax-contact button {
        width: auto;
    }
}

/* FOOTER */
#footer {
    padding: 3em 0;
    align-items: center;
    background: url('gfx/footer_band.png') #222 no-repeat;
    background-size: 100% 20px;
    background-position: top;
    min-height: 150px;
    text-align: center;
    position: relative;
}

#footer .menu-icon {
    margin: 0px 20px;
    background-position: center center !important;
}

#footer .contact-email {
    background: url('gfx/icon_mail_white.png') no-repeat;
}
#footer .contact-linkedin {
    background: url('gfx/icon_linkedin_white.png') no-repeat;
}
#footer .contact-twitter {
    background: url('gfx/icon_twitter_white.png') no-repeat;
}
.social-list {
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
    align-items: center;
    margin-bottom: 2em;
}


/* LIGHTBOX */

.topnav {
    background:white;
}
.nav-link {
    margin-right: 1em;
}
.project-lightbox {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #222222;
    z-index: 1000;
    top: 0px;
    left: 0px;
    overflow-y: scroll;
    color: white;
}


.project-lightbox .front, .project-lightbox .textBox, .project-lightbox .back, .project-lightbox .topnav {
    padding: 1em 1em;
    display: block;
}

.project-lightbox .front {
    background: white;
    position: relative;
}
.project-lightbox .back {
    background-color: #222;
}
.project-lightbox .textBox {
    background-color: #a72c24;
    background: url('gfx/footer_band.png') rgb(34, 34, 34) no-repeat;
    background-size: 100% 8px;
    background-position: top;
    padding-top: 2em !important;
    border-bottom: thin solid #2F2F2F;
}

.project-lightbox .textBox, .project-lightbox .back {
    padding-top: 3em !important;
    padding-bottom: 3em !important;
    line-height: 1.35em;
    font-weight: lighter;
}

.project-lightbox .textBox h4 {
    color: #fff;
    font-size: 2em;
    font-weight: lighter;
    margin-top: 0px;
    text-shadow: black 1px 1px 1px;
}

.project-lightbox .sectionContent.detailed img {
    cursor: auto;
}

.close-lightbox-btn {
    position: fixed;
    right: 1em; 
    top: 1em;
    width: 2.5em;
    height: 2.5em;
    border: thin solid rgba(34, 34, 34, 0.13);
    border-radius: .3em;
    background: #FFF;
    color: #222;
    opacity: .5;
    z-index: 99;
    display: none;
}

.video-wrap  {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    max-height: 600px;
    max-width: 900px;
}
.video-wrap .video { /* hack to maintain video aspect ratio at different browser widths */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 600px;
    max-width: 900px;
}

.project-lightbox .showInfoBtn {
    display: none;
}


.project-lightbox .front-img {
    display: block;
    min-height: 200px;
}


.project-lightbox .slick-dots {
    bottom: 50px;
    margin-top: 10px;
}
/* bug fix */
.slick-slide {
    height: auto !important;  
    overflow: hidden;
    max-height: 2000px;
} 
.slick-slide img {
    display: block;
    width: auto;
}

.slick-arrow {
    position: absolute;
    top: 50%;
    z-index: 99;
    padding: 18px;
    color: #3D3D47;
}

.slick-next {
    right: 0px;
}

.slick-prev {
    left: 0px;
}
.slick-dots {
    bottom: 50px;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}
.slick-dots li {
    display: inline-block;
    background: #808080;
    margin: 3px 12px;
    font-size: 0;
    border-radius: 100%;
    width: 10px;
    height: 10px;
    cursor: pointer;
}
.slick-dots li:hover, .slick-dots li.slick-active {
    background: #222;
}



/* fix image height issue 
.slick-list {
    height: auto !important;
} */

.project-lightbox .back p {
        padding: 0em 0em 2em;
    }
.back li {
        display: list-item;
        list-style: initial;
        margin-left: 3em;
        padding: 1em 0em;
    }
.back h3 {
        margin-bottom: .5em;
        font-size: 1.5em;
        font-weight: lighter;
    }

@media only screen  and (max-width : 740px) {
        #services .slick-prev, #services .slick-next {
            display: none;
        }
        p.rolesText {
            font-size: 1.3em;
        }
    
}
@media only screen  and (max-width : 1024px) {
    p.rolesText {
        font-size: 1.1em;
    }
    .font-xsmall {
        font-size: 1.1em;
    }
}
    
@media only screen  and (min-width : 769px) {
    .project-lightbox .front, .project-lightbox .textBox, .project-lightbox .back, .project-lightbox .topnav {
        padding: 1em 3em;
        display: block;
    }

}





/* POOL GAME */
.game-viewport {
    position: absolute;
    top: 0px;
    width: 100%;
    left: 0px;
    height: 100%;
    background: #FFF;
    z-index: 1;
    overflow: hidden;

}
.game-viewport .round-icon {
    position: absolute;
    -webkit-transform: translate3d(-50%,-50%,0);
    -moz-transform: translate3d(-50%,-50%,0);
    -o-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate3d(-50%,-50%,0);
    z-index: 6;
}

.game-viewport.aiming:before {
    content: "( Click to aim )";
    display: block;
    position: absolute;
    color: black;
    left: 50%;
    bottom: 10%;
    font-size: 12px;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    transform: translateX(-50%);
}

.game-viewport.pulling:before {
    content: "( Click to shoot )";
    display: block;
    position: absolute;
    color: black;
    left: 50%;
    bottom: 10%;
    font-size: 12px;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    transform: translateX(-50%);
}

.start-pool {
    position: absolute;
    bottom: 5%;
    left: 50%;
    padding: 5px;
    font-size: 12px;
    color: #604444;
    border: thin solid #AA9494;
    border-radius: 4px;
    cursor: pointer;
    z-index: 2;
    text-align: center;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    transform: translateX(-50%);
}

.cueball.round-icon {
    position: absolute;
    width: 80px;
    cursor: pointer;
    background: url('gfx/poolcueball.jpg') no-repeat #FFF;
    background-size: cover;
    background-position: center;
    border: none;

}

.hit-widget{
    position: absolute;
    opacity: 0;
    z-index: 4;
    border-radius: 100%;
    background: url('gfx/poolstick.png') rgba(164, 228, 164, 0.55);
    background-size: 100%;
    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    -ms-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;

}
.hit-widget:after{
    content:"";
    display: block;
    padding-top:100%;
}
.hit-widget.aiming, .hit-widget.pulling {
    opacity: .8;
}





@keyframes shake {
  10%, 85% {
    margin-left: -1px;
  }
  
  20%, 80% {
    margin-left: 2px;
  }

  30%, 50%, 70% {
    margin-left: -4px;
  }

  40%, 60% {
    margin-left: 4px;
  }
}

.shake {
  animation: shake 1s cubic-bezier(.36,.07,.19,.97) both infinite;
  backface-visibility: hidden;
  perspective: 1000px;
}

.game .shake {
    animation:none;
}

