body {background: #fafafa}

#backButton {
	position: absolute;
	top: 20px;
	left: 20px;
	background: #f4f4f4;
	padding: 10px 20px;
	border-radius: 50px;
	border: 1px solid silver;
    color: grey;
}

#backButton:hover {
	background: #eaeaea;
	color: #666666;
}

#main {
	width: 100%;
	float: left;
	text-align: center;
}

@media (min-width: 801px) {
	#main {margin-top: 80px}
}

@media (max-width: 800px) {
	#main {margin-top: 60px}
}

#main>h1, #main>h2 {
	margin-top: 50px;
	font-size: 2.4em;
	font-family: 'Roboto Slab', serif;
	color: #5f5f5f;
	font-weight: lighter;
}

#main>h2 {
	font-size: 1.6em;
	margin-top: 20px;
}

#main>.emptyProject {
	border: 0;
	padding: 15px 2%;
	margin-top: 20px;
	border-radius: 10px;
	background-color: rgba(238, 103, 81, 1);
	color: white;
	font-size: 1.1em;
	cursor: pointer;
}

#main>.emptyProject:hover {
	background-color: rgba(187, 60, 40, 1);
}

@media (min-width: 1100px) {
	#allTemplates {
		width: 60%;
		float: left;
		margin: 20px 20% 120px 20%;
	}
}

@media (max-width: 1099px) and (min-width: 801px) {
	#allTemplates {
		width: 80%;
		float: left;
		margin: 20px 20% 60px 20%;
	}
}

@media (max-width: 800px) {
	#allTemplates {
		width: 95%;
		float: left;
		margin: 20px 2.5%;
	}
}

.template {
	text-align: left;
	float: left;
	border: 1px solid silver;
	border-radius: 5px;
	background: #fff;
	margin-bottom: 20px;
	position: relative;
}

@media (min-width: 651px) {
	.template {
		margin-right: 5%;
		width: 45%;
		padding: 2%;
	}
}

@media (max-width: 650px) and (min-width: 451px) {
	.template {
		margin-left: 15%;
		width: 70%;
		padding: 2%;
	}
}

@media (max-width: 450px) {
	.template {
		width: 100%;
		padding: 2%;
	}
}

.template:hover {
	-webkit-box-shadow: 0px 2px 8px -3px rgba(71,71,71,0.98);
	-moz-box-shadow: 0px 2px 8px -3px rgba(71,71,71,0.98);
	box-shadow: 0px 2px 8px -3px rgba(71,71,71,0.98);
}

.template>span:first-of-type {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #e0cf72;
	color: #696013;
	padding: 5px;
	border-radius: 5px;
}

.template img {
	width: 100%;
	margin-bottom: 5px;
	border-radius: 5px;
}

.template h3 {
	color: #7A7C81;
	margin-bottom: 10px;
	display: inline-block;
	border-bottom: 2px solid transparent;
}

.template h3:hover {
	color: rgba(241, 138, 122, 1);
	border-bottom: 2px solid rgba(241, 138, 122, 1);
}

.template button {
	border: 1px solid silver;
	padding: 2% 1%;
	border-radius: 5px;
	background: transparent;
	color: #333;
	font-size: 0.9em;
	cursor: pointer;
	width: 48%;
}

.template button:hover {
	background-color: #e2e2e2;
}