/* ---------------- AUTO TYPE FILTERS ---------------- */
.auto-types-container {
	width: 100%;
	height: auto;
	display: flex;
	padding-top: 32px;
	padding-bottom: 20px;
	justify-content: center;
	flex-direction: row;
}

.auto-type {
	color: #8a8a8a;
	font-style: italic;
	font-size: 24px;
	padding: 0 3vw;
	cursor: pointer;
	text-decoration: none;
}

.auto-type:hover {
	color: #FF1500;
}

/* ---------------- FILTERS ---------------- */
.filters-container {
	width: 100%;
	height: auto;
	padding-bottom: 32px;
}

.filters {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	margin-bottom: 2px;
	padding-bottom: 8px;
	justify-content: center;
}

.filters-underline {
	box-shadow: 0 1px 0px #e5e5e5;
}

.filters-parameters {
	width: 100%;
	height: auto;
	margin: 0;
	display: block;
	text-align: center;
	justify-content: center;
}

.filter {
	color: #8a8a8a;
	user-select: none;
	text-decoration: none;
	cursor: pointer;
	word-wrap: none;
	text-align: center;
	font-weight: bold;
	padding: 0 2vw;
	margin: 0;
	font-size: 16px;
	white-space: nowrap;
	text-transform: uppercase;
}

.parameter {
	color: #8a8a8a;
	user-select: none;
	text-decoration: none;
	cursor: pointer;
	font-weight: normal;
	padding: 0 16px;
	margin: 0;
	word-wrap: none;
	text-transform: uppercase;
	line-height: 32px;
	font-size: 14px;
}

.filter:hover, .parameter:hover {
	color: #FF1500;
}

.selected {
	color: #FF1500;
}

/* ---------------- CARS ---------------- */

.no-cars {
	text-align: center;
	font-weight: normal;
	width: 100%;
	height: auto;
	color: rgb(196, 196, 196);
	margin: 0;
	padding: 0;
	font-size: 32px;
	margin-top: 64px;
	margin-bottom: 128px;
}

.cars {
	overflow: hidden;
	position: relative;
	background-color: white;
	width: 100%;
	height: auto;
	min-height: 50vh;
}

.cars-line1 {
	z-index: 0;
	user-select: none;
	pointer-events: none;
	visibility: visible;
	position: absolute;
	opacity: 0.1;
	left: 16px;
	top: 0;
	max-width: 256px;
	max-height: 256px;
}

.cars-line2 {
	z-index: 0;
	user-select: none;
	pointer-events: none;
	visibility: visible;
	position: absolute;
	opacity: 0.1;
	right: 16px;
	bottom: 0;
	max-width: 256px;
	max-height: 256px;
	transform: rotate(180deg);
}

.cars-padding {
	padding-top: 64px;
	padding-bottom: 64px;
}

.cars-title {
	padding: 0;
	margin: 0;
	font-size: 32px;
	text-align: center;
	letter-spacing: 4px;
	text-transform: uppercase;
}

.cars-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	width: 100%;
	height: auto;
	padding: 0;
	grid-column-gap: 2vw;
	grid-row-gap: 3vw;
	position: relative; 
}

.car {
	display: flex;
	flex-direction: column;
	height: auto;
	width: 100%;
	cursor: pointer;
	user-select: none;
	position: relative;
}

.car-image-block {
	border-radius: 2px;
	width: 100%;
	height: 256px;
	overflow: hidden;
	position: relative;
	margin-bottom: 24px;
}

.car-image {
	z-index: 1;
	width: 100%;
	height: 100%;
	transform: scale(0.95);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	transition: 0.1s transform ease-in-out;
	background-color: #e7e9eb;
}

.car-price-tag {
	position: absolute;
	top: 32px;
	right: 0;
	height: 32px;
	color: white;
	display: flex;
	flex-direction: row;
}

.car-price-tag-angle {
	user-select: none;
	pointer-events: none;
	z-index: 2;
	width: auto;
	height: 32px;
	margin-right: -1px;
}

.car-price-tag-angle2 {
	z-index: 0;
	top: 32px;
	right: 0;
	width: auto;
	height: 48px;
	position: absolute;
}

.car-price-text {
	z-index: 3;
	font-size: 16px;
	padding-left: 8px;
	line-height: 32px;
	padding-right: 16px;
	text-align: center;
	white-space: nowrap;
	background-color: #FF1500;
}

.car-info-block {
	display: flex;
	width: 100%;
	flex-direction: row;
}

.car-main-info {
	font-size: 20px;
	width: 100%;
	display: flex;
	font-weight: bold;
	text-align: start;
	flex-direction: column;
}

.car-other-info {
	font-size: 18px;
	width: 100%;
	display: flex;
	font-weight: normal;
	text-align: end;
	flex-direction: column;
}

.car-info-text {
	margin: 0;
	padding: 0;
	margin-bottom: 8px;
}

.car:hover .car-image {
	transform: scale(1);
}

/* ---------------- PAGINATION ---------------- */

.pagination {
	margin-top: 10vh;
	font-size: 16px;
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: row;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.page-back {
	color: black;
	width: 100%;
	text-align: start;
	word-wrap: none;
	text-decoration: none;
	font-weight: bold;
	cursor: pointer;
}

.current-page {
	width: auto;
	text-align: center;
}

.page-forward {
	color: black;
	width: 100%;
	text-align: end;
	word-wrap: none;
	text-decoration: none;
	font-weight: bold;
	cursor: pointer;
}

.page-forward:hover, .page-back:hover {
	color: #FF1500;
}

.page-disabled {
	cursor: auto;
	visibility: hidden;
	user-select: none;
	pointer-events: none;
}

/* ---------------- MEDIA QUERIES ---------------- */

@media screen and (max-width: 1000px) {
	.cars-line1,
	.cars-line2 {
		visibility: hidden;
	}

	.filter {
		width: 100%;
		font-size: 14px;
		text-align: center;
	}

	.parameter {
		font-size: 14px;
	}
	
	.cars-padding {
		padding-top: 48px;
		padding-bottom: 32px;
	}

	.cars-container {
		padding: 0 1vw;
	}

	.pagination {
		padding: 0 2vw;
	}
}

@media screen and (max-width: 800px) {
	.car-price-tag {
		top: 16px;
	}

	.car-price-tag-angle2 {
		top: 16px;
	}

	.cars-container {
		grid-template-columns: repeat(2, 1fr);
	}

	.auto-type {
		font-size: 20px;
	}

	.filter {
		font-size: 12px;
	}

	.cars-title {
		font-size: 24px;
		letter-spacing: 1px;
	}

	.car-image-block {
		height: 220px;
	}
}

@media screen and (max-width: 600px) {
	.car-image-block {
		height: 160px;
		margin-bottom: 20px;
	}

	.car-price-tag {
		top: 20px;
		height: 20px;
	}
	
	.car-price-tag-angle {
		height: 20px;
	}
	
	.car-price-tag-angle2 {
		top: 20px;
		height: 32px;
	}
	
	.car-price-text {
		font-size: 12px;
		line-height: 20px;
		padding-left: 2px;
		padding-right: 4px;
	}

	.car-main-info {
		font-size: 10px;
	}
	
	.car-other-info {
		font-size: 12px;
	}
}