@import url('https://fonts.googleapis.com/css?family=Karla:400,400i,700,700i&display=swap');
html {
    margin:0;
    padding:0;
    
}
body {
    margin:0;
    padding: 0;
    font-family: 'Karla', sans-serif;
    
}
p {
    font-size: 1.1em;
    font-family: 'Karla', sans-serif;
}
.hoverLine {
    position:fixed;
    left:0;
    border-style: solid;
    border-color:black;
}
.wrapper {
    width:100%;
    margin:0 auto;
}
@keyframes invertColors {
    from {filter: invert(0);}
    to {filter:invert(1);}
}
header.white {
    animation: invertColors 2s normal both;
}
header.black {
    animation: invertColors .5s reverse both;
}
header {
    width:85%;
    margin:40px auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    height:80px;
    flex-direction: row;
    align-items: center;
    z-index: 1;
    font-family: 'Karla', sans-serif;
    font-weight: 600;
}
header a {
    text-decoration: none;
    color:black;
    font-family: 'Karla', sans-serif;
    font-weight: 600;
}
h1 a {
	width: auto; 
	padding: 80px 0 0 0 ; 
	height: 0;
	background: url("images/mattmac-logo.png") no-repeat;
    background-position:center; 
    background-size: contain;
	overflow: hidden;
    line-height:100%;
    display:block;
    margin:0;

}


h1 {
       width: auto;
       height: 80px;
       padding:0;
       margin:0;
}
h2 {
    font-size: 56px;
    font-weight: 600;
    text-align: left;
}
h3 {
    font-size:24px;
    text-align: left;
}
hr:not(.hoverLine) {
	display: block;
	width: 100%;
	background-image: url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ev='http://www.w3.org/2001/xml-events' viewBox='0 0 10 5'><style type='text/css'>.st0{animation:shift 0.8s linear infinite;}@keyframes shift {from {transform:translateX(0);}to {transform:translateX(10px);}}</style><polyline class='st0' points='-10,0 -5,5 0,0 5,5 10,0' stroke='%23c1c1c1' stroke-width='1' fill='none'></polyline></svg>");
	background-repeat: repeat;
	height: 5px;
	box-sizing: border-box;
	border: none;
	margin: 48px 0 64px 0;
	background-clip: content-box;
}

nav {
    width:50%;
    min-width: 524px;
}
nav button {
    display:none;
}
nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    cursor: pointer;
}
figure {
    width:80%;
    margin:0 auto;
    padding-top:2.5%;
}
figure img {
    width:100%;
}
figure.halfWide {
    display: flex;
    justify-content: space-between;
    width:100%;
}
figure.halfWide img {
    width:48.75%;
    height:50%;
    display: inline;
}
.main {
    width:85%;
    margin:0 auto;
    display:flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    z-index: -1;
}
.main div {
    width:30%;
    max-width:450px;
    height:30%;
    padding: 10% 0;
    background:none;
    text-align: center;
    position: relative;
}
.projectContent {
    width:80%;
    background: none;
    max-width: none;
    margin: 0 auto;
    padding-top:20%;
    display:flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    z-index: -1;
}
.main p {
    text-align: left;
}
.main > div > img:first-child {
    width:80%;
    height:auto;
}
.main .projects {
    width:100%;
    padding:0;
    cursor: pointer;
    margin:10px 0;
}
.main div#one {
    background: none;
    background-attachment: scroll;
    background-size:cover;
    background-position: right;
    margin: 0;
    padding: 11.395% 0;
   
}
#two {
    background: #FBE6E9;
}
#three {
    background: #5222F6;
}

#four {
    background: #B1D1F6;
}
#five {
    background: #000;
}
#six {
    background: #FFF0CE;
}
div.iframe-container {
    position:relative;
    width:100%;
    max-width: 640px;
    height:0;
    padding-bottom: calc(56.25*.8vw);
    max-height: 1138px;
    background: none;
    margin:0 auto;
}
div.iframe-container iframe{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}
.main div#citiBike {
    background: none;
    width:80%;
    padding: 0 15%;
    max-width: none;
    margin-top: -160px;
}
.main div#hazelCharm {
    background: none;
    width:80%;
    padding: 0 15%;
    max-width: none;
    margin-top: -160px;
}
.main div#nexus {
    background: none;
    width:80%;
    padding: 0 15%;
    max-width: none;
    margin-top: -160px;
}
.main div#spin {
    background: none;
    width:80%;
    padding: 0 15%;
    max-width: none;
    margin-top: -160px;
}
.main div#under {
    background: none;
    width:80%;
    padding: 0 15%;
    max-width: none;
    margin-top: -160px;
}
.main div#trader {
    background: none;
    width:80%;
    padding: 0 15%;
    max-width: none;
    margin-top: -160px;
}

.main p{
    padding-top:2.5%;
    width:100%;
    margin:0 auto;
    text-align: left;
    line-height: 1.7;
}

#nexus ul {
    list-style-image: url('../images/nexus/smile.png');
    list-style-position: outside;
    text-align: left;
    line-height: 1.7;
}
#nexus ul li {
    padding-bottom: 1.7em;
}
#nexus ul li.open{
    list-style-image: url('../images/nexus/open.png');
}
#headSyn {
    width:65%;
    margin:0 auto;
}
.projectContent div#camp {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width:100%;
    max-width:none;
    background:none;
}
#camp section {
    width:48%;
    padding-bottom:25px;
}
#camp figure {
    width:100%;
}
#citiBike p:first-child {
        text-indent: 0;
}
.sectionLogo {
    position: absolute;
    width:100%;
    max-width:none;
    height:10px;
    top:0px;
    padding-bottom:15%;
    padding-top:180px;
    z-index: -1;
    background: blue;
    text-align: center;
}
.sectionLogo img {
    width:40%;
}
.sectionLogo video {
    height:100%;
    position: absolute;
    bottom:0px;
    left:37.23%;
}
#swipeThru {
    position:relative;
    width:65%;
}
.embed-container { 
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; 
} 
.embed-container iframe, .embed-container object, .embed-container embed { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
}
@media only screen and (max-width:1606px) {
    .main {
        justify-content: space-around;
    }
}
@media only screen and (max-width: 1000px) {
    .wrapper {
        width: 100%;
        -webkit-transition: width 1s;
        transition: width 1s;
    }
    .main {
        width:100%;
        max-width: none;
        justify-content: space-around;
    }
    #swipeThru {
        min-width: 480px;
        margin:0 auto;
    }
    figure {
        display: flex;
        justify-content: space-around;
    }
    nav button {
        display: block;
        position: absolute;
        right:0;
        border:none;
        padding: 0;
        background: none;
        color:#000;
        font-family: 'Karla', sans-serif;
        font-weight: 600;
        font-size: 1.2em;
        cursor: pointer;
    }
    nav ul {
        display:block;
        position:absolute;
        top:80px;
        left:-50px;
        background: #fff;
        width:100%;
        margin:0 auto;
        padding:0 50px;
        box-shadow: 0px 10px 2px #fff;
        border-bottom:1px solid #eee;
        overflow:hidden;
    }
    nav ul li {
        height:auto;
        padding:28px 0;
        text-align: right;
        border-top:1px solid #eee;
    }
    .hoverLine {
        display: none;
        border-color:#fff;
        width:none;
        opacity:0;
    }
    hr:not(.hoverLine) {
        margin:32px 0 0 0;;
    }
    h1 {
        
    }
    h2 {
        margin:15px 0;
    }
    .main div {
        width:100%;
        max-width:1000px;
        padding:none;
        transition: width 1s;
    }
    .main div#one {
        padding: 0;
    }
    .projectContent {
        width:100%;
    }
    #headSyn{
        width:95%;
    }
    #camp {
        width:100%;
    }
    #camp section {
        width:95%;
        padding-bottom:25px;
        margin:0 auto;
    }
    img.halfWide {
        width:100%!important;
        padding: 0;
    }
    div.iframe-container {
    position:relative;
    width:100%;
    max-width:none;
    height:0;
    padding-bottom: calc(177.8125*.8vw);
    }
}
