// Rem output with px fallback
@mixin font-size($sizeValue: 1) {
	font-size: ($sizeValue * 10) * 1px;
	font-size: $sizeValue * 1rem;
}

// Center block
@mixin center-block {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

// Clearfix
@mixin clearfix() {
	content: "";
	display: table;
	table-layout: fixed;
}

// Clear after (not all clearfix need this also)
@mixin clearfix-after() {
	clear: both;
}

@mixin counter() {
	@include font-size(1);
	color: #fff;
	font-weight: 600;
	text-align: center;
	line-height: 22px;
	display: inline-block;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	position: absolute;
	right: 0;
	top: 50%;
	margin-top: -10px;
	background-color: $color__primary;
	transition: all 0.5s;
}

@mixin button() {
	transition: 0.5s;
	color: #fff;
	font-weight: 500;
	text-align: center;
	line-height: 60px;
	min-width: 200px;
	display: inline-block;
	padding: 0;
	border-radius: 0;
	border: 0;
	background-color: $color__primary;
	cursor: pointer;
	position: relative;

	&:hover,
	&:focus {
		color: #fff;
		box-shadow: none;
		background-color: darken(desaturate($color__primary, 3.2843), 8.2353);
	}
}