body {
    font-family: "Source Sans Pro", Verdana, Arial;
    font-style: normal;
    font-size: 16px;
    color: #8A95A5;
}
a:hover, a:focus {
	outline: none;
	text-decoration: none;
}
body > .container-fluid {
	position: relative;
    display: block;
    padding-bottom: 66px;
	min-height: 100vh;
}
body a {
    font-family: "Source Sans Pro", Verdana, Arial;
}
body a:before, body a:after {
    font-family: FontAwesome;
}
a > i {
    text-indent: 0;
	-webkit-transition: 	text-indent 0.2s ease-in-out;
	-moz-transition: 		text-indent 0.2s ease-in-out;
	-o-transition: 			text-indent 0.2s ease-in-out;
	transition: 			text-indent 0.2s ease-in-out;
}
a:hover > i {
    text-indent: 5px;
}
a .fa-long-arrow-left {
    padding-right: 0;
	-webkit-transition: 	text-indent 0.2s ease-in-out, padding-right 0.2s ease-in-out;
	-moz-transition: 		text-indent 0.2s ease-in-out, padding-right 0.2s ease-in-out;
	-o-transition: 			text-indent 0.2s ease-in-out, padding-right 0.2s ease-in-out;
	transition: 			text-indent 0.2s ease-in-out, padding-right 0.2s ease-in-out;
}
a:hover .fa-long-arrow-left {
    padding-right: 5px;
    text-indent: -5px;
}
.rally-course-wrapper .drive-logo:hover i {
    text-indent: 5px;
}



/* Navbar */
.navbar-default {
    background-color: #D61F27;
	border: none;
}
.navbar-default .navbar-nav:last-child {
    float: right;
}
.navbar-default .navbar-nav>li>a {
    font-size: 14px;
    line-height: 22px;
    color: #fff;
}
.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus {
    color: white;
	outline: none;
}
.navbar-default .navbar-nav:first-child > li:after {
    display: none !important;
}
.navbar-default .navbar-nav > li:after {
    background-color: #D61F27;
    content: "";
    display: block;
    height: 1px;
    line-height: 1px;
    margin: 0 auto 0;
    width: 3%;
	-webkit-transition: 	background-color 0.2s ease-in-out, width 0.2s ease-in-out, margin 0.2s ease-in-out;
	-moz-transition: 		background-color 0.2s ease-in-out, width 0.2s ease-in-out, margin 0.2s ease-in-out;
	-o-transition: 			background-color 0.2s ease-in-out, width 0.2s ease-in-out, margin 0.2s ease-in-out;
	transition: 			background-color 0.2s ease-in-out, width 0.2s ease-in-out, margin 0.2s ease-in-out;
}
.navbar-default .navbar-nav > li:hover:after {
    background-color: rgba(255,255,255,0.7);
    margin-top: -10px;
    width: 100%;
}
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
    background-color: #bf2222;
	color: white;
}
.navbar-default .navbar-toggle {
    border: none;
}
button.navbar-toggle {
    color: white;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
    background-color: #bf2222;
}
@media screen and (max-width: 767px) {
	.navbar-default .navbar-nav:last-child {
		float: initial;
	}
	.navbar-nav {
		margin: 0;
	}
	.nav > li {
		height: 35px;
		max-width: 120px;
	}
	ul:last-child.nav.navbar-nav {
		padding-bottom: 10px;
	}
}



/* FOOTER */
footer {
    border-top: 2px solid #edece9;
    bottom: 0;
    margin-left: -15px;
    position: absolute;
    width: 100%;
	z-index: 1;
}
footer a {
	color: #8A95A5;
}
footer a:hover, footer a:focus {
	color: #29275D;
}
footer img {
    float: right;
    margin-right: 10px;
}
footer .nav.navbar-nav {
    display: inline-block;
    margin: 0;
}
footer .nav.navbar-nav li {
    display: inline-block;
}
@media screen and (max-width: 767px) {
	footer {
		display: none;
	}
}




/* Jumbotron */
.jumbotron {
    background-color: #EEEEEC;
    padding: 50px 0;
}
.jumbotron h1 {
    font-size: 36px;
    color: #28275D;
}



/* Misc typography */
h1 {
    font-size: 42px;
}
h2 {
    font-size: 30px;
    color: #28275D;
    margin-bottom: 20px;
}
a {
    font-size: 16px;
    color: #2D3B93;
}



/* Buttons */
.btn-lg {
    background-color: #ffffff;
    border: 2px solid #2d3895;
    border-radius: 77px;
    color: #2d3895;
    line-height: 35px;
    padding: 7px 30px;
    margin-right: 18px;
}
.btn-lg:hover, .btn-lg:focus {
    background: #2D3895;
    color: #FFFFFF;
}
.btn-2 {
    background-color: #ffffff;
    border: 2px solid #2d3895;
    border-radius: 77px;
    color: #2d3895;
    padding: 7px 30px;
    margin-right: 18px;
	font-size: 18px;    
}
.btn-2:hover, .btn-2:focus {
    background-color: #428bca;
    color: #FFFFFF;
}



/*LOGIN PAGE*/
.page-login .welcome-message h2 {
    color: white;
    margin-top: 90px;
}
.page-login .row {
	background-color: #283897;
	color: white;
	height: 65vh;
	min-height: 425px;
}
.page-login .row > * {
/*  margin-top: 20vh;   */
    margin-top: 40px;
}
.page-login .login-from-wrapper {
    background-color: white;
    border: 2px solid #edece9;
    border-radius: 7px;
    padding: 30px;
}
.page-login .login-from-wrapper > img {
    display: block;
    margin: 0 auto 45px;
    width: 100%;
    min-width: 175px;
}
.page-login .login-from-wrapper > form:before {
    content: "";
    width: calc(100% - 30px);
    height: 2px;
    position: absolute;
    background-color: #EDECE9;
    left: 15px;
    margin-top: -27px;
}
.page-login .login-from-wrapper .form-group {
    margin-bottom: 25px;
}
.page-login .login-from-wrapper .form-group .form-control {
    height: 46px;
}
@media screen and (max-height: 750px), screen and (max-width: 835px) {
	.page-login .row > * {
		margin-top: 50px;
	}
}
@media screen and (max-height: 650px) {
	.page-login .row > * {
		margin-top: 20px;
	}
}
@media screen and (max-width: 767px) {
	.page-login .row > * {
		margin-top: 0;
	}
	.page-login .welcome-message h2 {
		margin-top: 40px;
	}
}
@media screen and (min-width: 1340px) {
	.page-login .welcome-message h1 {
		margin-top: 88px;
	}
}



/*RALLY COURSE*/
.rally-course-wrapper {
    display: block;
    margin: 0 auto;
    position: relative;
    width: 890px;
	transform-origin: top left;
}
.rally-course-wrapper .drive-logo {
    color: #333333;
    font-size: 25px;
    left: 369px;
    line-height: 66px;
    position: absolute;
    top: 240px;
    z-index: 1;
	-webkit-transition: 	color 0.2s ease-in-out;
	-moz-transition: 		color 0.2s ease-in-out;
	-o-transition: 			color 0.2s ease-in-out;
	transition: 			color 0.2s ease-in-out;
}
.rally-course-wrapper .drive-logo:hover, .rally-course-wrapper .drive-logo:focus {
    color: #d61f27;
	text-decoration: none;
}
.rally-course-wrapper .drive-logo img {
	display: block;
	width: 250px;
}
.track {
	width: 890px;
	height: 597px;
}
.car-wrapper.c1 { 	left: 565px;	top: 48px;	}
.car-wrapper.c2 { 	left: 777px; 	top: 204px;	}
.car-wrapper.c3 {	left: 593px;	top: 479px;	}
.car-wrapper.c4 {	left: 230px;	top: 518px;	}
.car-wrapper.c5 {	left: 205px;	top: 305px;	}
.car-wrapper.c6 {	left: 44px; 	top: 61px;	}

.car-wrapper.c2 .rotator { 	transform: rotate(135deg);	}
.car-wrapper.c3 .rotator {	transform: rotate(135deg);	}
.car-wrapper.c4 .rotator {	transform: rotate(180deg);	}
.car-wrapper.c5 .rotator {	transform: rotate(-47deg);	}
.car-wrapper.c6 .rotator {	transform: rotate(-21deg);	}

.car-wrapper {
    cursor: pointer;
    display: block;
    margin: -25px;
    padding: 50px 65px;
    position: absolute;
}
.car-wrapper .car {
	position: absolute;
	width: 104px;
	height: 49px;
	background-image: url(../images/img_car.png);
	background-repeat: no-repeat;
    margin-left: -50px;
    margin-top: -25px;
	-webkit-transition: 	margin-left 0.2s ease-in-out;
	-moz-transition: 		margin-left 0.2s ease-in-out;
	-o-transition: 			margin-left 0.2s ease-in-out;
	transition: 			margin-left 0.2s ease-in-out;
}
a.car-wrapper:hover .car {
	margin-left: -30px;
}
.drive-logo-is-hovered a.car-wrapper .car {
	margin-left: -30px;
}
a.car-wrapper:hover .car:before {
	opacity: 1;
}
.car-wrapper .car:before {
	position: absolute;
	width: 104px;
	height: 49px;
	background-image: url(../images/img_car.png);
	background-repeat: no-repeat;
	background-position: 0 -49px;
	content: "";
	opacity: 0;
	-webkit-transition: 	opacity 0.2s ease-in-out;
	-moz-transition: 		opacity 0.2s ease-in-out;
	-o-transition: 			opacity 0.2s ease-in-out;
	transition: 			opacity 0.2s ease-in-out;
}
.popup {
    background-color: rgba(41, 39, 93, 0.96);
    border-radius: 6px;
    margin-left: 46px;
    margin-top: -50%;
	pointer-events: none;
    position: absolute;
	opacity: 0;
	color: white;
    padding: 15px;
	white-space: nowrap;
	font-size: 14px;
    z-index: 1;
	-webkit-transition: 	margin-left 0.2s ease-in-out, opacity 0.2s ease-in-out;
	-moz-transition: 		margin-left 0.2s ease-in-out, opacity 0.2s ease-in-out;
	-o-transition: 			margin-left 0.2s ease-in-out, opacity 0.2s ease-in-out;
	transition: 			margin-left 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
.popup > span {
    display: block;
	font-size: 20px;
}
a.car-wrapper:hover .popup {
	margin-left: 86px;
	opacity: 1;
}
a.car-wrapper.c2 .popup, a.car-wrapper.c3 .popup, a.car-wrapper.c4 .popup { margin-left: 6px; }
a.car-wrapper.c2:hover .popup, a.car-wrapper.c3:hover .popup, a.car-wrapper.c4:hover .popup { margin-left: 46px; }
a.car-wrapper.c5 .popup { margin-left: 31px; margin-top: -80px; }
a.car-wrapper.c5:hover .popup { margin-left: 71px; }
.popup:before {
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(41, 39, 93, 0.96);
    border-top: 10px solid transparent;
    content: "";
    height: 0;
    left: -10px;
    position: absolute;
    top: calc(50% - 5px);
    width: 0;
}
.popup.right {
    right: 100%;
	margin-right: -30px;
	margin-top: -30%;
	-webkit-transition: 	margin-right 0.2s ease-in-out, opacity 0.2s ease-in-out;
	-moz-transition: 		margin-right 0.2s ease-in-out, opacity 0.2s ease-in-out;
	-o-transition: 			margin-right 0.2s ease-in-out, opacity 0.2s ease-in-out;
	transition: 			margin-right 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
a.car-wrapper.c1 .popup.right {
    right: calc(100% - 25px);
}
a.car-wrapper:hover .popup.right {
	margin-right: 10px;
}
.popup.right:before {
    border-left: 10px solid rgba(41, 39, 93, 0.96);
    border-right: medium none;
    left: auto;
    right: -10px;
}
.click-tip {
    left: 810px;
    pointer-events: none;
    position: absolute;
    top: 288px;
    z-index: 1;
}
.not-available.car-wrapper .car:before {
    opacity: 0.4;
}
.not-available > div.popup {
    text-indent: -9999px;
    white-space: initial;
    width: 220px;
}
.not-available > div.popup::after {
    content: "This Stage not yet available";
    display: block;
    margin-top: -20px;
    text-align: center;
    text-indent: 0;
	font-weight: bold;
}
.not-available > div.popup > * {
    display: none;
}
.not-available .popup {
    background-color: rgba(214, 31, 39, 0.85);
}
.not-available .popup::before {
    border-right-color: rgba(214, 31, 39, 0.85);
}
.not-available .popup.right::before {
    border-left-color: rgba(214, 31, 39, 0.85);
}
@media screen and (max-width: 920px) {
	.rally-course-wrapper {
		margin: 0;
		transform: scale(0.9);
	}
}
@media screen and (max-width: 830px) {
	.rally-course-wrapper {
		transform: scale(0.8);
	}
}
@media screen and (max-width: 740px) {
	.rally-course-wrapper {
		transform: scale(0.7);
	}
}
@media screen and (max-width: 650px) {
	.rally-course-wrapper {
		transform: scale(0.6);
	}
}
@media screen and (max-width: 560px) {
	.rally-course-wrapper {
		transform: scale(0.5);
	}
}
@media screen and (max-width: 470px) {
	.rally-course-wrapper {
		transform: scale(0.4);
	}
}
@media screen and (max-width: 380px) {
	.rally-course-wrapper {
		transform: scale(0.3);
	}
}
@media screen and (max-width: 290px) {
	.rally-course-wrapper {
		transform: scale(0.2);
	}
}
@media screen and (max-width: 200px) {
	.rally-course-wrapper {
		transform: scale(0.1);
	}
}



/*DRIVE RALLY STAGES*/
.stage-row {
    display: block;
    color: #8e91a2;
    font-size: 20px;
    border-bottom: 2px solid #EDECE9;
}
.stage-row:last-child {
    border: none;
}
a.stage-row:hover {
	background-color: #EDECE9;
}
.stage-row > div {
	display: inline-block;
    padding: 30px 10px;
    vertical-align: top;
}
.stage-row .car {
	position: relative;
	width: calc(25% - 42px);
	min-width: 104px;
	height: 49px;
	margin: 20px 20px 0 0;
	padding: 0;
	background-image: url(../images/img_car.png);
	background-repeat: no-repeat;
	-webkit-transition: 	margin 0.2s ease-in-out;
	-moz-transition: 		margin 0.2s ease-in-out;
	-o-transition: 			margin 0.2s ease-in-out;
	transition: 			margin 0.2s ease-in-out;
}
a.stage-row:hover .car {
	margin-right: 0;
	margin-left: 20px;
}
a.stage-row:hover .car:before {
	opacity: 1;
}
.stage-row .car:before {
	position: absolute;
	width: 104px;
	height: 49px;
    top: 0;
    left: 0;
	background-image: url(../images/img_car.png);
	background-repeat: no-repeat;
	background-position: 0 -49px;
	content: "";
	opacity: 0;
	-webkit-transition: 	opacity 0.2s ease-in-out;
	-moz-transition: 		opacity 0.2s ease-in-out;
	-o-transition: 			opacity 0.2s ease-in-out;
	transition: 			opacity 0.2s ease-in-out;
}
.stage-row .stage {
	width: 15%;
}
.stage-row .task {
	width: 35%;
}
.stage-row .date {
	width: 25%;
}
@media screen and (max-width: 615px) {
	.stage-row > div {
		padding: 0px 10px;
	}
	.stage-row .stage {
		width: auto;
		margin-top: 10px;
	}
	.stage-row .task {
		width: auto;
		display: block;
		margin-left: 130px;
		margin-top: -30px;
	}
	.stage-row .date {
		width: auto;
		margin-left: 130px;
		margin-bottom: 10px;
	}
}



/*STAGE 1*/
.point-form {
    font-size: 20px;
    padding-left: 22px;
    padding-bottom: 20px;
}
.row a {
    font-size: 20px;
	color: #333333;
}
.row a:hover {
    color: #D61F27;
}
.point-form li {
    padding: 20px 0 5px 0;
}
.point-form-imgs img {
    height: 400px;
}
.point-form-imgs > div {
    padding-bottom: 44px;
    border-bottom: 2px solid #EDECE9;
    margin-bottom: 30px;
}
.row.buttons {
	padding-bottom: 44px;
}
#stage1 .point-form-imgs img {
    height: 300px;
}
/*STAGE3*/
#stage3 .point-form-imgs img {
    height: 450px;
}



/*OBJECTIVES*/
.point-form li.fa {
	display: block;
    margin: 35px 0 20px 20px;
}
.point-form li.fa:before {
    margin-left: -40px;
    position: absolute;
    font-size: 30px;
}



/*RULES OF THE ROAD*/
.grand-prize h2:first-child {
    border: 2px solid #EDECE9;
    text-align: center;
    border-radius: 5px 5px 0 0;
    padding: 38px 0 20px;
    margin-bottom: 0;
}
.grand-prize .point-form {
    border: 2px solid #EDECE9;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 0 22px 15px;
    list-style: none;
}



/*PRIZES*/
.fa.fa-trophy::before {
    color: gold;
    margin-top: -7px;
    text-shadow: 0 -1px 0 #333333;
}



/*RESULTS*/
.dataTables_wrapper .dataTables_info {
    color: #ccc;
}
table.dataTable thead th, table.dataTable thead td {
    border-color: #edece9;
}
table.dataTable thead th, table.dataTable thead td {
    border-color: #edece9;
    color: #28275d;
    font-size: 30px;
    font-weight: normal;
}
.table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td, table.dataTable.no-footer {
    border: none;
    color: #999999;
    font-size: 20px;
    line-height: 32px;
}



/*BOOTSTRAP FIXES*/
.row .row {
    margin: 0;
}

table.dataTable thead th, table.dataTable thead td {
    padding: 8px;
}
