
/* ---------------- HEAD ---------------- */

.background {
	z-index: -1;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-image: url('/assets/images/background.jpg');
	box-shadow: inset 0 0 999px 99999px rgba(0, 0, 0, 0.8);
}

.head {
	color: white;
	height: auto;
	width: 100%;
	padding-top: 96px;
	padding-bottom: 64px;
	background-color: transparent;
}

.head .title {
	margin: 0;
	padding: 0;
	font-size: 24px;
	text-align: center;
	margin-bottom: 48px;
	letter-spacing: 4px;
	text-transform: uppercase;
	text-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}

.head .filters {
	height: auto;
	width: 100%;
	display: flex;
	text-align: center;
	flex-direction: row;
	justify-content: center;
}

.filter {
	height: auto;
	width: 128px;
	margin: 4px 1vw;
	display: flex;
	cursor: pointer;
	user-select: none;
	text-align: center;
	text-decoration: none;
	flex-direction: column;
	text-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}

.filter-text {
	color: white;
	font-weight: bold;
	text-transform: uppercase;
	user-select: none;
	margin-top: 4px;
	font-size: 11px;
	letter-spacing: 1px;
	transition: transform 0.2s ease-in-out;
	text-decoration: none;
}

.filter-image {
	user-select: none;
	pointer-events: none;
	transition: transform 0.15s ease-in-out;
	filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.5));
	margin: 16px auto;
	width: 64px;
	height: 64px;
}

.filter:hover .filter-image {
	transform: scale(1.2);
	user-select: none;
}

.filter:hover .filter-text {
	transform: translateY(12px);
}

/* ---------------- CARS ---------------- */

.cars {
	overflow: hidden;
	position: relative;
	background-color: white;
	width: 100%;
	height: auto !important;
}

.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: 96px;
	padding-bottom: 128px;
}

.cars-title {
	margin: 0;
	padding: 0;
	font-size: 24px;
	text-align: center;
	margin-bottom: 64px;
	letter-spacing: 4px;
	text-transform: uppercase;
}

.cars-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-column-gap: 2vw;
	grid-row-gap: 2vw;
	width: 100%;
	height: auto;
	padding: 0;
}

.car {
	display: flex;
	flex-direction: column;
	height: auto;
	width: 100%;
	cursor: pointer;
	user-select: none;
	position: relative;
}

.car-image-block {
	width: 100%;
	height: 256px;
	border-radius: 2px;
	overflow: hidden;
	position: relative;
	margin-bottom: 24px;
}

.car-image {
	z-index: 1;
	width: 100%;
	height: 100%;
	position: relative;
	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);
}

/* ---------------- MEDIA QUERIES ---------------- */

@media screen and (max-width: 1000px) {
	.cars-line1,
	.cars-line2 {
		visibility: hidden;
	}
}

@media screen and (max-width: 800px) {
	.car-price-tag {
		top: 16px;
	}

	.car-price-tag-angle2 {
		top: 16px;
	}

	.car {
		padding: 2vw 0;
		max-width: 100%;
	}

	.cars-title {
		margin-bottom: 32px;
	}

	.cars-container {
		grid-template-columns: repeat(2, 1fr);
	}

	.cars-padding {
		padding-top: 64px;
		padding-bottom: 32px;
	}

	.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;
	}

	.filter-text {
		font-size: 10px;
	}

	.filter-image {
		transform: scale(0.8);
	}

}