/**
 * THX38 styles...
 *
 * Note: it expects mp6 plugin to be active as this is based on that design of the admin.
 */
#themes {
	padding: 20px 0 100px;
}
#appearance h2 .button {
	margin-left: 20px;
}
.theme-count {
	color: #999;
	font-weight: 300;
	margin-left: 10px;
}
/* Position admin messages */
#appearance div.updated {
	margin: 15px 0 0px;
}
#appearance div.updated a {
	text-decoration: underline;
}
/**
 * Main theme element
 * (has flexible margins)
 */
.theme {
	cursor: pointer;
	float: left;
	margin: 0 5% 4% 0;
	position: relative;
	width: 30%;

	border: 1px solid #dedede;
	-webkit-box-shadow: 0px 1px 1px -1px rgba(0,0,0,0.1);
	box-shadow: 0px 1px 1px -1px rgba(0,0,0,0.1);
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.theme:nth-child(3n) {
	margin-right: 0;
}

.theme:hover,
.theme:focus {
	cursor: pointer;
}

.theme .theme-name {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	padding: 15px;
	background: #fff;
	background: rgba(255,255,255,0.65);
	box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}


/* Activate and Customize buttons, shown on hover */
.theme .theme-actions {
	opacity: 0;
	transition: opacity 0.1s ease-in-out;
	position: absolute;
		bottom: 0px;
		right: 0px;
	height: 38px;
	padding: 9px 10px 0 10px;
	background: rgba(244, 244, 244, 0.7);
	border-left: 1px solid rgba(0,0,0,0.05);
}
.theme:hover .theme-actions {
	opacity: 1;
}


/*
 * Theme Screenshot
 *
 * Has a fixed aspect ratio of 1.5 to 1 regardless of screenshot size
 * It is also responsive.
 */
.theme .theme-screenshot {
	display: block;
	overflow: hidden;
	position: relative;
	transition: opacity 0.2s ease-in-out;
}
.theme .theme-screenshot:after {
	content: '';
	display: block;
	padding-top: 66%; /* using a 3/2 aspect ratio */
}
.theme .theme-screenshot img {
	height: auto;
	position: absolute;
		left: 0;
		top: 0;
	width: 100%;
	-webkit-transform: translateZ( 0 ); /* Prevents rendering bugs in Chrome */
	transition: opacity 0.2s ease-in-out;
}

.theme:after {
	display: block;
	opacity: 0;
	content: '\f179';
	-webkit-font-smoothing: antialiased;
	font: normal 64px/1 'dashicons';
	vertical-align: middle;
	text-align: center;
	color: #000;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding-top: 24%;
	text-shadow: 0 1px 20px rgba(255,255,255,0.9);
	transition: opacity 0.2s ease-in-out;
}
.theme:hover:after {
	opacity: 0.6;
}

.theme:hover .theme-screenshot {
	background: #fff;
}
.theme:hover .theme-screenshot img {
	opacity: 0.4;
}
/*
 * Displays a theme update notice
 * when an update is available
 */
.theme .theme-update {
	background: #d54e21;
	background: rgba(213, 78, 33, 0.95);
	color: #fff;
	display: block;
	font-size: 14px;
	font-weight: 300;
	height: 48px;
	line-height: 48px;
	padding: 0 10px;
	position: absolute;
		top: 0;
		right: 0;
		left: 0;
	border-bottom: 1px solid rgba(0,0,0,0.25);
	overflow: hidden;
}
.theme .theme-update:before {
	content: '\f113';
	display: inline-block;
	font: normal 24px/1 'dashicons';
	margin: 0 4px 0 0;
	position: relative;
		top: 6px;
	speak: none;
	-webkit-font-smoothing: antialiased;
}


/*
 * The currently active theme
 * is highlighted using the WP blue.
 * @todo use MP6 highlight color
 */
.theme.active {
}
.theme.active .theme-screenshot {
}
.theme.active .theme-name {
	/* default blue background: #0074a2; */
	background: #333;
	color: #fff;
	box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
}
.theme.active .theme-actions {
	bottom: 48px;
	left: 0;
	background: rgba(0,0,0,0.7);
	opacity: 1;
	line-height: 29px;
}
.theme.active .theme-actions .button {
	float: right;
}
.theme.active .current-label {
	font-size: 14px;
	font-weight: 300;
	color: #fff;
}


/*
 * Experiment: allows to scroll through the whole theme
 * If a theme includes the whole page, it could be a neat detail.
 */
.theme.active .theme-screenshot {
}


/*
 * Add new theme
 */
.add-new {
	border: none;
	box-shadow: none;
}
.add-new a {
	color: #999;
	text-decoration: none;
	display: block;
	position: relative;
	z-index: 2000;
}
.theme.add-new:after {
	display: block;
	opacity: 1;
	background: rgba(0, 0, 0, 0);
	content: '\f132';
	-webkit-font-smoothing: antialiased;
	font: normal 13vw/1 'dashicons';
	vertical-align: middle;
	text-align: center;
	color: rgba(0, 0, 0, 0.3);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10% 0 0 0;
	text-shadow: none;
	transition: opacity 0.2s ease-in-out;
	border: 5px dotted rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	box-sizing: border-box;
}
.theme.add-new:hover .theme-screenshot {
	background: none;
}

.theme.add-new:hover:after {
	color: #fff;
	background: rgb(16, 116, 162);
	text-shadow: 0 2px 1px rgba(0,0,0,0.3);
}

.add-new .theme-name {
	background: none;
	text-align: center;
	box-shadow: none;
	font-weight: 400;
	position: relative;
	top: -10px;
	z-index: 1000;
}
.add-new:hover .theme-name {
	color: #fff;
}


/*
 * The search form
 */
.search-form {
	position: absolute;
		right: 20px;
		top: 20px;
}
#theme-search {
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	margin-left: 20px;
}


/*
 * Theme Overlay
 * Shown when clicking a theme
 */
#theme-overlay {
}
#theme-overlay .theme-backdrop {
	position: absolute;
	left: -20px;
	right: 0;
	top: 0;
	bottom: 0;
	background: rgba( 238, 238, 238, 0.8 );
	/* background: rgba(0,0,0,0.7); */
}
body.theme-overlay {
	overflow: hidden;
}
body.theme-overlay #appearance h2,
body.theme-overlay .search-form,
body.theme-overlay #themes .theme {
	-webkit-filter: blur(3px);
}

#theme-overlay .back {
	background: #f8f8f8;
	cursor: pointer;
	height: 48px;
	line-height: 70px;
	position: absolute;
		right: 3px;
		top: 3px;
	border-radius: 1px;
	text-align: center;
	width: 50px;
}
#theme-overlay .back:hover {
	background: #333;
}
#theme-overlay .back:hover:before {
	color: #fff;
}
#theme-overlay .back:before {
	font: normal 30px/1 'dashicons' !important;
	color: #bbb;
	display: inline-block;
	content:'\f158';
	font-weight: 300;
}

#theme-overlay .theme-wrap {
	clear: both;
	position: fixed;
	top: 120px;
	left: 190px;
	right: 40px;
	bottom: 80px;
	overflow: auto;
	background: #fff;
	padding: 40px 40px 110px 40px;
	box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0,0,0,0.1);
}
#theme-overlay .theme-wrap:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

#theme-overlay .theme-actions {
	position: fixed;
	text-align: center;
	bottom: 80px;
	left: 190px;
	right: 40px;
	padding: 20px 25px;
	background: rgba(243, 243, 243 ,0.9);
	border-top: 1px solid rgba(0,0,0,0.1);
}
#theme-overlay .theme-actions a {
	margin-right: 5px;
	font-size: 16px;
	line-height: 37px;
	height: 37px;
	padding: 0 20px 1px 20px;
}
#theme-overlay .theme-actions .delete-theme {
	color: #888;
	font-size: 14px;
	padding: 0 10px;
	position: absolute;
		right: 10px;
		bottom: 20px;
	text-decoration: none;
}
#theme-overlay .theme-actions .delete-theme:hover {
	background: #d54e21;
	color: #fff;
}

#theme-overlay .theme-actions .active-theme,
#theme-overlay.active .theme-actions .inactive-theme {
	display: none;
}
#theme-overlay .theme-actions .inactive-theme,
#theme-overlay.active .theme-actions .active-theme {
	display: block;
}
/*
 * Theme Screenshots gallery
 */
#theme-overlay .theme-screenshots {
	float: left;
	margin: 0 30px 0 0;
	width: 55%;
	text-align: center;
}
/* First screenshot, shown big */
#theme-overlay .screenshot {
	background: #000;
	border: 1px solid #fff;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	overflow: hidden;
	position: relative;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}
#theme-overlay .screenshot:after {
	content: '';
	display: block;
	padding-top: 66.66666%; /* using a 3/2 aspect ratio */
}
#theme-overlay .screenshot img {
	cursor: pointer;
	height: auto;
	position: absolute;
		left: 0;
		top: 0;
	width: 100%;
}
/* Other screenshots, shown small and square */
#theme-overlay .screenshot.thumb {
	background: #ccc;
	border: 1px solid #eee;
	float: none;
	display: inline-block;
	margin: 10px 5px 0;
	width: 40px;
	height: 40px;
}
#theme-overlay .screenshot.thumb:after {
	content: '';
	display: block;
	padding-top: 100%; /* using a 1/1 aspect ratio */
}
#theme-overlay .screenshot.thumb img {
	cursor: pointer;
	height: auto;
	position: absolute;
		left: -25%;
		top: 0;
	height: 100%;
	width: auto;
}
#theme-overlay .screenshot.selected {
	background: transparent;
	border: 2px solid #2ea2cc;
}
#theme-overlay .screenshot.selected img {
	opacity: 0.8;
}
/*
 * Theme heading information
 */
#theme-overlay .theme-info {
	width: 40%;
	float: left;
}
#theme-overlay .theme-name {
	color: #222;
	font-size: 32px;
	font-weight: 100;
	margin: 10px 0 0;
	line-height: 1.3;
}
#theme-overlay .theme-version {
	background: #333;
	color: #fff;
	font-size: 13px;
	float: none;
	display: inline-block;
	padding: 4px 8px;
	border-radius: 20px;
	margin-left: 10px;
	position: relative;
		top: -7px;
}
#theme-overlay .theme-author {
	color: #686868;
	font-size: 16px;
	font-weight: 300;
	margin: 15px 0 25px;
}
#theme-overlay .theme-author a {
	text-decoration: none;
}
#theme-overlay .theme-description {
	color: #555;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	margin: 30px 0 0 0;
}
#theme-overlay .theme-actions {
}
/* Theme Updates info */
#theme-overlay .theme-update-message {
	background: #fefaf7;
	border: 1px solid #fcf3ef;
	border-radius: 3px;
	padding: 5px 20px 10px;
}
#theme-overlay .theme-update {
	color: #d54e21;
	font-size: 18px;
	display: inline-block;
	line-height: 40px;
	margin: 0;
}


/**
 * Theme Browser...
 *
 *
 */
.theme-categories {
	background: #fbfbfb;
	border: 1px solid #dedede;
	box-shadow: 0px 1px 1px -1px rgba(0,0,0,0.1);
	color: #999;
	display: inline-block;
	font-size: 13px;
	margin: 20px 0 30px;
	padding: 15px 20px;
}
.theme-categories a {
	color: #999;
	margin: 0 5px;
	text-decoration: none;
}
.theme-categories a.current {
	border-bottom: 2px solid #555;
	color: #555;
	font-weight: 800;
}
.theme-linear-grid {
	border-bottom: 3px solid #ddd;
	margin: 0 0 30px;
	overflow-x: hidden;
	padding-bottom: 20px;
	position: relative;
}
.theme-linear-grid .theme-section {
	margin: 0 0 20px;
}
.theme-linear-grid .themes {
	position: relative;
	white-space: nowrap;
}
.theme-linear-grid .theme {
	float: none;
	display: inline-block;
	margin: 0 2.4% 0 0;
}
.theme-linear-grid .show-more-themes {
	background: rgba(0,0,0,0.8);
	color: #eee;
	display: none;
	width: 80px;
	height: 100%;
	position: absolute;
		right: 0;
		top: 0;
}


/**
 * Basic Responsive structure...
 *
 * Shuffles theme columns around based on screen width
 */

@media ( max-width: 900px ) {
	.theme {
		width: 47.5%;
		margin-right: 0;
	}
	.theme:nth-child(even) {
		margin-right: 0;
	}
	.theme:nth-child(odd) {
		margin-right: 5%;
	}
	.theme.add-new:after {
		font-size: 23vw;
	}
	#theme-overlay .theme-wrap,
	#theme-overlay .theme-actions {
		left: 76px;
	}
}
@media ( max-width: 780px ) {
	#theme-overlay .theme-wrap {
		top: 46px;
		right: 0px;
		bottom: 0px;
		left: 0px;
	}
	#theme-overlay .theme-actions {
		right: 0px;
		bottom: 0px;
		left: 0px;
		text-align: left;
	}
	#theme-overlay .theme-screenshots {
		width: 40%;
	}
	#theme-overlay .theme-info {
		width: 50%;
	}
}
@media ( max-width: 440px ) {
	.theme {
		width: 100%;
		margin-right: 0;
	}
	.theme:nth-child(2n),
	.theme:nth-child(3n) {
		margin-right: 0;
	}
	.theme.add-new:after {
		font-size: 53vw;
	}
	#theme-overlay .theme-update,
	#theme-overlay .theme-description {
		margin-left: -100%;
	}
	#theme-overlay.active .theme-actions .active-theme .button:nth-child(3n) {
		display: none;
	}
}