/*body {*/
/*	background-color: #aeaeae;*/
/*	background-image: none;*/
/*	margin: 0 auto;*/
/*}*/

.loop .tg-certificate-container

.header, .footer,
.wrap-header, .wrap-footer,
.site-header, .site-footer,
.nav-primary, .primary-nav {
	display: none;
}

.tg-certificate-container h1:first-child {
	text-align: center;
}

.tg-print-certificate {
	margin-top: 40px;
	text-align: center;
	margin-bottom: 50px;
}

.tg-print-certificate form {
	display: inline;
}

.tg-certificate-container {

	/*margin: 0 auto;*/
	/*margin-top: 50px;*/
	padding: 0;
	overflow: hidden;
}

.tg-certificate-container .certificate-background {
	position: relative;
	z-index: 1;
	width: 100%;
	display: block;
}

.tg-certificate-container .tg_certificate,
.tg-certificate-container .tg_my_certificate {
	margin: 80px;
	position: relative;
	z-index: 2;
}

button {
	color: #ffffff;
	border-color: #0274be;
	background-color: #0274be;
	border-radius: 2px;
	padding-top: 10px;
	padding-right: 40px;
	padding-bottom: 10px;
	padding-left: 40px;
	font-family: inherit;
	font-weight: inherit;
}

@media print {
	@page {
		size: auto;
	}

	.no-print {
		display: none;
	}

	/* Make everything on the page invisible */
	body * {
		visibility: hidden !important;
		/*background: #fff none;*/
	}

	.site, .site-content {
		overflow: visible;
	}

	/* remove all headers, menus and footers */
	header, aside, nav, footer {
		display: none !important;
	}

	/* make sure a .container parent doesn't shif the certificate see: https://github.com/gocodebox/teachground/issues/1163 */
	.single-tg_certificate .container {
		width: 100%;
	}

	/* make only the certificate container and its children visible */
	.tg-certificate-container, .tg-certificate-container * {
		visibility: visible !important;
	}

	/* position certificate absolutely and center horizontally */
	.tg-certificate-container {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		margin: 0 auto;
	}
}

.tg_button-fill {
	text-align: center;
	background: #ccc;
	display: inline-block;
	position: relative;
	text-transform: uppercase;
	border-radius: 8px;
	/*margin: 25px;*/
}
.tg_button-fill.grey {
	background: #445561;
	color: white;
}
.tg_button-fill.orange {
	background: #f26b43;
	color: #fff;
}
.tg_button-fill.orange .tg_button-inside {
	color: #f26b43;
}
.tg_button-fill.orange .tg_button-inside.full {
	border: 1px solid #f26b43;
}
.tg_button-text {
	padding: 0 5px;
	line-height: 22px;
	font-size: 14px;
	letter-spacing: 0.1em;
}
.tg_button-inside {
	width: 0px;
	height: 54px;
	margin: 0;
	float: left;
	position: absolute;
	top: 1px;
	left: 50%;
	line-height: 54px;
	color: #445561;
	background: #fff;
	text-align: center;
	overflow: hidden;
	-webkit-transition: width 0.5s, left 0.5s, margin 0.5s;
	-moz-transition: width 0.5s, left 0.5s, margin 0.5s;
	-o-transition: width 0.5s, left 0.5s, margin 0.5s;
	transition: width 0.5s, left 0.5s, margin 0.5s;
}
.tg_button-inside.tg_full {
	width: 100%;
	left: 0%;
	top: 0;
	margin-right: -50px;
	border: 1px solid #445561;
}
.tg_inside-text {
	text-align: center;
	position: absolute;
	right: 50%;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	-webkit-transform: translateX(50%);
	-moz-transform: translateX(50%);
	-ms-transform: translateX(50%);
	transform: translateX(50%);
}

.tg-loader{
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 2s linear infinite;
	margin: 0px auto;
	position: absolute;
	top: 50%;
	left: 50%;
	/*transform: translate(-50%, -50%);*/
	z-index: 1000;
}

.tg_loader_wrapp{
	display: none;
	width: 100%;
	height: 100%;
	background-color: #80808063;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	overflow: hidden;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Certificate cards */


a.tg_card_button.btn {
	background: #0096a0;
	border-radius: 4px;
	box-shadow: 0 2px 0px 0 rgba(0, 0, 0, 0.25);
	color: #ffffff;
	display: inline-block;
	padding: 6px 30px 8px;
	position: relative;
	text-decoration: none;
	-webkit-transition: all 0.1s 0s ease-out;
	transition: all 0.1s 0s ease-out;
}
.no-touch a.tg_card_button.btn:hover {
	background: #00a2ad;
	box-shadow: 0px 8px 2px 0 rgba(0, 0, 0, 0.075);
	-webkit-transform: translateY(-2px);
	transform: translateY(-2px);
	-webkit-transition: all 0.25s 0s ease-out;
	transition: all 0.25s 0s ease-out;
}
.no-touch a.tg_card_button.btn:active,
a.tg_card_button.btn:active {
	background: #008a93;
	box-shadow: 0 1px 0px 0 rgba(255, 255, 255, 0.25);
	-webkit-transform: translate3d(0, 1px, 0);
	transform: translate3d(0, 1px, 0);
	-webkit-transition: all 0.025s 0s ease-out;
	transition: all 0.025s 0s ease-out;
}
div.tg_tg_cards {
	margin: 80px auto;
	max-width: 960px;
	text-align: center;
}
div.tg_card {
	background: #ffffff;
	display: inline-block;
	margin: 8px;
	max-width: 300px;
	position: relative;
	text-align: left;
	-webkit-transition: all 0.3s 0s ease-in;
	transition: all 0.3s 0s ease-in;
	width: 300px;
	z-index: 1;
}
div.tg_card img {
	max-width: 300px;
}
div.tg_card .tg_card__image-holder {
	background: #ffffff;
	/*height: 0;*/
	/*padding-bottom: 75%;*/
}
div.tg_card div.tg_card-title {
	/*background: #ffffff;*/
	padding: 6px 15px 10px;
	position: relative;
	z-index: 0;
}
div.tg_card div.tg_card-title a.toggle-info {
	border-radius: 32px;
	height: 32px;
	padding: 0;
	position: absolute;
	right: 15px;
	top: 10px;
	width: 32px;
}
div.tg_card div.tg_card-title a.toggle-info span {
	background: #ffffff;
	display: block;
	height: 2px;
	position: absolute;
	top: 16px;
	-webkit-transition: all 0.15s 0s ease-out;
	transition: all 0.15s 0s ease-out;
	width: 12px;
}
div.tg_card div.tg_card-title a.toggle-info span.left {
	right: 14px;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}
div.tg_card div.tg_card-title a.toggle-info span.right {
	left: 14px;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
div.tg_card div.tg_card-title h2 {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.05em;
	margin: 0;
	padding: 0;
}
div.tg_card div.tg_card-title h2 small {
	display: block;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.025em;
}
div.tg_card div.tg_card-description {
	padding: 0 15px 10px;
	position: relative;
	font-size: 14px;
}
div.tg_card div.tg_card-actions {
	box-shadow: 0 2px 0px 0 rgba(0, 0, 0, 0.075);
	padding: 10px 15px 20px;
	text-align: center;
}
div.tg_card div.tg_card-flap {
	background: #d9d9d9;
	position: absolute;
	width: 100%;
	-webkit-transform-origin: top;
	transform-origin: top;
	-webkit-transform: rotateX(-90deg);
	transform: rotateX(-90deg);
}
div.tg_card div.flap1 {
	-webkit-transition: all 0.3s 0.3s ease-out;
	transition: all 0.3s 0.3s ease-out;
	z-index: -1;
}
div.tg_card div.flap2 {
	-webkit-transition: all 0.3s 0s ease-out;
	transition: all 0.3s 0s ease-out;
	z-index: -2;
}
div.tg_cards.showing div.tg_card {
	cursor: pointer;
	opacity: 0.6;
	-webkit-transform: scale(0.88);
	transform: scale(0.88);
}
.no-touch div.tg_cards.showing div.tg_card:hover {
	opacity: 0.94;
	-webkit-transform: scale(0.92);
	transform: scale(0.92);
}
div.tg_card.show {
	opacity: 1 !important;
	-webkit-transform: scale(1) !important;
	transform: scale(1) !important;
}
div.tg_card.show div.tg_card-title a.toggle-info {
	background: #ff6666 !important;
}
div.tg_card.show div.tg_card-title a.toggle-info span {
	top: 15px;
}
div.tg_card.show div.tg_card-title a.toggle-info span.left {
	right: 10px;
}
div.tg_card.show div.tg_card-title a.toggle-info span.right {
	left: 10px;
}
div.tg_card.show div.tg_card-flap {
	background: #ffffff;
	-webkit-transform: rotateX(0deg);
	transform: rotateX(0deg);
}
div.tg_card.show div.flap1 {
	-webkit-transition: all 0.3s 0s ease-out;
	transition: all 0.3s 0s ease-out;
}
div.tg_card.show div.flap2 {
	-webkit-transition: all 0.3s 0.2s ease-out;
	transition: all 0.3s 0.2s ease-out;
}

