/*-----------------
	Reset
------------------*/

/* http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/*-----------------
	Typography
------------------*/


body, h3{
	font: normal 700 16px 'Open Sans', Helvetica, Arial, sans-serif;
}

p{
	font: normal 16px 'EB Garamond', Georgia, serif;
}



/*-----------------
	Main Content
------------------*/


.main-content{
	margin: 60px auto;
	max-width: 900px;
	transition: 1s;
	
}


@media only screen and (max-width: 800px){

	.main-content{
		margin: 25px auto;
		padding: 0 25px;

	}

}

/*-------------------
	Background
--------------------*/

.background {
	position:absolute;
	z-index: -1;
	top: 30%;
	left: 5%;
	font-family: 'Montserrat', sans-serif;
	transition:1s;
}

.background > ul {
	font-size: 25vw;
	font-weight: bold;
	line-height: 1;
	max-width: 700px;
	display:grid;
	grid-template-columns: auto auto auto auto auto;
	grid-template-rows: auto;
	transition: 0.5s;
}

.background li  {
	margin: 30px 10px 0px;
	transition: 0.5s;
	color:#00af8a;
	margin: -5px;
}

@media only screen and (max-width: 800px){

	.background > ul {
		font-size: 30vw;
		grid-template-columns: auto auto auto auto;
	}

}


/*-------------------
	All Projects
--------------------*/

/*	Projects List	*/ 


.projects-list{
	width:100%;
	max-width: 900px;
	display: grid;
	grid-template-columns: 22% auto auto auto;
	grid-template-rows: 0px auto;
	grid-column-gap: 3%;
	grid-row-gap: 36px;
	z-index: 1;
	position: relative;
	mix-blend-mode: multiply;
}

#hack {
	grid-column: 2 / 4;
}

.projects-list.hidden {	
	display: none;
}



.cover-photo {
	height: 120px;
	/*border:1px solid black;*/
	border-radius: 3px;
	box-shadow: 3px 3px 2px rgba(0, 0, 0, 0.3);
	/*padding: 25px;*/
	/*-ms-transform: skewY(160deg); /* IE 9 */
    /*-webkit-transform: skewY(160deg); /* Safari */
    /*transform: skewY(160deg);*/
    background-color:black;
    overflow: hidden;
    background-size:cover;
}



figcaption {
	font-size: 0.8em;
	margin-top: 5px;
	line-height: 1.2;
	/*-ms-transform: rotateZ(-20deg); /* IE 9 */
    /*-webkit-transform: rotateZ(-20deg); /* Safari */
    /*transform: rotateZ(-20deg);*/
}



/*
.all-products.visible .products-list,
.all-products.visible .filters,
.all-products.visible h3{
	opacity: 1;
	transition: 1s;
	pointer-events: auto;
}


.products-list > li.hidden{
	opacity: 0.2;
	pointer-events: none;
}

/* The product image */
/*
.products-list .product-photo{
	display: block;
	text-align: center;
	box-shadow : 0 0 20px 8px #f3f3f3 inset;

	width: 275px;
	margin-bottom: 25px;
	padding: 20px 0;
	box-sizing: border-box;
}



/* Making the list responsive */

@media only screen and (max-width: 1200px) and (min-width:800px) {

	.projects-list{
		grid-template-columns: auto auto auto;
		grid-column-gap: 30px;
		grid-row-gap: 30px;
	}

	#hack {
		grid-column: 2 / 3;
}
	.cover-photo {
		height: 150px;
	}

}

@media only screen and (max-width: 800px){

	.projects-list{
		grid-template-columns: auto;
		grid-row-gap: 15px;
	}

	#hack {
		grid-column: 1 / 1;
}
	.cover-photo {
		height: 300px;
	}

}



/*---------------------------
	Single Project Page
----------------------------*/

.single-product{
	z-index: 100;
}

.overlay{
	height: 0px;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: white;
	opacity:0;
	transition: 0.6s;
	z-index: 100;
}

.single-product {
	display:none;
}

.single-product.visible {
	display:block;
}
	
.single-product.visible .overlay{
	height: 100%;
}

.preview-large{
	box-sizing: border-box;
	height: 100%;
	position: relative;
	margin: 50px auto;
	pointer-events: none;
	z-index: 102;
	opacity: 0;
	transition: 0.4s;

}

.single-product.visible .preview-large{
	opacity: 1;
	transition: 1.4s;
	pointer-events: auto;
}

.preview-large h2{
	margin: 20px 0px;
	font-size:1.4em;
}


.preview-large img{
	max-width:500px;
	border: 1px solid #efefef;
	background: white;
	margin: 0px 0px 5px 0px;
}

.preview-large p{
	line-height: 1.4;
	margin: 0px 0px 25px 0px;
	max-width:500px;
}

.preview-large figure, .preview-large>img{
	margin: 0px 0px 25px 0px;
}

.preview-large ul{
	list-style: disc;
	padding: 0px 0px 25px 0px;
}

.preview-large ol{
	list-style: decimal;
	padding: 0px 0px 25px 0px;
}

.preview-large figcaption{
	font: italic 1em 'EB Garamond', Georgia, serif;
}

.preview-large blockquote{
	font: normal 1.4em 'EB Garamond', Georgia, serif;
	font-style: italic;
	margin: 0px 0px 25px 0px;
}


.close, .forward, .backward{
    position: fixed;
    right: 45px;
    font-size: 100px;
	color: #555;
	cursor: pointer;
	font-weight: 400;
}

.close:hover, .forward:hover, .backward:hover{
    color:#000;
}

.close{
    top: 150px;
}

.forward{
    top: 250px;
}

.backward{
	top:350px;
}

@media only screen and (max-width: 800px){

.close, .forward, .backward{
    right: 15px;
    font-size: 100px;
}
}


/* Making the project view responsive */

@media only screen and (max-width: 800px){

	.preview-large p{
		max-width:80%;
	}

	.preview-large ul{
		max-width:80%;
	}

	.preview-large img{
		max-width:80%;
	}

	.preview-large video{
		max-width:80%;
	}

	.preview-large {
		margin-right:0;
	}
}


/*---------------------------
	Error Page
----------------------------*/

.error{
	opacity: 0;
	transition: 0.6s;
	pointer-events: none;
	position: absolute;
	left: 0;
	top: 100px;
	width: 100%;
}

.error.visible{
	opacity: 1;
}

.error h3{
	font-size: 40px;
}



/*---------------------------
	Footer
----------------------------*/

footer{
	background-color:#00af8a;
	color:white;
	padding:25px;
	display:grid;
	grid-template-columns: auto;
	transition: 1s;
	z-index:200;
	height:20vh;
}


address {
	max-width:900px;
	display:grid;
	grid-template-columns: auto auto auto;
}

.copyright{
	font-size: 10px;
	opacity:0.5;
	max-width:900px;
	display:inline-block;
	float:right;
}


@media only screen and (max-width: 500px){

	.footer{
		padding: 25px;
		font-size: 10vw;

	}

	address {
	grid-template-columns: auto;
	}

}

/*---------------------------
	base font edit
----------------------------*/

@media only screen and (min-width: 500px){

	.preview-large p{
		font-size:1.1rem;

	}
}
