/*****************************
	Typography
*****************************/
html {
	height: 100%;
}

body {
	font-family: $font-base;
	font-weight: normal;
	font-style: normal;
	font-size: 14px;
	color: $body-color;
	overflow-x: hidden;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}



input {
	outline: medium none !important;
	color: $primary;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: $font-heading;
	font-weight: normal;
	color: $gray-8;
	margin-top: 0;

	a {
		color: inherit;
	}

}

label {
	font-weight: normal;
}

h1 {
	font-size: 42px;
	font-style: normal;
}

h2 {
	font-size: 28px;
	line-height: 38px;
}

h3 {
	font-size: 26px;
}

h4 {
	font-size: 22px;
}

h5 {
	font-size: 18px;
}

h6 {
	font-size: 16px;
}

p {
	font-weight: normal;
	line-height: 1.7;
}

*::-moz-selection {
	background: $primary;
	color: $white;
	text-shadow: none;
}

::-moz-selection {
	background: $primary;
	color: $white;
	text-shadow: none;
}

::selection {
	background: $primary;
	color: $white;
	text-shadow: none;
}

.container-fluid {
	padding: 0 100px;
}

/* Loading */
#pre-loader {
	background-color: #ffffff;
	height: 100%;
	width: 100%;
	position: fixed;
	z-index: 1;
	margin-top: 0px;
	top: 0px;
	left: 0px;
	bottom: 0px;
	overflow: hidden !important;
	right: 0px;
	z-index: 999999;
}
#pre-loader img {
	text-align: center;
	left: 0;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	z-index: 99;
	margin: 0 auto;
}

/* divider */
hr { border-top-color: $border-color; }

/* form-control */
.form-control {
	border: 1px solid $border-color;
	color: $gray-4;
	border-radius: 0px;
	//height: 50px;
	//padding: 10px 20px;
	box-shadow: none;
	font-size: 14px;
	border-radius: $border-radius;

	&:focus {
		box-shadow: none;
		border-color: $primary;
	}
}

/* custom-file */
.custom-file {
	.custom-file-label {
		height: 50px;
		font-size: 14px;
		font-weight: 600;
		color: $gray-8;
		border-color: $border-color;
		padding: 15px 90px 15px 20px;
		border-radius: 3px;
		&:after {
			height: 48px;
			padding: 14px 25px;
		}
	}
	.custom-file-input {
		height: 50px;
		color: $gray-8;
		border-radius: 3px;
		border-color: $border-color;
		&:focus~.custom-file-label {
			border-color: $primary;
			box-shadow: none;
		}
	}
}


/* input-group-prepend */
.input-group-prepend,
.input-group-append {
	.input-group-text {
		width: 50px;
		background: transparent;
		border-color: $border-color;
		box-shadow: none;
		justify-content: center;
	}

}

/* checkbox */
.custom-control-input {
	&:checked~.custom-control-label {
		&:before {
			background: $primary;
			border-color: $primary;
		}

	}

	&:not(:disabled) {
		&:active~.custom-control-label {
			&:before {
				background: transparent;
				border-color: transparent;
			}

		}

	}

	&:focus~.custom-control-label {
		&:before {
			box-shadow: none;
		}

	}

	&:focus {
		&:not(:checked)~.custom-control-label {
			&:before {
				border-color: $border-color;
			}

		}

	}

}


.custom-checkbox {
	.custom-control-label {
		&:before {
			border-radius: $border-radius;
			border: 2px solid $gray-2;
		}

	}

}

/* border */
.border {
	border-color: $border-color !important;
}

.border-top {
	border-top-color: $border-color !important;
}

.border-left {
	border-left-color: $border-color !important;
}

.border-right {
	border-right-color: $border-color !important;
}

.border-bottom {
	border-bottom-color: $border-color !important;
}

/* badge */
.badge {
	border-radius: $border-radius;

	+ {
		.badge {
			margin-left: 6px;
		}

	}

}

.badge-md {
	padding: 5px 8px;
	font-size: 13px;
	font-weight: normal;
}

.badge-primary {
	background: $primary;
}

/* back to to */
.back-to-top {

	background: $danger;
	color: $white;
	width: 40px;
	height: 40px;
	line-height: 40px;
	font-size: 20px;
	display: inline-block;
	text-align: center;
	border-radius:$border-radius;
	position: fixed;
	overflow: hidden;
	cursor: pointer;
	right: 30px;
	bottom: 30px;
	z-index: 9;
	transition: all 0.3s ease-in-out;
	&:hover {
		background-color: $gray-9;
		color: $white;
	}
	&:focus {
		color: $white;
	}


}

/* breadcrumb */
.breadcrumb {
	padding-left: 0;
	background: transparent;
	font-family: $font-heading;
	font-weight: 500;
	display: inline-flex;

	.breadcrumb-item {
		padding-right: 5px;

		a {
			color: #fafafa;

			&:hover {
				color: #fff;
			}

		}

		i {
			padding-right: 5px;
			font-size: 11px;
		}

		&:before {
			display: none;
		}

	}

	.active {
		span {
			color: #fff;
		}

	}

}

/* pagination */
.pagination {
	display: inline-flex;
	border-radius: $border-radius;
}

.pagination .page-item {
	margin: 0 3px;
	display: inline-flex;
}

.pagination .page-item .page-link {
	color: $gray-5;
	padding: 6px 12px;
	border-radius: $border-radius;
	border: none;
}

.page-item.active .page-link,
.pagination .page-item .page-link:hover {
	background: $primary;
	border-color: $primary;
	color: $white;
}

.pagination .page-item .page-link:focus {
	background: $primary;
	border-color: $primary;
	color: $white;
	box-shadow: none;
}

/* blockquote */
.blockquote {
	font-size: 16px;
	border-left: 4px solid $border-color;
	padding-left: 20px;
	font-style: italic;
	display: block;
}

/* table */
.table-bordered {
	td {
		border-color: $border-color;
	}

	th {
		border-color: $border-color;
	}

}

.table {
	thead {
		th {
			border-bottom-color: $border-color;
		}

	}

}

.table-striped {
	tbody {
		tr {
			&:nth-of-type(odd) {
				background: $gray-1;
			}

		}

	}

}

