/* ====== General ====== */

html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    padding:0;
    margin:0;
	font-size: calc(1em + 1vw);
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

img {
    max-width: 100%;
    max-height: 100%;
    pointer-events: none !important;
}

.black-background {
    background: #000000;
}

a{
    text-decoration: none;
    cursor: pointer;
}

.vertical-center {
    position: absolute;
    height: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
}

.max-width {
    max-width: 80%;
    margin: 0 auto;
}

.max-width-70{
    max-width: 70%;
    margin: 0 auto;
}

.top-bottom-margin{
    margin-top: 15vh;
    margin-bottom: 10vh;
}

.animate{
    -webkit-animation: animate .6s cubic-bezier(0.2, 0.6, 0.2, 1);
    -moz-animation: animate .6s cubic-bezier(0.2, 0.6, 0.2, 1);
    animation: animate .6s cubic-bezier(0.2, 0.6, 0.2, 1);
    -webkit-animation-fill-mode: backwards;
    -moz-animation-fill-mode: backwards;
    animation-fill-mode: backwards;
}

@-webkit-keyframes animate {
	0% {opacity: 0;-webkit-transform: translateY(100%);}
	100% {opacity: 1;-webkit-transform: translateY(0%);}	
}

@keyframes animate {
	0% {opacity: 0;transform: translateY(30vh);}
	100% {opacity: 1;transform: translateY(0%);}	
}

@media screen and (max-width: 767px){
    .hide-web {
        display: none;
    }

    .toggle-mobile-second {
        display: none;
    }

    .max-width {
        max-width: 100%;
        max-width: 86%;
    }
}

.home-btn{
    float: right;
}

.home-btn-inner{
    z-index: 999;
    top: 10%;
    position: fixed;
}

@media screen and (max-width: 767px) {
    .home-btn-inner {
        top: 5%;
        left: 75%;
    }
}

.label-home-btn:after{
    content: "tippit.";
    font-family: effra, sans-serif;
    font-style: normal;
    font-size: 24px;
}
.label-home-btn:hover:after{
	content:"tippit.works";
    white-space: nowrap;
}

@media screen and (max-width: 767px) {
    .label-home-btn:hover:after{
        content:"tippit.";
    }
}

.label-home-btn{
    -webkit-animation:fadelogo .6s cubic-bezier(0.2, 0.6, 0.2, 1);
    -moz-animation:fadelogo .6s cubic-bezier(0.2, 0.6, 0.2, 1);
    animation:fadelogo .6s cubic-bezier(0.2, 0.6, 0.2, 1);
    -webkit-animation-fill-mode:backwards;
    -moz-animation-fill-mode:backwards;
    animation-fill-mode:backwards;
}

@-webkit-keyframes fadelogo {
    0% {-webkit-transform: translateY(10vh);}
    100% {-webkit-transform: translateY(0vh);}	
}
@keyframes fadelogo {
    0% {opacity: 0;transform: translateY(10vh);}
    100% {opacity: 1;transform: translateY(0vh);}	
}

/* ====== Fonts and Text ====== */

.white-text{
    color: white;
}

.red-text{
    color: red;
}

.hide-text-block {
    position: relative;
    display: block;
    overflow: hidden;
}

h1 {
    font-family: effra, sans-serif;
    font-weight: 700;
    font-style: normal;
	position: fixed;
	line-height: 110%;
	letter-spacing: -2px;
    font-size: 3.2em; /* general fallback */
    font-size: 18vm; /* IE9 fallback */
/*     font-size: 19vmin; */
    font-size: 18vmin;

}
		@media screen and (max-width: 767px) {
			h1 {
			line-height: 130%;
			}
		}
h2{
    font-family: effra, sans-serif;
    font-weight: 700;
    font-style: normal;
	line-height: 110%;
	letter-spacing: -2px;
    font-size: 6em; /* general fallback */
    font-size: 12vm; /* IE9 fallback */
}

@media screen and (max-width: 767px) {
    h2 {
    line-height: 130%;
    font-size: 2em;
    }
}

h4{
    font-family: effra, sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 140%;
    font-size: 40px;
    margin: 16vh 0 4vh 0;
}

p {
    font-family: effra, sans-serif;
    font-style: normal;
    line-height: 170%;
    font-size: 18px;
    margin-bottom: 3vh;
}

.large-text{
    line-height: 160%;
    font-size: 24px;
    margin-bottom: 4vh;
}

@media screen and (max-width: 767px) {
    h2 {
    line-height: 130%;
    font-size: 2em;
    }

    p {
        font-size: 16px;
    }
}

/* ====== Hover States ====== */

.on-hover-40, .on-hover--40 {
	transition: all .4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.on-hover-40:hover {
	margin-left: 40px;
	transition: all .4s cubic-bezier(0.2, 0.6, 0.2, 1);	
}
.on-hover--40:hover {
	margin-left: -40px;
	transition: all .4s cubic-bezier(0.2, 0.6, 0.2, 1);	
}

@media screen and (max-width: 767px) {
    .on-hover-40:hover {
        margin-left: 0px;	
    }
    .on-hover--40:hover {
        margin-left: 0px;
    }	
}

/* ====== Animation Delays ====== */

.delay02 { -webkit-animation-delay: .2s; animation-delay: .2s;}
.delay04 { -webkit-animation-delay: .4s; animation-delay: .4s;}
.delay06 { -webkit-animation-delay: .6s; animation-delay: .6s;}
.delay08 { -webkit-animation-delay: .8s; animation-delay: .8s;}
.delay10 { -webkit-animation-delay: 1s; animation-delay: 1s;}
.delay12 { -webkit-animation-delay: 1.2s; animation-delay: 1.2s;}

/* ====== Homepage ====== */

.label-hello:after{
    content:"Hello.";
}
.label-hello:hover:after{
	content:"About";
}
.label-projects:after{
    content:"I am";
}
.label-projects:hover:after{
	content:"Projects";
}
.label-contact:after{
    content:"Zach";
}
.label-contact:hover:after{
	content:"Contact";
}

/* ====== Homepage Mobile ====== */

@media screen and (min-width: 768px) {
	.hide-mobile {
		display: none;
	}
}

@media screen and (max-width: 767px) {
	.hide-web {
		display: none;
	}
	.toggle-mobile-second {
		display: none;
	}
	.mobile-tap-area {
		background: transparent;
		position: absolute;
		width: 100%;
		height: 100%;
	}
	.tap-indication {
	    text-align: center;
		width: 100%;
		font-family:"Medium";
		color: #ffffff;
		position: fixed;
		bottom: 4%;
		font-size: 0.6em; /* general fallback */
	    font-size: 3.6vm; /* IE9 fallback */
	    font-size: 3.6vmin;
		animation: bounce 1s infinite alternate;
		
		-webkit-animation:bounce .5s cubic-bezier(.5, .6, .6, 1) infinite alternate;
		-moz-animation:bounce .5s cubic-bezier(.5, .6, .6, 1) infinite alternate;
		animation:bounce .5s cubic-bezier(.5, .6, .6, 1) infinite alternate;	
	}
	@keyframes bounce {
	  from {
	    transform: translateY(0px);
	  }
	  to {
	    transform: translateY(-8px);
	  }
	}
	@-webkit-keyframes bounce {
	  from {
	    transform: translateY(0px);
	  }
	  to {
	    transform: translateY(-8px);
	  }
	}
}

/* ====== Background Photo ====== */

.bg-photo {	
	z-index: -9;	
	position: fixed;
	top: 0; 
	right: 0; 
	bottom: 0; 
	left: 35%;
	background-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0) 100%), url(../img/zt-new.jpg);
	background-repeat: no-repeat;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	 background-size: cover;
	
	-webkit-animation:bg-photo 1.2s cubic-bezier(.5, .6, .6, 1);
	-moz-animation:bg-photo 1.2s cubic-bezier(.5, .6, .6, 1);
	animation:bg-photo 1.2s cubic-bezier(.5, .6, .6, 1);	
	-webkit-animation-fill-mode:backwards;
	-moz-animation-fill-mode:backwards;
	animation-fill-mode:backwards;
}
	@media screen and (max-width: 767px) {
		.bg-photo {
		-webkit-animation:bg-photo .6s cubic-bezier(.5, .6, .6, 1);
		-moz-animation:bg-photo .6s cubic-bezier(.5, .6, .6, 1);
		animation:bg-photo .6s cubic-bezier(.5, .6, .6, 1);		
		}
	}
@-webkit-keyframes bg-photo {
	0% {opacity: 0;transform: scale(1.1);}
	100% {opacity: 1;transform: scale(1);}	
}

@keyframes bg-photo {
	0% {opacity: 0;transform: scale(1.1);}
	100% {opacity: 1;transform: scale(1);}	
}
		@media screen and (max-width:480px) {
			.bg-photo {
				left: -8%;
			}	
		}


/* ====== About Page ====== */

.block-image-overflow {
    width: 100%;
    overflow: hidden;
}

.about-photo{
    background-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0) 100%), url(../img/about.png);
    background-repeat: no-repeat;
    width: 80vw;
    height: 80vh;
    overflow: cover;
    margin: 10vh 0;
    margin-left: 20%;
}

.resume{
    font-family: effra, sans-serif;
    font-style: normal;
    line-height: 170%;
    font-size: 18px;
    margin-bottom: 3vh;
}

/* ====== About Photo ====== */

@-webkit-keyframes about-photo {
	0% {opacity: 0;transform: scale(1.1);}
	100% {opacity: 1;transform: scale(1);}	
}

@keyframes about-photo {
	0% {opacity: 0;transform: scale(1.1);}
	100% {opacity: 1;transform: scale(1);}	
}

@media screen and (max-width:480px) {
    .about-photo {
        background-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 10%, rgba(0,0,0,0) 100%), url(../img/about-1.png);
        width: 120%;
        height: 100vh;
        margin-left: -10%;
    }	
}

/* ====== Contact ====== */

.links a {
	display: block;
    margin: 4vh 0;
    font-family: effra, sans-serif;
    font-style: normal;
    font-weight: 700;
	font-size: 19px;
    line-height: 170%;
}

.label-email:after{
    content:"zachary.tippit@gmail.com";
}
.label-email:hover:after{
	content:"Copy to Clipboard";
}

/* ====== Projects ====== */

.project{
    margin-top: 5vh;
}