@font-face {
	font-family: 'Wremena';
	src: url('fonts/Wremena_Regular.woff') format('woff2');
}

body {
  background-image: url("../images/bg/fieldbg.gif");
  background-position-y: 80px;
  font-family: 'Wremena', "Times New Roman", Times, serif;
}

#header {
	margin: 40px auto 0;
	padding: 0 18px;
	color: #ffffff;
	text-shadow: 0px 0px 10px #ff0000, 0px 0px 6px #ff0000, 0px 0px 3px #ff0000;
	text-align: center;
}

#header h1 {
	margin-bottom: 18px;
	font-size: 26px;
	font-weight: normal;
}

#header nav ul li {
	margin-bottom: 8px;
	margin-right: 14px;
	display: inline-block;
	font-size: 16px;
	color: #ffffff;
	cursor: pointer;
}

#header nav ul li,
#header nav ul li a {
	text-decoration: none;
	color: inherit;
}

#header nav ul li.active,
#header nav ul li.active a {
	text-decoration: underline;
}

#content {
	right: 0px;
}

#projects {
	margin-top: 40px;
	padding: 0 12px;
	overflow: hidden;
}

#projects ul li {
	width: 50%;
	margin-bottom: 12px;
	position: relative;
	box-sizing: border-box;
	display: block;
	float: left;
}

#projects ul li:nth-child(odd) {
	padding: 0 6px 0 0;

}

#projects ul li:nth-child(even) {
	padding: 0 0 0 6px;
}

#projects ul li img {
	width: 100%;
	cursor: pointer;
	box-shadow: 0px 0px 10px rgba(0,0,255,0.8), 0px 0px 3px rgba(0,0,255,0.4);
	vertical-align: top;
	/*z-index: 1;*/
}

#projects ul li .title {
	top: 7px;
	left: 7px;
	right: 7px;
	position: absolute;
	color: #ffffff;
	font: italic 40px "Helvetica Neue", Helvetica, sans-serif;
	text-shadow: 0px 0px 10px #00ff00, 0px 0px 6px #00ff00, 0px 0px 3px #00ff00;
	text-transform: uppercase;
	text-decoration: none;
	font-weight: 500;
	line-height: 35px;
	word-wrap: break-word;
	/*z-index: 2;*/
}

#projects ul li:nth-child(odd) .title {
	right: 13px;
}

#projects ul li:nth-child(even) .title {
	left: 13px;
}

#project {
	top: 0;
	left: 0;
	right: 0;
	min-height: 100%;
	padding: 0 20px;
	position: absolute;
	background: #ffffff;
	box-shadow: 0px 0px 80px rgba(0,0,0,0.9), 0px 0px 12px rgba(0,0,0,0.8);
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	display: none;
	z-index: 2000;
}

#project #close_icon {
	width: 40px;
	height: 40px;
	margin: 10px auto;
	background: #000000 url('../images/close.gif') no-repeat center center;
	background-size: auto, 80%;
	cursor: pointer;
}

#project h3 {
	width: 100%;
	margin-bottom: 20px;
	color: blue;
	font: italic 40px "Helvetica Neue", Helvetica, sans-serif;
	text-shadow: 0px 0px 10px #00ff00, 0px 0px 6px #00ff00, 0px 0px 3px #00ff00;
	text-transform: uppercase;
	font-weight: 500;
	line-height: 1;
	word-wrap: break-word;
	font-size: 42px;
	float: left;
}

#project .text {
	margin-bottom: 20px;
}

#project img {
	width: 100%;
	margin: 10px 0;
}

@media (min-width: 520px) {
	#projects ul li {
		width: 33.333%;
	}

	#projects ul li:nth-child(3n+1) {
		padding: 0 8px 0 0;
	}

	#projects ul li:nth-child(3n+2) {
		padding: 0 4px 0;
	}

	#projects ul li:nth-child(3n+3) {
		padding: 0 0 0 8px;
	}

	#projects ul li:nth-child(3n+1) .title {
		left: 7px;
		right: 15px;
	}

	#projects ul li:nth-child(3n+2) .title {
		left: 11px;
		right: 11px;
	}

	#projects ul li:nth-child(3n+3) .title {
		left: 15px;
		right: 7px;
	}

	#project #close_icon {
		margin: 5px 0 10px 0;
	}

	#project h3 {
		width: 40%;
		padding: 0 10px 0 0;
		box-sizing: border-box;
		float: left;
	}

	#project .text {
		width: 60%;
		padding: 0 0 0 10px;
		box-sizing: border-box;
		float: right;
	}


}

@media (min-width: 768px) {
	body {
		background-position-y: 0px;
	}

	#header {
		top: 20px;
		left: 20px;
		margin: 20px 0 0;
		position: absolute;
		text-align: left;
		z-index: 100;
	}

	#content {
		right: 0px;
		bottom: 0px;
		overflow: hidden;
	}

	#projects ul li {
		width: 200px;
		position: absolute;
		padding: 0 !important;
		box-shadow: 0px 0px 40px rgba(0,0,255,0.8), 0px 0px 8px rgba(0,0,255,0.4);
	}

	#projects ul li.ui-draggable,
	#projects ul li.ui-draggable img {
		cursor: pointer;
	}

	#projects ul li.ui-draggable-dragging,
	#projects ul li.ui-draggable-dragging img {
		cursor: grabbing;
	}

	#project {
		left: auto;
		bottom: 0;
		width: 650px;
	}
}
