@font-face {
	font-family: 'anyoldicon';

}

/* General grid styles */
.cbp-ig-grid {
	list-style: none;
	padding: 0 0 50px 0;
	margin-bottom: 0px;
	margin-left: 0;
	margin-right: 0;
	margin-top: 0;
}

/* Clear floats */
.cbp-ig-grid:before, 
.cbp-ig-grid:after { 
	content: " "; 
	display: table; 
}

.cbp-ig-grid:after { 
	clear: both; 
}

/* grid item */
.cbp-ig-grid li {
	width: 50%;
	float: left;
	height: 420px;
	text-align: center;
	border-top: 0px solid #ddd;
}

/* we are using a combination of borders and box shadows to control the grid lines */
.cbp-ig-grid li:nth-child(-n+3){
	border-top: none;
}

/*.cbp-ig-grid li:nth-child(3n-2),*/
.cbp-ig-grid li:nth-child(3n-2) {
	box-shadow: 0px 0 0 #ddd;
	
}

/* anchor style */
.cbp-ig-grid li > a {
	display: block;
	height: 100%;
	color: #006793;
	-webkit-transition: background 0.2s;
	-moz-transition: background 0.2s;
	transition: background 0.2s;
	
	transition: border-color .5s ease-in-out;
	transition: border .2s ease-in-out;
    -webkit-transition: border .2s ease-in-out;
    -moz-transition: border .2s ease-in-out;
	border-radius: 180px;
	margin-bottom: 0px;
}

/* the icon with pseudo class for icon font */
.cbp-ig-icon {
	display: block;
	-webkit-transition: -webkit-transform 0.9s;
	transition: -moz-transform 0.9s;
	transition: transform 0.9s;
	padding-bottom: 0;
	padding-left: 0;
	padding-right: 0;
	padding-top: 70px;
	position:relative;
	z-index:2;
}

/*copy of the one above but made for toast class*/
.cbp-ig-iconT {
	display: block;
	-webkit-transition: -webkit-transform 0.6s;
	transition: -moz-transform 0.6s;
	transition: transform 0.6s;
	padding-bottom: 0px;
	padding-left: 0;
	padding-right: 0;
	padding-top: 0px;
	top: 0px;
	margin-top: -112px;
	position:relative;
	z-index:1;
	
}


/*toaster parts*/
.cbp-ig-icon-toaster:before {
	content: url(../fonts/toaster.svg);

}

/*toast parts*/
.cbp-ig-icon-toastT:before {
	content: url(../fonts/toast.svg);

}


/* title TEXT element */
.cbp-ig-grid .cbp-ig-title {
	margin: 20px 0 0px 0;
	padding: 2px 0 0 0;
	font-size: 2em;
	position: relative;
	-webkit-transition: -webkit-transform 0.2s;
	-moz-transition: -moz-transform 0.2s;
	transition: transform 0.2s;
}

/*hard line befor rollover*/
.cbp-ig-grid .cbp-ig-title:before {
	content: '';
	position: absolute;
	background: #e07800;
	width: 160px;
	height: 2px;

	left: 50%;
	margin: -10px 0 0 -80px;
	-webkit-transition: margin-top 0.2s; /* top or translate does not seem to work in Firefox */
	-moz-transition: margin-top 0.2s;
	transition: margin-top 0.2s;
}

/*little text title*/
.cbp-ig-grid .cbp-ig-category {
	text-transform: uppercase;
	display: inline-block;
	padding-top: 65px;
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 1px;
	color: #f29400;
	-webkit-transform: translateY(10px);
	-moz-transform: -moz-translateY(10px);
	-ms-transform: -ms-translateY(10px);
	transform: translateY(10px);
	opacity: 0;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.2s;
	-moz-transition: -moz-transform 0.3s, opacity 0.2s;
	-webkit-transition: transform 0.3s, opacity 0.2s;
	text-shadow: 0px 2px 2px #005593
}

.cbp-ig-grid li:hover .cbp-ig-category,
.touch .cbp-ig-grid li .cbp-ig-category {
	opacity: 1;
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	-ms-transform: translateY(0px);
	transform: translateY(0px);
}

/* Button Hover styles */
.cbp-ig-grid li > a:hover {
	background: #47a3da;
}

/*toaster icon change the translate*/
.cbp-ig-grid li > a:hover .cbp-ig-icon {
	-webkit-transform: translateY(-30px);
	-moz-transform: translateY(-30px);
	-ms-transform: translateY(-30px);
	transform: translateY(-30px);

}

/*copy of the one above*/
.cbp-ig-grid li > a:hover .cbp-ig-iconT {
	-webkit-transform: translateY(-95px);
	-moz-transform: translateY(-95px);
	-ms-transform: translateY(-95px);
	transform: translateY(-95px);

}



/*resume text*/
.cbp-ig-grid li > a:hover .cbp-ig-icon:before,
.cbp-ig-grid li > a:hover .cbp-ig-title {
	color: #f29400;
	text-shadow: 0px 1px 3px #005593;
}

.cbp-ig-grid li > a:hover .cbp-ig-title {
	-webkit-transform: translateY(-30px);
	-moz-transform: translateY(-30px);
	-ms-transform: translateY(-30px);
	transform: translateY(-30px);
}

/*line after hover*/
.cbp-ig-grid li > a:hover .cbp-ig-title:before {
	visibility:hidden;
/*	background: #009ee0;
	margin-top: 80px;*/
}


@media screen and (max-width: 62.75em) {
	.cbp-ig-grid li {
		width: 50%;
	}

	/* reset the grid lines */
	.cbp-ig-grid li:nth-child(-n+3){
		border-top: 0px solid #ddd;
	}

	.cbp-ig-grid li:nth-child(3n-1),
	.cbp-ig-grid li:nth-child(3n-2) {
		box-shadow: none;
	}

	.cbp-ig-grid li:nth-child(-n+2){
		border-top: none;
	}

	.cbp-ig-grid li:nth-child(2n-1) {
		box-shadow: 0px 0 0 #ddd;
	}
}

@media screen and (max-width: 41.6em) { 
	.cbp-ig-grid li {
		width: 100%;
	}

	.cbp-ig-grid li:nth-child(-n+2){
		border-top: 0px solid #ddd;
	}

	.cbp-ig-grid li:nth-child(2n-1) {
		box-shadow: none
	}

	.cbp-ig-grid li:first-child {
		border-top: none;
	}
}

@media screen and (max-width: 25em) { 
	.cbp-ig-grid {
		font-size: 80%;
	}

	.cbp-ig-grid .cbp-ig-category {
		margin-top: 20px;
	}
}
