/*
 * StyleName:		portfolio.css
 * Email:		trung.styles@gmail.com
 *
 */

#projects {
}
#projects .projects-box {
	cursor: pointer;
	display: inline-block;
	text-align: center;
	background: #FEFEFE url(../img/loading.gif) no-repeat center center;
	width: 100%;
	height: 200px;
	min-width: 50px;
	min-height: 50px;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	position: relative;
	transition: height .3s ease;
	-moz-transition: height .3s ease;
	-webkit-transition: height .3s ease;
}
#projects .projects-box:before {
	content: "";
	opacity: 0;
	border: 1px solid #FEFEFE;
	position: absolute;
	top: 15%;
	left: 10%;
	right: 10%;
	bottom: 15%;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	box-shadow:
		0 0 5px #909090,
		inset 0 0 5px #909090;
	-moz-box-shadow:
		0 0 5px #909090,
		inset 0 0 5px #909090;
	-webkit-box-shadow:
		0 0 5px #909090,
		inset 0 0 5px #909090;
	transform: scale(0);
	-moz-transform: scale(0);
	-webkit-transform: scale(0);
	transition:
		opacity .5s ease-out,
		transform .5s ease-out;
	-moz-transition:
		opacity .5s ease-out,
		transform .5s ease-out;
	-webkit-transition:
		opacity .5s ease-out,
		transform .5s ease-out;
	z-index: 1;
}
#projects .projects-box:hover:before {
	opacity: 1;
	transform: scale(1);
	-moz-transform: scale(1);
	-webkit-transform: scale(1);
}
#projects .projects-box .projects-thumb {
	margin: auto;
	background-color: transparent;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center 0;
	width: 100%;
	height: 100%;
	border: 1px solid #CFCFCF;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	transition: background-position 2s ease;
	-moz-transition: background-position 2s ease;
	-webkit-transition: background-position 2s ease;
}
#projects .projects-box .projects-thumb:before,
#projects .projects-box .projects-thumb:after {
	content: "";
	background: rgba(0, 0, 0, .7);
	width: 50%;
	position: absolute;
	top: 80%;
	bottom: 15px;
	box-shadow: 0 15px 10px rgba(0, 0, 0, .7);
	-moz-box-shadow: 0 15px 10px rgba(0, 0, 0, .7);
	-webkit-box-shadow: 0 15px 10px rgba(0,0,0, .7);
	z-index: -1;
}
#projects .projects-box .projects-thumb:before {
	left: 10px;
	transform: rotate(-3deg);
	-moz-transform: rotate(-3deg);
	-webkit-transform: rotate(-3deg);
}
#projects .projects-box .projects-thumb:after {
	right: 10px;
	transform: rotate(3deg);
	-moz-transform: rotate(3deg);
	-webkit-transform: rotate(3deg);
}
#projects .projects-box:hover .projects-thumb {
	background-position: center 100% !important;
}
/*
#projects .projects-box .projects-thumb img {
	background: #FEFEFE url(../img/loading.gif) no-repeat center center;
	min-width: 50px;
	min-height: 50px;
}
*/
#projects .projects-box .projects-name {
	opacity: 0;
	margin: auto;
	padding: 5px;
	color: #FEFEFE;
	font-size: 18px;
	font-family: Diavlo, Tahoma, Arial, sans-serif;
	text-align: center;
	text-shadow:
		0 0 1px #909090,
		0 0 5px #010101;
	vertical-align: middle;
	width: 80%;
	height: 70%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	transform: scale(0);
	-moz-transform: scale(0);
	-webkit-transform: scale(0);
	transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	transition:
		opacity .5s ease-in-out,
		transform .5s ease-in-out;
	-moz-transition:
		opacity .5s ease-in-out,
		transform .5s ease-in-out;
	-webkit-transition:
		opacity .5s ease-in-out,
		transform .5s ease-in-out;
	-webkit-backface-visibility: hidden;
	overflow: hidden;
	z-index: 1;
}
#projects .projects-box:hover .projects-name {
	opacity: 1;
	transform: scale(1);
	-moz-transform: scale(1);
	-webkit-transform: scale(1);
}
#projects .projects-box .projects-name span {
	display: block;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
}
#projects .project-page {
	margin: 10px 0;
	color: #2196F3;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	letter-spacing: 1px;
	transition: color .2s ease-out;
	-moz-transition: color .2s ease-out;
	-webkit-transition: color .2s ease-out;
}
#projects .project-page span {
	color: #2196F3;
	transition: all .2s ease;
	-moz-transition: all .2s ease;
	-webkit-transition: all .2s ease;
}
#projects .project-page.end,
#projects .project-page.end span {
	color: #F44336;
}
#projects .project-more {
	margin: 20px auto;
	width: 50%;
	height: auto;
	transition:
		opacity .3s ease,
		z-index .3s ease;
	-moz-transition:
		opacity .3s ease,
		z-index .3s ease;
	-webkit-transition:
		opacity .3s ease,
		z-index .3s ease;
	z-index: 1;
}
#projects .project-more.end {
	display: none;
}
#projects .project-more .more-button {
    width: 100%;
    height: 120px;
}
#projects .project-more * {
	transition: none;
	-moz-transition: none;
	-webkit-transition: none;
}
#projects-main {
	display: none;
	padding: 0 0 50px;
	background: rgba(0, 0, 0, .1);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	transition: none;
	-moz-transition: none;
	-webkit-transition: none;
	z-index: 1;
}
#projects-main.show {
	display: block;
	overflow: hidden;
}
#projects-main .detail {
	display: none;
	margin: 0 auto;
	color: #FEFEFE;
	font-family: Diavlo, tahoma, arial, sans-serif;
	background: #47A3DA url(../img/noise.png);
	width: 500px;
	border: 1px solid #288BC7;
	position: absolute;
	top: 50vh;
	/* left: 37.5vw; */
	left: 0;
	right: 0;
    transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
	transition:
		width .3s ease,
		top .3s ease;
	-moz-transition:
		width .3s ease,
		top .3s ease;
	-webkit-transition:
		width .3s ease,
		top .3s ease;
	z-index: 2;
}
#projects-main.active .detail {
	width: 100%;
	border: none;
	border-bottom: 1px solid #86C3E6;
	position: fixed;
	top: 28px;
	left: 0;
	box-shadow: 0 0 10px rgba(0,  0, 0, .8);
	-moz-box-shadow: 0 0 10px rgba(0,  0, 0, .8);
	-webkit-box-shadow: 0 0 10px rgba(0,  0, 0, .8);
}
#projects-main .detail .close {
	cursor: pointer;
	font-size: 250%;
	font-family: Times, Tahoma, Arial, sans-serif;
	text-align: center;
	line-height: 30px;
	width: 30px;
	height: 30px;
	position: absolute;
	top: 5px;
	right: 5px;
	transition:
		font-size .3s ease,
		color .3s ease,
		line-height .3s ease,
		top .3s ease,
		right .3s ease;
	-moz-transition:
		font-size .3s ease,
		color .3s ease,
		line-height .3s ease,
		top .3s ease,
		right .3s ease;
	-webkit-transition:
		font-size .3s ease,
		color .3s ease,
		line-height .3s ease,
		top .3s ease,
		right .3s ease;
}
#projects-main.active .detail .close {
	font-size: 300%;
	line-height: 35px;
	top: 10px;
	right: 10px;
}
#projects-main .detail .close:hover {
	color: #E60000;
}
#projects-main .detail .name,
#projects-main .detail .link,
#projects-main .detail .build .date,
#projects-main .detail .build .contract,
#projects-main .detail .build .task {
	margin: 10px;
	padding: 0 0 0 45px;
	text-overflow: ellipsis;
	line-height: 35px;
	white-space: nowrap;
	min-height: 35px;
	overflow: hidden;
}
#projects-main.active .detail .link,
#projects-main.active .detail .build {
	display: none !important;
}
#projects-main .detail .name {
	padding: 0 10px 0 45px;
	font-size: 28px;
	background: url(../img/client.png) no-repeat;
}
#projects-main .detail .link {
	font-size: 20px;
	background: url(../img/link.png) no-repeat;
}
#projects-main .detail .build {
	border-top: 1px solid #86C3E6;
	background: #5CAEDE url(../img/noise.png);
	position: relative;
}
#projects-main .detail .build .date,
#projects-main .detail .build .contract {
	padding: 0 0 10px 45px;
	font-size: 20px;
	border-bottom: 1px solid #288BC7;
	box-shadow: 0 1px #81BDDF;
	-moz-box-shadow: 0 1px #81BDDF;
	-webkit-box-shadow: 0 1px #81BDDF;
}
#projects-main .detail .build .date {
	background: url(../img/date.png) no-repeat;
}
#projects-main .detail .build .contract {
	background: url(../img/contract.png) no-repeat;
}
#projects-main .detail .build .task {
	font-size: 20px;
	background: url(../img/task.png) no-repeat;
}
#projects-main .detail .build .tags {
	margin: 10px 10px 0;
	padding: 0 0 10px;
}
#projects-main .detail .build .tags span {
	display: inline-block;
	margin: 10px 5px;
	padding: 10px;
	font-size: 15px;
	line-height: 10px;
	background: #47A3DA url(../img/noise.png);
	border-left: 3px solid #288BC7;
}
#projects-main .detail .build .view {
	padding: 0 0 15px;
	font-size: 18px;
	text-align: center;
	line-height: 30px;
}
#projects-main .detail .build .view span {
	cursor: pointer;
	display: inline-block;
	padding: 0 0 0 45px;
	background: url(../img/view.png) no-repeat;
}
#projects-main .photos {
	margin: 0;
	text-align: center;
	background: #42A2DE url(../img/noise.png);
	width: 100%;
	height: 100%;
	position: absolute;
	top: 5000px;
	transition:
		opacity .3s ease,
		top .3s ease,
		visibility .3s ease,
		z-index .3s ease;
	-moz-transition:
		opacity .3s ease,
		top .3s ease,
		visibility .3s ease,
		z-index .3s ease;
	-webkit-transition:
		top .3s ease;
	overflow: auto;
	overflow-x: hidden;
}
#projects-main.active .photos {
	opacity: 1;
	position: relative;
	top: 55px;
	visibility: visible;
	z-index: 1;
}
#projects-main .photos .thumbnail {
	display: none;
	padding: 10px 0;
	text-align: center;
	background: #247DBA url(../img/noise.png);
	border-bottom: 1px solid #206FA5;
	box-shadow: 1px 1px #6EB8E6;
	-moz-box-shadow: 1px 1px #6EB8E6;
	-webkit-box-shadow: 1px 1px #6EB8E6;
	-webkit-overflow-scrolling: touch;
}
#projects-main.list .photos .thumbnail {
	display: block;
}
#projects-main .photos .thumbnail img {
	cursor: pointer;
	opacity: .8;
	display: inline-block;
	margin: 10px 5px;
	padding: 5px;
	background: #1C6190 url(../img/loading.gif) no-repeat center center;
	min-width: 50px;
	min-height: 50px;
	width: auto;
	height: auto;
	max-width: 100px;
	max-height: 100px;
	box-shadow:
		inset 0px 1px 0px #144566,
		0px 1px 0px #3997D9;
	-moz-box-shadow:
		inset 0px 1px 0px #144566,
		0px 1px 0px #3997D9;
	-webkit-box-shadow:
		inset 0px 1px 0px #144566,
		0px 1px 0px #3997D9;
	transition: opacity .3s ease;
	-moz-transition: opacity .3s ease;
	-webkit-transition: opacity .3s ease;
}
#projects-main .photos .thumbnail img:hover {
	opacity: 1;
}
#projects-main .photos .link {
	cursor: pointer;
	display: inline-block;
	margin: 20px 0 5px;
	padding: 10px 20px;
	color: #FEFEFE;
	font-size: 16px;
	text-shadow: 1px 1px 3px #226DA2;
	background: #247DBA url(../img/noise.png);
	border-bottom: 1px solid #206FA5;
	box-shadow: 1px 1px #6EB8E6;
	-moz-box-shadow: 1px 1px #6EB8E6;
	-webkit-box-shadow: 1px 1px #6EB8E6;
}
#projects-main .photos .link:hover {
	background-color: #206FA5;
}
#projects-main .photos .picture {
	margin: 0 auto 5px;
	padding: 10px;
	text-align: center;
	width: 100%;
	/* height: 95%; */
	transition: height .3s ease;
	-moz-transition: height .3s ease;
	-webkit-transition: height .3s ease;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
#projects-main.list .photos .picture {
	width: 80%;
	height: 75%;
}
#projects-main .photos .picture.active {
	width: auto;
	height: auto;
}
#projects-main .photos .picture img {
	padding: 1px;
	background: #FEFEFE url(../img/loading.gif) no-repeat center center;
	min-width: 50px;
	min-height: 50px;
	max-width: 100%;
	border: 1px solid #606060;
}
#projects-main .photos .picture:not(.active) img {
	cursor: zoom-in;
	max-height: 100%;
	transition:
		max-width .3s ease,
		max-height .3s ease;
	-moz-transition:
		max-width .3s ease,
		max-height .3s ease;
	-webkit-transition:
		max-width .3s ease,
		max-height .3s ease;
}
#projects-main .photos .picture.active img {
	cursor: zoom-out;
	max-height: initial;
}