﻿/*#region Car*/


#Car {
	width: 100%;
	display: grid;
	transition: 500ms;
	/*grid-template-columns: repeat(auto-fill, minmax(289px, 1fr));*/
	grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
	gap: 20px;
}

	#Car > a {
		padding-top: 4rem;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		align-items: center;
		padding-bottom: 10px;
		position: relative;
		border-radius: 1rem;
	}

		#Car > a > *:not(img,div) {
			margin: 0 10px 7px 10px;
		}

		#Car > a > img {
			position: relative;
			width: 80%;
			z-index: 11;
			top: -5px;
		}

		#Car > a:before {
			content: "";
			top: 145px;
			left: 0;
			height: 247px;
			width: 100%;
			clip-path: polygon(0 0%, 68% 0, 8% 100%, 0% 100%);
			background: #e9f0f6;
			position: absolute;
			z-index: 3;
			transition: 500ms;
		}

		#Car > a:hover:before,
		#Car > a.hover:before
		{
			top: -100px;
			left: -100px;
		}

		#Car > a:after,
		#Car > a.hover:after
		{
			content: "";
			bottom: 0;
			height: 300px;
			width: calc(100%);
			background: #e0ebf4;
			position: absolute;
			z-index: 2;
		}


		#Car > a > div {
			background: var(--saa-blue);
			height: 100px;
			width: 100%;
			position: absolute;
			top: 0;
			z-index: 5;
			transition: 500ms;
			overflow: hidden;
			display: flex;
			justify-content: space-between;
			padding: 1.5rem
		}

			#Car > a > div > * {
				color: white;
				font-size: 25px;
				position: relative;
				z-index: 3;
				transition: 500ms;
				opacity: 0;
			}

		#Car > a:hover > div > * ,
			#Car > a.hover > div > * {
			opacity: 1;
		}

		#Car > a:hover > div > i,
		#Car > a.hover > div > i {
			margin-right: 20px;
		}

			#Car > a:hover > div > i:hover::before ,
				#Car > a.hover > div > i:hover::before {
				font-weight: 600;
			}

		#Car > a > div > span {
			font-size: 15px;
			margin-left: 20px;
		}

		#Car > a > div:after {
			content: "";
			background: #1d5181;
			position: absolute;
			height: 212px;
			/*width: 60%;
			left: 16%;*/
			width: 67%;
			left: 12%;
			border-radius: 50%;
			border: 0px solid #19446e;
			outline: 0px solid #183e63;
			outline-offset: -1px;
			top: 145px;
			transition: 500ms ease, border 300ms ease;
		}

		#Car > a:hover > div:after ,
			#Car > a.hover > div:after {
			border: 15px solid #19446e;
			outline: 15px solid #183e63;
			top: 30px;
		}

		#Car > a:hover > div,
			#Car > a.hover > div {
			background: #153655;
		}

		#Car > a > span:first-of-type {
			margin-top: 0;
			font-size: 17px;
			font-weight: bold;
			margin-bottom: 0;
			white-space: nowrap;
			text-overflow: ellipsis;
			overflow: hidden;
			width: 100%;
			text-align: center;
		}

		#Car > a > b {
			font-size: 22px;
			font-weight: 100;
			white-space: nowrap;
			text-overflow: ellipsis;
			overflow: hidden;
			width: 100%;
			text-align:center;
		}

		#Car > a > p > span:first-of-type {
			font-size: 22px;
			font-weight: 500;
			margin: 7px;
			text-align: center;
			transition: 500ms;
		}

		#Car > a > span:last-of-type {
			display: inline-flex;
			justify-content: center;
			align-items: center;
			font-weight: 600;
			font-size: 16px;
			margin-top: 5px;
		}

			#Car > a > span:last-of-type > span {
				overflow: hidden;
				display: inline-block;
				transition: 400ms;
				transform: scaleX(0);
				width: 0;
				height: 0;
				transform-origin: left;
			}

		#Car > a:hover > span:last-of-type > span ,
			#Car > a.hover > span:last-of-type > span {
			transform: scaleX(1);
			width: auto;
			height: auto;
		}

		#Car > a:hover > small:first-of-type,
		#Car > a.hover > small:first-of-type {
			display: none;
			animation: fade 500ms alternate;
		}

		#Car > a:hover > small:last-of-type,
		#Car > a.hover > small:last-of-type {
			display: block;
			animation: fade 500ms alternate;
		}

		#Car > a > small {
			font-size: 13px;
		}

			#Car > a > small:last-of-type {
				display: none;
				animation: fade 500ms alternate;
			}

		#Car > a > * {
			color: var(--saa-blue);
			position: relative;
			z-index: 3;
		}

@keyframes fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}
/*#endregion*/

/*#region CarDetail*/
#CarDetail {
	display: none;
	flex-direction: column;
	gap: 3rem;
	width: 100%;
}

	#CarDetail > a {
		position: relative;
		display: flex;
		flex-direction: column;
		justify-content: start;
		width: 100%;
		height: 250px;
		border-radius: 30px;
		overflow: hidden;
		z-index: 1;
		background: var(--saa-blue);
		border-top-left-radius: 30px;
		border-top-right-radius: 30px;
		background-image: linear-gradient(to bottom, #153655, #153655, #153655, #ffffff, #ffffff);
	}

		#CarDetail > a:hover div:first-of-type::after ,
			#CarDetail > a.hover div:first-of-type::after {
			top: 25px;
		}

		#CarDetail > a:hover div > div:first-of-type > img,
		#CarDetail > a.hover div > div:first-of-type > img {
			height: 120px;
		}

		#CarDetail > a:hover div > div:last-of-type > i ,
			#CarDetail > a.hover div > div:last-of-type > i {
			opacity: 1;
			right: 18px;
		}

		#CarDetail > a:hover > div > div:last-of-type > div:last-of-type > span,
		#CarDetail > a.hover > div > div:last-of-type > div:last-of-type > span {
			opacity: 1;
		}

		#CarDetail > a::after {
			content: "";
			position: absolute;
			left: 0;
			bottom: 0;
			border-bottom-left-radius: 30px;
			border-bottom-right-radius: 30px;
			width: 100%;
			height: 50%;
			background: #e8f1f8;
		}

		#CarDetail > a::before {
			content: "";
			position: absolute;
			height: 0;
			width: 450px;
			left: 18px;
			top: 174px;
			z-index: 0;
			border-radius: 50%;
			border: 15px solid #19446e;
			outline: 15px solid #183e63;
			background: #1d5181;
			transition: 500ms ease, border 300ms ease;
		}

		#CarDetail > a:hover::before ,
			#CarDetail > a.hover::before {
			top: 35px;
			border: 20px solid #19446e;
			outline: 20px solid #183e63;
			height: 227px;
		}

		#CarDetail > a > div {
			position: relative;
			z-index: 2;
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 1rem;
			width: 100%;
			height: 100%;
		}

			#CarDetail > a > div > div:first-of-type {
				position: relative;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				gap: 10px;
				margin-left: 35px;
				width: 400px;
			}

				#CarDetail > a > div > div:first-of-type > img {
					transition: 500ms;
					position: relative;
					height: 110px;
				}

				#CarDetail > a > div > div:first-of-type > p {
					display: flex;
					align-items: center;
					justify-content: center;
					gap: 5px;
				}

					#CarDetail > a > div > div:first-of-type > p > span {
						height: 20px;
						width: 20px;
						border-radius: 50px;
						background: var(--car-color);
						cursor: pointer;
						border: 1px solid gray;
					}

				#CarDetail > a > div > div:first-of-type > div:first-of-type > p > span.carActive {
					border: 2px solid gray;
				}

			#CarDetail > a > div > div:last-of-type {
				position: relative;
				width: 61%;
				display: flex;
				flex-direction: column;
				align-items: start;
				justify-content: center;
				gap: 2rem;
			}

				#CarDetail > a > div > div:last-of-type > div:first-of-type > h5 {
					color: #fff;
					font-size: 30px;
				}

				#CarDetail > a > div > div:last-of-type > div:first-of-type > p {
					color: #fff;
				}

				#CarDetail > a > div > div:last-of-type > div:first-of-type > span {
					color: #fff;
					font-size: 18px;
				}

				#CarDetail > a > div > div:last-of-type > div:last-of-type {
					display: flex;
					align-items: center;
					justify-content: space-between;
					width: 95%;
				}

					#CarDetail > a > div > div:last-of-type > div:last-of-type > span {
						color: var(--saa-blue);
						background: var(--saa-yellow);
						border-radius: 30px;
						padding: 5px 15px;
						font-weight: 600;
						font-size: 13px;
						opacity: 0;
						transition: 300ms;
						white-space: nowrap;
					}

					#CarDetail > a > div > div:last-of-type > div:last-of-type > p {
						color: var(--saa-blue);
						font-size: 23px;
						font-weight: 600;
						margin: 20px 0 0 0;
					}

						#CarDetail > a > div > div:last-of-type > div:last-of-type > p > span {
							font-size: 15px;
							display: block;
						}

				#CarDetail > a > div > div:last-of-type > i {
					position: absolute;
					overflow: hidden;
					top: -15px;
					right: -40px;
					position: absolute;
					color: #fff;
					padding: 10px;
					font-size: 22px;
					cursor: pointer;
					z-index: 1;
					opacity: 0;
					transition: 500ms;
				}

					#CarDetail > a > div > div:last-of-type > i:hover::before {
						font-weight: 600;
					}


.carActive {
	border: 1px solid gray;
}
/*#endregion*/

@media(max-width:1400px) {

	#CarDetail > a > div > div:first-of-type > img {
		height: 110px;
	}
	#CarDetail > a > div > div:first-of-type {
		margin-left: 0px;
		width: 348px;
	}
	#CarDetail > a > div > div:last-of-type > div:last-of-type > p {
		font-size: 20px;
		margin: 10px 0 0 0;
	}
	#CarDetail > a:hover div > div:first-of-type > img ,
		#CarDetail > a.hover div > div:first-of-type > img {
		height: 100px;
	}
	#CarDetail > a > div > div:last-of-type > div:last-of-type > span {
		padding: 5px 10px;
		font-size: 14px;
	}
	#CarDetail > a > div > div:last-of-type > div:first-of-type > h5 {
		font-size: 25px;
	}
	#CarDetail > a > div > div:last-of-type > div:first-of-type > p {
		font-size: 14px;
	}
}

@media(max-width:992px) {
	

	#CarDetail > a > div::after {
		width: 43%;
		left: 1px;
	}

	#Car > a > div:after {
		width: 64%;
		left: 15%;
	}

	#CarDetail > a:hover div::after,
	#CarDetail > a.hover div::after {
		top: 30px;
	}

	#CarDetail > a > div > div {
		width: 350px;
		margin-left: 0;
	}

	#CarDetail > a > div {
		gap: 0;
	}

		#CarDetail > a > div > div:last-of-type > div:first-of-type > h5 {
			font-size: 25px;
		}

		#CarDetail > a > div > div:last-of-type > div:first-of-type > p {
			font-size: 15px;
		}

		#CarDetail > a > div > div:last-of-type > div:last-of-type > p {
			font-size: 20px;
		}

			#CarDetail > a > div > div:last-of-type > div:last-of-type > p > span {
				font-size: 13px;
			}

		#CarDetail > a > div > div:last-of-type > div:last-of-type > span {
			padding: 5px 8px;
			font-size: 15px;
		}

	#Car > a:hover > div:after, #Car > a.hover > div:after {
		width: calc(100% - 74px);
		left: 22px;
		top: 25px;
	}
}

@media(max-width:768px) {
	#Car {
		display: grid !important;
	}

		#Car > a > div:after {
			height: 225px;
		}






	#CarDetail,
	#Models > div:nth-of-type(2) > div:last-of-type > i,
	#Search > div:first-of-type > i:last-of-type {
		display: none !important;
	}
}

@media(max-width:576px) {
	#Car {
		grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)) !important;
		gap: 9px;
	}

		#Car > a:hover > div > i, #Car > a.hover > div > i, #Car > a > div > i {
			font-size: 20px;
		}
		#Car > a:hover > div > *, #Car > a.hover > div > *, #Car > a > div > * {
			font-size: 13px;
		}
		#Car > a > div > span{
			font-size: 13px;

		}
		#Car > a > img {
			top: 8px;
		}
		#Car > a > span:last-of-type {
			font-size: 14px;
		}
		#Car > a > b {
			padding: 0 10px;
			width: 88%;
			font-size: 18px;
		}
}

@media(max-width:500px) {
	#Car > a:hover > div:after, #Car > a.hover > div:after {
		top: 38px;
		height: 139px;
	}

	#Car > div:last-of-type > a:hover:before, #Car > div:last-of-type > a.hover:before {
		display: none;
	}

	#Car > a > div {
		height: 61px;
	}

	#Car > div:last-of-type > a > img {
		width: 89%;
	}

	#Car > div:last-of-type > a {
		padding-top: 3rem;
	}

	#Car > a > b {
		margin: 0;
		font-size: 15px;
	}


	#Car > a > span:first-of-type {
		font-size: 17px;
	}

	#Car > a > img {
		top: -10px;
	}

	#Car > a > span:last-of-type {
		font-size: 12px;
		margin-right: 0;
		margin-left: 0;
	}
}

@media(max-width:393px) {
	#Car > a > div {
		height: 110px;
	}

	#Car > a:hover > div:after, #Car > a.hover > div:after {
		top: 50px;
		width: 78%;
		left: 27px;
		height: 200px;
	}

	#Car > a > span:last-of-type {
		font-size: 20px;
	}

	#Car > a > span:first-of-type {
		font-size: 19px;
	}

	#Car > a > b {
		margin: 7px 0 5px 0;
		font-size: 20px;
	}
	#Car > a > img {
		top: 5px;
	}
}
