/* Dividers */
hr {
	background: rgba(0, 0, 0, 0.06);
	border: 0;
	height: 1px;
	margin: 22px 0;
	opacity: 1;
	&.short {
		margin: 11px 0;
	}
	&.tall {
		margin: 44px 0;
	}
	&.taller {
		margin: 66px 0;
	}
	&.gratient {
		background: none;
		background-image: linear-gradient(to $left, transparent, rgba(0, 0, 0, 0.06), transparent);
	}
	&.gradient-to-right {
		background: none;
		background-image: linear-gradient(to $left, rgba(0, 0, 0, 0.06), transparent);
	}
	&.gradient-to-left {
		background: none;
		background-image: linear-gradient(to $left, transparent, rgba(0, 0, 0, 0.06));
	}
	&.solid {
		background: rgba(0, 0, 0, 0.06);
	}
	&.light {
		background: rgba(255, 255, 255, 0.15);
	}
	&.invisible {
		background: none;
	}
}

.divider {
	border: 0;
	height: 1px;
	margin: 44px auto;
	background: rgba(0, 0, 0, 0.06);
	text-align: center;
	position: relative;
	clear: both;

	&.taller {
		margin: 66px auto;
	}

	[class*="fa-"], .icons {
		text-align: center;
		background: var(--light);
		border-radius: 50px;
		color: #a9a9a9;
		display: inline-block;
		height: 50px;
		line-height: 50px;
		position: absolute;
		text-align: center;
		width: 50px;
		font-size: 20px;
		margin: 0 auto 0 -25px;
		top: -25px;
		#{$left}: 50%;
		z-index: 1;
	}

	&.divider-solid {
		background: rgba(0, 0, 0, 0.06);
	}

	&.divider-icon-sm {
		[class*="fa-"], .icons {
			width: 30px;
			height: 30px;
			line-height: 30px;
			top: -15px;
			font-size: 15px;
			margin-#{$left}: -16px;
		}
	}

	&.divider-icon-lg {
		margin: 86px 0;
		[class*="fa-"], .icons {
			width: 60px;
			height: 60px;
			line-height: 60px;
			top: -30px;
			font-size: 30px;
			margin-#{$left}: -30px;
		}

		&.taller {
			margin: 100px auto;
		}
	}

	&.divider-xs {
		width: 35%;
	}

	&.divider-sm {
		width: 67%;
	}

	&.divider-left {
		[class*="fa-"], .icons {
			#{$left}: 0;
			margin-left: 0;
			margin-right: 0;
			#{$right}: auto;
		}
	}

	&.divider-right {
		[class*="fa-"], .icons {
			#{$left}: auto;
			margin-left: 0;
			margin-right: 0;
			#{$right}: 0;
		}
	}

	&.divider-style-2 {
		[class*="fa-"], .icons {
			background: var(--grey-100);
			color: #a9a9a9;
		}
	}

	&.divider-style-3 {
		[class*="fa-"], .icons {
			border: 1px solid #CECECE;
		}
	}

	&.divider-style-4 {
		[class*="fa-"], .icons {
			border: 1px solid #CECECE;
			&:after {
				border: 3px solid var(--grey-100);
				border-radius: 50%;
				box-sizing: content-box;
				content: "";
				display: block;
				height: 100%;
				#{$left}: -4px;
				padding: 1px;
				position: absolute;
				top: -4px;
				width: 100%;
			}
		}
	}

	&.divider-small {
		margin: 22px auto;
		background: transparent;
		hr {
			width: 50px;
			height: 3px;
			background: #555;
		}

		&.divider-small-center {
			text-align: center;
			hr {
				margin-left: auto;
				margin-right: auto;
			}
		}

		&.divider-small-right {
			text-align: $right;
			hr {
				margin-#{$left}: auto;
			}
		}

		&.divider-light {
			hr {
				background: #DDD;
			}
		}

		&.divider-small-sm {
			hr {
				height: 1px;
			}
		}

		&.divider-small-lg {
			hr {
				height: 6px;
			}
		}

		&.tall {
			margin: 34px 0;
		}
		&.taller {
			margin: 46px 0;
		}
	}

	.divider-small-text {
		background: var(--light);
		color: #999;
		display: inline-block;
		text-align: center;
		font-size: 0.8em;
		height: 30px;
		line-height: 30px;
		padding: 0 30px;
		text-transform: uppercase;
		margin: 0;
		position: relative;
		top: -15px;
	}
}

hr, .divider {
	&.dashed {
		background: none;
		position: relative;
		&:after {
			border-top: 1px dashed rgba(0, 0, 0, 0.06);
			content: "";
			display: block;
			height: 0;
			position: absolute;
			top: 50%;
			margin-top: -1px;
			width: 100%;
		}
	}
	&.pattern {
		background: none;
		position: relative;
		&:after {
			background: transparent url(../img/patterns/worn_dots.png) repeat 0 0;
			content: "";
			display: block;
			height: 15px;
			position: absolute;
			top: 50%;
			margin-top: -7px;
			width: 100%;
		}
		&.pattern-2 {
			&:after {
				background-image: url(../img/patterns/az_subtle.png);
			}
		}
	}
}

// Divider Animations
@keyframes dividerProgress25 {
	from {
	    width: 0;
	}

	to {
	    width: 25%;
	}
}

.dividerProgress25 {
	animation-name: dividerProgress25;
}

/* Divider Borders */
.divider-top-border {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.divider-bottom-border {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.divider-left-border {
	border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.divider-right-border {
	border-right: 1px solid rgba(0, 0, 0, 0.06);
}

/* Dividers - Skin */
@each $name, $var in $colors-list {
	.divider {
		&.divider-#{$name} {
			[class*="fa-"], .icons {
				color: var(--#{$name});
			}
			&.divider-small {
				hr {
					background: var(--#{$name});
				}
			}
		}
	}
}

@each $name, $var in $colors-list {
	.divider {
		&.divider-style-2 {
			&.divider-#{$name} {
				[class*="fa-"], .icons {
					background: var(--#{$name});
					color: var(--#{$name}-inverse);
				}
			}
		}
	}
}

@each $name, $var in $colors-list {
	.divider {
		&.divider-style-3 {
			&.divider-#{$name} {
				[class*="fa-"], .icons {
					border-color: var(--#{$name});
				}
			}
		}
	}
}