/*
red: #e10600 rgb(225,6,0)
white: #f0f0f0 rgb(240,240,240)
light gray: #d0d0d2 rgb(208,208,210)
dark gray: #38383f rgb(56,56,63)
dark: #15151e rgb(21,21,30)
*/

/* Bootstrap */
.container {
	max-width: 1300px;
}
.user-select {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* Own classes */
.title {
	font-family: f1Officeel;
	font-size: 40px;
	margin: 0;
}

/*Font*/
@font-face {
	font-family: f1Officeel;
	src: url(../fonts/Formula1-Bold.woff);
}

/* Text Selection */
*::-moz-selection {
	background-color: rgba(225,6,0,0.6);
}
*::selection {
	background-color: rgba(225,6,0,0.6);
}

/* Body */
body {
  margin: 0 auto;
  background-color: #f0f0f0;
}

/* Scrollbar */
body::-webkit-scrollbar {
	width: 15px;
}
body::-webkit-scrollbar-track {
	background-color: #38383f;
	box-shadow: 0 0 15px rgba(21,21,30,0.8) inset;
}
body::-webkit-scrollbar-thumb {
	background-color: #f0f0f0;
	border-radius: 30px;
	border: 4px solid rgba(160,160,160,0);
	background-clip: padding-box;
}
body::-webkit-scrollbar-thumb:hover {
	background-color: #e10600;
}

/* Nav */
.hamburger-button-box {
  width: 192px;
  height: 65px;
  background-color: rgba(240,240,240,0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: #e10600;
  border: 1px solid #38383f;
  border-radius: 15px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.3);
  text-align: center;
  line-height: 65px;
  position: fixed;
  top: 15px;
  left: 15px;
  box-sizing: border-box;
  z-index: 999;
}
.nav-logo {
	height: 40%;
	float: left;
	margin-top: 20px;
	margin-left: 15px;
}
.hamburger-button {
	width: 42px;
	height: 28px;
	float: right;
	margin-top: 18px;
	margin-right: 15px;
	cursor: pointer;
}
.bar {
	width: 100%;
	height: 6px;
	background-color: #38383f;
	border-radius: 5px;
	margin-bottom: 4.8px;
}
.bar:last-child {
	margin-bottom: 0;
}
.bar1, .bar3 {
	-webkit-transform: none;
	-ms-transform: none;
	-moz-transform: none;
	-o-transform: none;
	transform: none;
	transition: transform 0.3s;
}
.bar2 {
	opacity: 1;
	transition: opacity 0.3s;
}
.nav-btn-opened .bar1 {
	-webkit-transform: rotate(45deg) translate(7px,8px);
	-ms-transform: rotate(45deg) translate(7px,8px);
	-moz-transform: rotate(45deg) translate(7px,8px);
	-o-transform: rotate(45deg) translate(7px,8px);
	transform: rotate(45deg) translate(7px,8px);
}
.nav-btn-opened .bar2 {
	opacity: 0;
}
.nav-btn-opened .bar3 {
	-webkit-transform: rotate(-45deg) translate(6px,-8.5px);
	-ms-transform: rotate(-45deg) translate(6px,-8.5px);
	-moz-transform: rotate(-45deg) translate(6px,-8.5px);
	-o-transform: rotate(-45deg) translate(6px,-8.5px);
	transform: rotate(-45deg) translate(7px,-8.5px);
}

.nav {
	height: 100vh;
	background-color: rgba(240,240,240,0.95);
	-webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
	border-right: 1px solid #38383f;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
	box-sizing: border-box;
	position: fixed;
	top: 0;
	left: -12px;
	padding-top: 105px;
	overflow: hidden;
	z-index: 100;
	transition: width 0.3s;
}
.nav a {
	text-decoration: none;
}
.nav ul {
	width: 100%;
	list-style-type: none;
	margin: 0 0 0 0;
	padding-left: 0;
}
.nav ul li {
	width: 100%;
	height: 90px;
	border-bottom: 1px solid #38383f;
	line-height: 90px;
	padding-left: 27px;
	box-sizing: border-box;
	transition: 0.3s;
}
.nav ul li:first-child {
	border-top: 1px solid #38383f;
}
.nav ul li .current, .nav ul li:hover {
	border-bottom: 1px solid #e10600;
}
.nav ul li a, .nav-item-dropdown {
	font-family: f1Officeel;
	font-size: 24px;
	color: #38383f;
	display: block;
	cursor: pointer;
}
.nav ul li i {
	font-size: 27px;
}
.nav-closed {
	width: 0;
}
.nav-opened {
	width: 350px;
}

/* Social media */
.social-media-box {
  width: 60px;
  height: 280px;
  position: fixed;
  top: 50%;
  -webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	transform: translateY(-50%);
  right: 15px;
  z-index: 99;
}
.social-link {
  text-decoration: none;
  color: #38383f;
  font-size: 25px;
}
.social-media {
  width: 60px;
  height: 60px;
  background-color: rgba(240,240,240,0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: 1px solid #38383f;
  border-radius: 50%;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.3);
  text-align: center;
  line-height: 57px;
  margin-top: 8px;
  margin-bottom: 8px;
  box-sizing: border-box;
  transition: color 0.3s;
}
.facebook:hover {
  color: #4267b2;
}
.twitter:hover {
  color: #55acee;
}
.instagram:hover {
  color: #e4405f;
}
.youtube:hover {
  color: #ff0000;
}

/* Header */
header {
  width: 100%;
  height: 90vh;
	overflow: hidden;
}

.header-slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.header-slider .slide {
	height: 90vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
	outline: none;
	position: relative;
}

.header-slider-overlay {
  width: 100%;
  height: 90vh;
  background-image: linear-gradient(170deg, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
  z-index: 10;
}

.header-slider .arrow {
	width: 50px;
	height: 50px;
	background-color: rgb(21,21,30,0);
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	transform: translateY(-50%);
	text-align: center;
	line-height: 56px;
	cursor: pointer;
	z-index: 98;
}
.header-slider .arrow i {
	font-size: 20px;
	color: #ffffff;
}
.header-slider .arrow-prev {
	left: 5px;
	transition: left 0.5s;
}
.header-slider .arrow-prev:hover {
	left: -5px;
}
.header-slider .arrow-next {
	right: 5px;
	transition: right 0.5s;
}
.header-slider .arrow-next:hover {
	right: -5px;
}

.slide-1 {
  background-image: url("../img/header-slider/slide_1.jpg");
}
.slide-2 {
  background-image: url("../img/header-slider/slide_2.jpg");
}

.slide-content {
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 20;
}
.slide-text {
  margin-top: 25vh;
	position: relative;
	margin-left: 25vw;
  color: white;
	padding-right: 15px;
}
.slide-text h1 {
  font-family: f1Officeel;
  font-size: 40px;
}
.slide-text p {
  font-family: 'Titillium Web', sans-serif;
  font-size: 22px;
}

.header-no-slide-overlay {
	width: 100%;
	height: 90vh;
	position: absolute;
	top: 0;
}

/* Header overlay */
.header-overlay {
  width: 100%;
  height: 56vh;
  background-image: url("../img/header_overlay_transparent.png");
	background-position: 20% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 20px;
  z-index: 95;
}

/* Countdown box homepage */
.countdown-box {
	width: 100%;
	box-sizing: border-box;
	background-image: linear-gradient(120deg, rgba(208,208,208,1), rgba(208,208,208,0));
	border-bottom: 1px solid #d0d0d2;
	overflow: hidden;
}
.countdown-track {
	width: 100%;
}
.countdown-box p {
	font-family: f1Officeel;
	font-size: 28px;
}
#countdown-timer {
	font-family: f1Officeel;
	font-size: 28px;
}

/* 2021 box homepage */
.f1-2021-box {
	width: 100%;
	background-image: linear-gradient(200deg, rgba(225,6,0,1), rgba(225,6,0,0));
	border-top: 1px solid #e10600;
	border-bottom: 1px solid #e10600;
	padding-top: 40px;
	padding-bottom: 40px;
	margin-top: 40px;
}
.f1-2021-box p {
	font-family: f1Officeel;
	font-size: 55px;
}
.f1-car {
	width: 100%;
}

/* News box homepage */
.news-box {
	width: 100%;
	background-image: linear-gradient(150deg, rgba(208,208,208,1), rgba(208,208,208,0));
	border-top: 1px solid #d0d0d2;
	border-bottom: 1px solid #d0d0d2;
	margin-top: 40px;
	text-align: center;
}
.news-box-title {
	width: 100%;
	text-align: center;
}
.news-box-items {
	width: 100%;
	padding-top: 25px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.news-item-link {
	text-decoration: none !important;
	font-family: f1Officeel;
}
.news-item {
	background-color: #d0d0d2;
	border: 1px solid #38383f;
	border-radius: 15px;
	position: relative;
	overflow: hidden;
	transition: border 0.3s, box-shadow 0.3s;
}
.news-item:hover {
	border: 1px solid #e10600;
	box-shadow: 2px 3px 10px rgba(0,0,0,0.1);
}
.breaking {
	width: 100%;
	position: absolute;
	top: 245px;
	background-color: rgba(0,0,0,0.5);
	border-top: 1px solid #ffea08;
	border-bottom: 1px solid #ffea08;
	padding-top: 2px;
	padding-bottom: 2px;
	font-family: f1Officeel;
	font-size: 15px;
	text-transform: uppercase;
	color: #ffffff;
}
.news-item-image-box {
	width: 100%;
	height: 280px;
	overflow: hidden;
}
.news-item-image {
	width: 100%;
	height: 100%;
	background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
	transition: transform 0.3s;
}
.news-item:hover .news-item-image {
	transform: scale(1.04);
}
#news-1 {
	background-image: url('../img/news/news_1.jpg');
}
#news-2 {
	background-image: url('../img/news/news_2.jpg');
}
#news-3 {
	background-image: url('../img/news/news_3.jpg');
}
#news-4 {
	background-image: url('../img/news/news_4.jpg');
}
.news-label {
	width: 70px;
	height: 50px;
	background-color: rgba(240,240,240,0.8);
	border: 1px solid #38383f;
	border-radius: 15px;
	text-align: center;
	line-height: 47px;
	font-size: 30px;
	color: #38383f;
	position: absolute;
	top: 10px;
	right: 10px;
	transition: 0.3s;
	z-index: 1;
}
.news-item:hover .news-label {
	border: 1px solid #e10600;
	color: #e10600;
}
.news-item-text {
	width: 100%;
	padding: 20px 0 25px 0;
}
.news-item-text p {
	margin: 0;
	font-size: 20px;
	color: #38383f;
	margin-left: 10px;
	margin-right: 10px;
}

/* Standings box homepage */
.standings-box {
	width: 100%;
	height: 500px;
	background-color: #38383f;
	border-top: 1px solid #38383f;
	border-bottom: 1px solid #38383f;
	margin-top: 40px;
}

/* Footer */
footer {
	width: 100%;
	background-color: #15151e;
}
.footer-logo {
	height: 50px;
}
footer p {
	font-family: f1Officeel;
	font-size: 14px;
	color: #f0f0f0;
	margin-top: 2px;
	margin-bottom: 0;
}

@media only screen and (max-width: 1199px) {

	/* Own classes */
	.title {
		font-size: 34px;
	}

	/* Social media */
	.social-media-full-box {
		width: 65px;
		height: 200px;
		position: fixed;
	  top: 50%;
	  -webkit-transform: translateY(-50%);
		-ms-transform: translateY(-50%);
		-moz-transform: translateY(-50%);
		-o-transform: translateY(-50%);
		transform: translateY(-50%);
	  z-index: 99;
	}
	.social-closed {
		right: -45px;
		transition: .3s;
	}
	.social-opened {
		right: 15px;
		transition: .3s;
	}
	.social-media-show-mobile {
		margin-top: 82px;
		font-size: 22px;
		color: #e10600;
	}
	.social-button-closed {
		transform: rotate(0deg);
		transition: .2s;
	}
	.social-button-opened {
		transform: rotate(180deg);
		transition: .2s;
	}
	.social-media-box {
	  width: 40px;
	  height: 100%;
		right: 0;
	}
	.social-link {
	  text-decoration: none;
	  color: #38383f;
	  font-size: 20px;
	}
	.social-media {
	  width: 40px;
	  height: 40px;
	  line-height: 38px;
	}

	/* Header */
	.header-slider .arrow {
		width: 40px;
		height: 40px;
	}
	.header-slider .arrow i {
		font-size: 16px;
	}
	.slide-text h1 {
	  font-size: 28px;
	}
	.slide-text p {
	  font-size: 18px;
	}

	/* Countdown box homepage */
	.countdown-box p {
		font-size: 22px;
	}
	#countdown-timer {
		font-size: 22px;
	}

	/* 2021 box homepage */
	.f1-2021-box p {
		font-size: 22px;
	}

}
