@font-face {
	font-family: "Filson Soft";
	src: url("../fonts/FilsonSoftRegular.ttf");
	font-weight: 400;
}

:root {
	--car-wheel-color: #000000;
	--car-rim-color: #CCCCCC;
}

html, body, #loader {
	min-height: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
}

#map {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100%;
}

#details {
	height: auto;
	color: black;
	z-index: 10;
	background-color: white;
	position: absolute;
	left: calc(50% + 40px);
	transform: translateY(-50%);
	bottom: 50%;
	padding: 18px 32px 18px 24px;
	font-family: Arial, sans-serif;
	line-height: 24px;
	border-radius: 8px;
}

#details.hide {
	opacity: 0;
	z-index: -1;
}

#details > p {
	margin: 4px 0;
	display: block;
	font-size: 15px;
	opacity: .8;
}

#details > p#details-location {
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 10px;
}

#loader {
	display: block;
	align-items: center;
	width: 100%;
	position: absolute;
	z-index: 999;
	background-color: #EDEDED;
}

#loader.hide {
	-webkit-animation: hideLoader ease-in 1s forwards;
	-o-animation: hideLoader ease-in 1s forwards;
	animation: hideLoader ease-in 1s forwards;
}

#slogan, #sub-slogan {
	top: 56px;
	left: 0;
	right: 0;
	margin: 0 auto;
	display: block;
	font-size: 55px;
	text-align: center;
	font-family: "Pacifico", serif;
	z-index: 1000;
}

#sub-slogan {
	-webkit-transition: all 0.75s;
	-moz-transition: all 0.75s;
	-ms-transition: all 0.75s;
	-o-transition: all 0.75s;
	transition: all 0.75s;
	font-size: 45px;
	opacity: 0.75;
}

#sub-slogan.hide {
	opacity: 0;
}

#information {
	-webkit-transition: all 0.75s;
	-moz-transition: all 0.75s;
	-ms-transition: all 0.75s;
	-o-transition: all 0.75s;
	transition: all 0.75s;
	display: flex;
	justify-content: space-evenly;
	margin: 2% auto 5%;
	max-width: 1280px;
	opacity: 1;
}

#information.hide {
	opacity: 0;
}

#information > div {
	-webkit-transition: all 0.75s;
	-moz-transition: all 0.75s;
	-ms-transition: all 0.75s;
	-o-transition: all 0.75s;
	transition: all 0.75s;
	display: block;
	background-position: center;
	background-size: contain;
	width: 100%;
	padding-bottom: 30%;
	background-repeat: no-repeat;
}

#information > div.hide {
	opacity: 0;
}

#information-green {
	background-image: url("../images/green.svg");
	opacity: 1;
}

#information-yellow {
	background-image: url("../images/yellow.svg");
	opacity: 1;
}

#information-red {
	background-image: url("../images/red.svg");
	opacity: 1;
}

#loading-cars {
	display: flex;
	align-items: baseline;
	width: 100%;
}

/* ASPECT RATIO 2.65 : 1 */
#multipla {
	width: 20%;
	-webkit-transform: translateX(-140%);
	-moz-transform: translateX(-140%);
	-ms-transform: translateX(-140%);
	-o-transform: translateX(-140%);
	transform: translateX(-140%);
}

#multipla.start {
	-webkit-animation: driveMultipla ease-in 1.75s forwards;
	-o-animation: driveMultipla ease-in 1.75s forwards;
	animation: driveMultipla ease-in 1.75s forwards;
}

/* ASPECT RATIO 4 : 1 */
#lamborghini {
	width: 25%;
	-webkit-transform: translateX(340%);
	-moz-transform: translateX(340%);
	-ms-transform: translateX(340%);
	-o-transform: translateX(340%);
	transform: translateX(340%);
}

#lamborghini.start {
	-webkit-animation: driveLamborghini ease-in 1.75s forwards;
	-o-animation: driveLamborghini ease-in 1.75s forwards;
	animation: driveLamborghini ease-in 1.75s forwards;
}

#multipla > .body {
	background-image: url("../images/multipla.png");
	padding-top: calc(100% / 2.65);
}

#lamborghini > .body {
	background-image: url("../images/lamborghini.png");
	padding-top: calc(100% / 4);
}

.body {
	background-repeat: no-repeat;
	-webkit-background-size: cover;
	background-size: cover;
	width: 100%;
	height: 100%;
	position: relative;
}

#multipla .front-wheel-casket > .tyre {
	top: 70%;
	left: 3%;
}

#multipla .back-wheel-casket > .tyre {
	top: 70%;
	left: 72%;
}

#lamborghini .front-wheel-casket > .tyre {
	top: 52%;
	left: 15%;
}

#lamborghini .back-wheel-casket > .tyre {
	top: 47%;
	left: 77.5%;
}

.tyre {
	width: 16%;
	padding-bottom: 16%;
	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	border-radius: 100%;
	background-color: var(--car-wheel-color);
	position: absolute;
}

.tyre.forwards {
	-webkit-animation: wheelsForwards 0.25s infinite;
	-o-animation: wheelsForwards 0.25s infinite;
	animation: wheelsForwards 0.25s infinite;
}

.tyre.backwards {
	-webkit-animation: wheelsBackwards 0.25s infinite;
	-o-animation: wheelsBackwards 0.25s infinite;
	animation: wheelsBackwards 0.25s infinite;
}

.rim {
	left: 10%;
	top: 10%;
	background-color: var(--car-rim-color);
	width: 80%;
	height: 80%;
	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	border-radius: 100%;
	position: absolute;
}

.rim-inner {
	width: 80%;
	height: 80%;
	left: 10%;
	top: 10%;
	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	border-radius: 100%;
	position: absolute;
	background: var(--car-wheel-color);

}

.rim-inner-trim {
	width: 30%;
	height: 30%;
	left: 35%;
	top: 35%;
	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	border-radius: 100%;
	position: absolute;
	background: var(--car-rim-color);
}

.rim-inner-piece {
	background-color: var(--car-rim-color);
	width: 100%;
	height: 5%;
	top: 50%;
	margin-top: -2.5%;
	/*padding-top: 3%;*/
	position: absolute;
	-webkit-transform-origin: center center;
	-moz-transform-origin: center center;
	transform-origin: center center;
}

.rim-inner-piece-one {
	transform: rotate(0deg);
}

.rim-inner-piece-two {
	transform: rotate(30deg);
}

.rim-inner-piece-three {
	transform: rotate(60deg);
}

.rim-inner-piece-four {
	transform: rotate(90deg);
}

.rim-inner-piece-five {
	transform: rotate(120deg);
}

.rim-inner-piece-six {
	transform: rotate(150deg);
}

.rim-inner-piece-seven {
	transform: rotate(180deg);
}

#collision {
	opacity: 0;
	display: block;
	background-image: url("../images/explosion.png");
	width: 10%;
	padding-bottom: 10%;
	background-size: cover;
	background-repeat: no-repeat;
	position: absolute;
	left: 0;
	right: 0;
	margin: 0 auto;
	z-index: 1;
}

#collision.show {
	-webkit-animation: showCollision ease-in 2s forwards;
	-o-animation: showCollision ease-in 2s forwards;
	animation: showCollision ease-in 2s forwards;
}

@keyframes wheelsBackwards {
	0% {
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	50% {
		-webkit-transform: rotate(-180deg);
		-moz-transform: rotate(-180deg);
		-ms-transform: rotate(-180deg);
		-o-transform: rotate(-180deg);
		transform: rotate(-180deg);
	}
	100% {
		-webkit-transform: rotate(-360deg);
		-moz-transform: rotate(-360deg);
		-ms-transform: rotate(-360deg);
		-o-transform: rotate(-360deg);
		transform: rotate(-360deg);
	}
}

@keyframes wheelsForwards {
	0% {
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	50% {
		-webkit-transform: rotate(180deg);
		-moz-transform: rotate(180deg);
		-ms-transform: rotate(180deg);
		-o-transform: rotate(180deg);
		transform: rotate(180deg);
	}
	100% {
		-webkit-transform: rotate(360deg);
		-moz-transform: rotate(360deg);
		-ms-transform: rotate(360deg);
		-o-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

@keyframes driveMultipla {
	from {
		transform: translateX(-140%)
	}
	to {
		transform: translateX(150%);
	}
}

@keyframes driveLamborghini {
	from {
		transform: translateX(340%)
	}
	to {
		transform: translateX(120%);
	}
}

@keyframes showCollision {
	0% {
		opacity: 1;
		-webkit-transform: scale(0);
		-moz-transform: scale(0);
		-ms-transform: scale(0);
		-o-transform: scale(0);
		transform: scale(0);
	}
	30% {
		opacity: 1;
		-webkit-transform: scale(1);
		-moz-transform: scale(1);
		-ms-transform: scale(1);
		-o-transform: scale(1);
		transform: scale(1);
	}
	100% {
		opacity: 1;
		-webkit-transform: scale(1.5);
		-moz-transform: scale(1.5);
		-ms-transform: scale(1.5);
		-o-transform: scale(1.5);
		transform: scale(1.5);
	}
}

@keyframes hideLoader {
	0% {
		opacity: 1;
	}
	70% {
		opacity: 1
	}
	100% {
		opacity: 0;
	}
}

.style-switcher {
	position: absolute;
	left: 8px;
	top: 8px;
	z-index: 1;
	padding: 0 8px;
	background-color: white;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	margin: 0;
}

.style-switcher.filter-switcher {
	bottom: 8px;
	top: auto !important;
}

.filter-switcher {
	display: flex;
	z-index: 3;
}

.filter-switcher > div {
	padding: 8px;
}

.style-item {
	display: inline-block;
	padding: 16px;
	font-family: "Arial", sans-serif;
	cursor: pointer;
}

.style-item > div:not(.gradient) {
	background-color: #616161;
}

.style-item:not(.selected) > div {
	opacity: 0.5;
}

.icon {
	-webkit-background-size: cover;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	width: 24px;
	height: 24px;
}

.style-item.selected > #icon-default,
.style-item.selected > #icon-map,
.style-item.selected > #icon-satellite {
	background-color: #006699;
}

.style-item > #icon-car-accident {
	background-color: transparent;
	opacity: 0.5;
}

.style-item.selected > #icon-car-accident {
	background-color: transparent;
	opacity: 1;
}


#icon-default {
	mask-image: url("../images/default.svg");
	-webkit-mask-image: url("../images/default.svg");
}

#icon-map {
	mask-image: url("../images/map.svg");
	-webkit-mask-image: url("../images/map.svg");
}

#icon-satellite {
	mask-image: url("../images/satellite.svg");
	-webkit-mask-image: url("../images/satellite.svg");
}

#icon-car-accident {
	background-image: url("../images/car-accident.png");
}

#icon-filter-all {
	background-image: url("../images/three-dots.svg");
	-moz-background-image: url("../images/three-dots.svg");
	background-color: transparent;
	/*background-color: #006699;*/
}

#icon-filter-green {
	mask-image: url("../images/dot.svg");
	-webkit-mask-image: url("../images/dot.svg");
	background-color: #4CAF50;
}

#icon-filter-yellow {
	mask-image: url("../images/dot.svg");
	-webkit-mask-image: url("../images/dot.svg");
	background-color: #FFDD31;
}

#icon-filter-red {
	mask-image: url("../images/dot.svg");
	-webkit-mask-image: url("../images/dot.svg");
	background-color: #F44336;
}

.gradient {
	background: #E8130F;
	background: -moz-linear-gradient(top, #E8130F 0%, #F49507 50%, #26C200 100%);
	background: -webkit-linear-gradient(top, #E8130F 0%, #F49507 50%, #26C200 100%);
	background: linear-gradient(to bottom, #E8130F 0%, #F49507 50%, #26C200 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#E8130F', endColorstr='#26C200', GradientType=0);
}

.pop-over-parent, .pop-under-parent {
	position: relative;
}

.pop-over-parent:hover .pop-over,
.pop-under-parent:hover .pop-under {
	opacity: 1;
}

.pop-over,
.pop-under {
	-webkit-transition: all 0.25s;
	-moz-transition: all 0.25s;
	-ms-transition: all 0.25s;
	-o-transition: all 0.25s;
	transition: all 0.25s;
	opacity: 0;
	position: absolute;
	transform: translateX(-50%);
	left: 50%;
	height: 20px;
	padding: 8px;
	background-color: #ffffff;
	font-family: "Filson Soft", sans-serif;
	border-radius: 4px;
	font-size: 14px;
	white-space: nowrap;
}

.pop-over {
	top: 100%;
	margin-top: 20px;
}

.pop-over:before,
.pop-under:before {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	position: absolute;
	left: 50%;
	content: "";
	transform: translateX(-50%);
}

.pop-over:before {
	border-bottom: 10px solid #ffffff;
	top: -10px;
}

.pop-under {
	top: calc(-100% - 10px);
}

.pop-under:before {
	border-top: 10px solid #ffffff;
	bottom: -10px;
}
