@import url('https://fonts.googleapis.com/css?family=Work+Sans:regular,italic');

body {
	font-family: Work Sans;
	font-size: 16px;
	line-height: 1.5;

	background-color: #000;
	color: #ffffff;

	padding-top: 104px;

}

a {
	color: #ffffff;
	text-decoration: none;
}
header {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;

	z-index: 5;

}

header h1 {
	
	width: 400px;
}


header nav a {
	margin-left: 10px;

	/* hover transition */
	transition: border 0.3s ease-in;
	/* we can add transition delay as well adding a second number above transition: border 0.3s 2s ease-in; */
	border-bottom: solid 2px rgba(0, 0, 0, 0);
	padding-bottom: 3px;
}

header nav a:hover {
	border-bottom: solid 2px #555;
	/* padding-bottom: 3px; */
}

header nav a.selected {
	border-color: #ffffff;
}

.photos {
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 10px;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	flex-wrap: wrap;
}

.photo {
	width: 300px;
	margin: 10px;
	position: relative;
}

.photo img {
	transition: filter 0.3s;
}

.photo:hover img {
	filter: grayscale(100%);
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	/* style of the overlay box */
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	opacity: 0;
	transition: opacity 0.7s;
	/* we can add also transition: all 0.7s; and it transitions all the properties */
	z-index: 2;
}

.photo:hover .overlay {
	opacity: 1;
}

.photo h2 {
	position: absolute;
	top: -15px;
	left: -15px;
	font-size: 32px;
	line-height: 1.2;
}

.small {
	width: 220px;
}

.large {
	width: 400px;
}


/* LIST PAGE  */

.intro-text {
	  margin-left: auto;
	  margin-right: auto;
	  font-size: 56px;
	  line-height: 1;
	  max-width: 920px;
	  margin-top: 120px;
	  text-align: center;
}

.list {
	max-width: 770px;
	margin-left: auto;
	margin-right: auto;
	font-size: 56px;
	line-height: 1.2;
	margin-top: 10vh;
	/* text-align: center; */
}

.list {
	padding: 30px;
}


/* this is a pseudo element that allows to insert content before or after an element */
.list a:after {
	content: "/";
}


/* we need to remember to add the after in the end otherwise it will not delete the content */
.list a:last-child:after {
	content: "";
}

.list a img {
	opacity: 0;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 700px;
	/* This will tell the browser to ignore any default interaction on this image element */
	pointer-events: none;

	/* transition */
	transition: opacity 0.3s;
}

.list a video {
	opacity: 0;
	position: fixed;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-height: 300px;
	/* This will tell the browser to ignore any default interaction on this image element */
	pointer-events: none;

	/* transition */
	transition: opacity 0.3s;
}


.list a:hover img {
	opacity: 1;
}

.list a:hover video {
	opacity: 1;
}



footer {
	/* overflow: hidden; */
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

footer p {
	/* float: left; */
	}

footer nav {
	/* float: right; */
	}

footer nav a {
	width: 16px;
	margin-left: 10px;
	display: inline-block;
	}


	/* FORM  */

	.contact {
		margin-left: auto;
	  margin-right: auto;
	  line-height: 1.5;
	  max-width: 920px;
	  margin-top: 80px;
	  text-align: left;
		font-size: 22px;
		padding: 0 30px;
	}

	input, textarea {
	  width: 100%;
	  background-color: #111118;
	  border: 2px solid #ffffff;
	  color: #ffffff;
	  padding: 8px 16px 8px 16px;
	  font-family: Work Sans;
	}

	label {
	  display: block;
	  margin: 20px 0 20px 0;
	}

	textarea {
	  height: 240px;
	}

	button {
	  background-color: blue;
	  color: #ffffff;
	  border: none;
	  font-size: 24px;
	  font-family: Work Sans;
	  padding: 8px 16px 8px 16px;
	}

	button:hover {
		background-color: #ffffff;
		transition: 0.5s;
		color: blue;
}


/* Exercises */

.sketch {
	margin-left: 20px;
}

.p5Canvas {
	margin-left: 20px;
	
}

.sketch h2 {
	padding-bottom: 20px;
}




/* Media Queries */

@media (max-width: 1300px) {
	.list {
		font-size: 40px;
	}
}

@media (max-width: 940px) {
	.contact {
		max-width: 660px;
	}

	.intro-text {
		padding: 0 30px;
	}

}

@@media (max-width: 680px) {

	.contact {
		padding: 0 30px;
	}

}

	@media (max-width: 450px) {
		.photos {
			/* justify-content: center; */
		}
	}
