/* ----------------------------------------------------------------
	Canvas: Recipes
	Version: 1.0
-----------------------------------------------------------------*/


.categories {
	position: relative;
	float: left;
	overflow: hidden;
	width: calc(50% - 20px);
	height: 80px;
	margin: 10px;
	background-size: cover;
	background-position: center center;
	border-radius: 20px;
	transition: all 0.5s cubic-bezier(.02, .01, .5, 1);
}

.categories:after {
	position: absolute;
	display: block;
	content: '';
	left: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background-color: rgba(0,0,0,0.2);
}

.device-xs .categories { width: 100%; }

.categories .categories-details {
	position: absolute;
	display: flex;
	left: 50%;
	top: 50%;
	bottom: auto;
	z-index: 2;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 1px;
	transform: translate(-50%, -50%);
}

.categories .categories-details .icon {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 40px;
	max-width: 40px;
	height: 40px;
	border-radius: 100%;
	background-color: #FFF;
	padding: 8px;
	color: #000;
	transform: rotate(0deg);
	transition: transform .5s ease-out;
}

.categories:hover .categories-details .icon { transform: rotate(360deg); }

.categories .categories-details .info {
	display: flex;
	align-items: center;
	justify-content: center;
	align-items: center;
	color: #FFF;
	padding-left: 10px;
	font-size: 18px;
	text-align: center;
}

.categories:hover .categories-details .info {
	writing-mode: horizontal-tb;
	text-orientation: mixed;
	transform: rotate(0);
}

/* Responsive Device more than 992px (.device-md >)
-----------------------------------------------------------------*/
@media (min-width: 992px) {

	.categories-lists {
		display: flex;
		align-items: stretch;
	}

	.categories {
		float: none;
		width: 60px;
		min-width: 60px;
		height: 300px;
		margin: 15px;
		background-size: auto 105%;
		background-position: center;
		border-radius: 40px;
	}

	.categories:hover {
		min-width: 250px;
		background-size: auto 100%;
		border-radius: 10px;
	}

	.categories .categories-details {
		flex-direction: column;
		top: auto;
		left: 10px;
		bottom: 10px;
		transform: none;
	}

	.categories .categories-details .info {
		writing-mode: vertical-rl;
		text-orientation: mixed;
		transform: rotate(180deg);
		order: 1;
	}

	.categories:hover .categories-details { flex-direction: row; }
	.categories:not(:hover) .categories-details .icon { order: 2; }
	.categories:not(:hover) .categories-details .info { padding: 10px 0 0 0; }

	.categories:after {
		background: -webkit-linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8)) 100%;
		background: -o-linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8)) 100%;
		background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8)) 100%;
	}

	.section { padding: 80px 0; }
}
