/*
Theme Name: OG F1 theme
Theme URI: http://www.oggroup.com/
Author: OG Group
Author URI: ttp://www.oggroup.com/
Description: The F1 theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: responsive, custom-logo, widgets, seo
Template: og-theme
Version: 1.0.0
*/
/*
@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');
*/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');

:root
{
	--og-sport-primary-color: #E10600;
	--f1-red: #E10600;
	--f1-white: #fff;
	--f1-black: #000;
	--f1-background-color: #fff;
	--f1-content-width: 1200px;

/*
	--og-sport-primary-color: #164281;
	--og-sport-secondary-color: #FFD600;
	--og-sport-text-color: #444;
	--og-sport-text-disabled-color: #ededed;
	--og-sport-border-color: #ededed;

	--og-sport-header-color: #000000;
	--og-sport-header-font: Quantico;

	--og-sport-text-xl-size: 2.25rem;
	--og-sport-text-big-size: 1.5rem;
	--og-sport-text-normal-size: 1.125rem;
	--og-sport-text-small-size: 0.825rem;

	--og-sport-standard-border-radius: 0.5rem;
*/
}

/*
*
{
	font-family: Roboto;
}
*/

p, li, p span
{
	font-family: Roboto !important;
		line-height: 2;
}

section a
{
	text-decoration: none;
}

body
{
	max-width: var(--f1-content-width);
	background-color: var(--f1-background-color);
	margin: auto;
	overflow-x: hidden;
}

body.home {
/*	background-image: URL('https://www.formel1.se/wp-content/themes/og-f1-theme/assets/images/f1-top.jpg'); */
	background-image: URL('https://www.formel1.se/wp-content/uploads/2025/03/f1-top-bg.jpg');
	background-repeat: repeat-x;
	background-position: top center;
}

body.single, body.page {
	background-image: URL('https://www.formel1.se/wp-content/uploads/2025/03/f1-top-bg.jpg');
	background-repeat: repeat-x;
	background-position: top center;
	background-size: 100% 180px;
}

body.home {
	background-size: 100% 385px;
}

header
{
	display: flex;
	justify-content: space-between;
	background-color: var(--f1-red);
	background-color: #E10600;
	margin: 2rem auto 0 auto;
	padding: 15px 25px;
}
/*
nav {
	margin-top: 5px;
}
*/
nav ul li.menu-item a {
	font-family: "Orbitron", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 14px;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--f1-white);
	letter-spacing: 2px;
}

main
{
	margin: auto;
}

#breadcrumbs {
/* 	margin-top: -15px; */
	padding-bottom: 15px;
}

#breadcrumbs > * {
	color: var(--f1-white) !important;
	margin-bottom: 0px;
}

#breadcrumbs p span span a {
	color: var(--f1-white) !important;
}

.entry-meta {
	color: #7d7d7d;
	font-size: 15px;
	margin: 10px 0px 15px;
}

h1,
h2,
h3,
h4,
.widget-header-text
{
	font-family: Orbitron;
}

p
{
	font-family: 'Roboto',lato,'helvetica neue',helvetica,arial,sans-serif;
	font-size: 16px;
	margin-bottom: 1.25rem;
	line-height: 1.6;
}

a, a:visited, a:hover, a:active {
	color: darkred;
}

.content > section > *,
.front-page-content > *
{
	  max-width: 1200px;
	  margin-left: auto;
	  margin-right: auto;
}
.content > section,
.front-page-content
{
	padding: 3rem 0rem;
}

.widget-header {
	margin-bottom: 25px;
}
.widget-header-top {
	color: var(--f1-red);
	font-family: "Orbitron", sans-serif;
	font-size: 14px;
	letter-spacing: 32.5%;
	margin-bottom: 10px;
}

.widget-header-bottom {
	display: flex;
	justify-content: space-between;
}

.last-race-results .widget-header-top {
	color: var(--f1-white);
}

.widget-header-title {
	display: flex;
	align-items: center;
	/*color: var(--f1-white);*/
	font-family: "Orbitron", sans-serif;
	font-size: 34px;
}

.widget-header-spacer {
	flex: 1px;
	margin-left: 25px;
	margin-right: 35px;
	margin-bottom: 24px;
	border-bottom: 1px solid #383838;
}

.widget-header-button {
	transform: skew(-35deg);
	background-color: var(--f1-red);
	min-width: 240px;
	margin-right: 38px;
}

.widget-header-button-skew {
	transform: skew(-35deg);
	background-color: var(--f1-black);
	position: absolute;
	top: 0px;
	height: 100%;
	right: -20px;
	width: 10px;
}

.widget-header-button-text {
	transform: skew(35deg) !important;
	text-align: center;
	padding: 16px;
}

.widget-header-button-text a {
	color: var(--f1-white);
	font-family: "Orbitron", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 15px;
	text-decoration: none;
	letter-spacing: 2px;
}

.last-race-results .widget-header-button {
	background-color: var(--f1-white);
}

.last-race-results .widget-header-button-text a {
	color: var(--f1-black);
}

.last-race-results .widget-header-button-skew {
	background-color: var(--f1-white);
}

.last-race-results .last-race {
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 1.5rem;
	display: grid;
	padding-top: 25px;
}

.cards,
.f1-race-cards {
	display: flex;
	justify-content: space-between;
}

.cards > *, .f1-race-cards > *,
.f1-standing-cards > * {
	width: calc( 100%/3 - 1.5rem );
}

.recent-articles-cards {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
	gap: 45px;
}

.recent-articles-cards > .recent-article-card {
	flex: 1 1 30%;

	box-shadow: 0px 4px 4px 0px #000,inset 0 0 0 1000px rgba(0,0,0,0.25);
	background-color: #000 !important;
	background-repeat: no-repeat;
	min-height: 230px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
}

.recent-article-text {
	text-align: center;
	color: #fff;
	font-size: 20px;
  	text-shadow: 1px 1px 6px black;
}

.card h3 a
{
	font-family: Roboto;
	font-weight: 600;
	letter-spacing: 8%;
	min-height: 66px;
	line-height: 130%;
	color: var(--f1-black);
	text-decoration: none;
}

.cards .date
{
	font-family: "Orbitron", sans-serif;
	font-size: 13px;
	font-weight: bold;
}

.cards *
{
	color: black;
	text-decoration: none;
}

.content > section:nth-child(2),
.content > section:nth-child(8)
{
	background: var(--f1-red);
	width: calc(100vw);
	margin-left: calc(-50vw + 50%);
/*
	width: calc(100vw - 20px);
	margin-left: calc(-50vw + 50% + 10px);
*/
}

.last-race-results .widget-header-spacer {
	border-bottom: 1px solid #EB5551;
}

.last-race,
.last-races,
.next-races,
.f1-season-constructor-standings,
.f1-season-driver-standings,
.recent-articles {
	font-family: "Orbitron", sans-serif;
}
/*
.gc-span-2 {
	grid-column: 1 / span 2;
}
*/
.last-race-results .first-driver-wrapper {
	grid-row: 1 / span 2;
}

.first-driver-box {
	padding-right: 10px;
}
.first-driver-box-nr, .driver-box-nr {
	background-color: var(--f1-white);
	color: var(--f1-red);
	font-size: 92px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	padding: 25px 0px;
}

.driver-box
{
	display: flex;
}

.driver-box-nr {
	display: inline-block;
	font-size: 32px;
	margin-right: 15px;
	min-width: 150px;
	width: 150px;
}

.driver-box-nr-name {
	font-size: 22px;
	text-overflow: ellipsis;
	width: 80%;
	overflow: hidden;
	margin-left: auto;
	margin-right: auto;
}

.first-driver-box-nr-name {
	font-size: 22px;
}

.first-driver-box-name, .driver-box-name {
	display: flex;
  	align-items: center;
}

.driver-box-race-result
{
	color: white;
    display: flex;
  flex-direction: column;
  justify-content: center;
}

.first-driver-box-pos-name, .driver-box-pos-name {
	font-size: 20px;
/*	font-weight: 700; */
	color: var(--f1-white);
	display: inline-block;
}

.first-driver-box-pos, .driver-box-pos {
  height: 22px;
  width: 28px;
  background-color: var(--f1-white);
  border-radius: 50%;
  display: inline-block;
  color: var(--f1-red);
  text-align: center;
  font-size: 13px;
  margin-right: 0.5rem;
  padding-top: 6px;
  letter-spacing: 1px;
  padding-left: 2px;
  font-weight: bold;
}

.driver-box-pos {
	font-size: 11px;
	margin-right: 8px;
	height: 20px;
	width: 25px;
	letter-spacing: 1px;
}

.driver-box-pos-name {
	font-size: 18px;
}

.first-driver-box-time {
	display: flex;
	justify-content: space-between;
	color: var(--f1-white);
	font-size: 18px;
	margin-top: 0.5rem;
    align-items: center;
}

.driver-box-time {
	margin: 10px 0px;
    font-size: 16px;
}

.recent-posts img {
	width: 100%;
	height: auto;
}

.home main > section .recent-posts .widget-header-title,
.home main > section .recent-posts  .widget-header-top {
	color: var(--f1-white);
}

.last-races .f1-race-card-info a,
.next-races .f1-race-card-info a,
.recent-articles .recent-article-text a {
	color: var(--f1-white);
	text-decoration: none;
}


.last-races .widget-header-title,
.next-races .widget-header-title,
.recent-articles .widget-header-title {
	color: var(--f1-black);
}

.last-races .widget-header-spacer,
.next-races .widget-header-spacer,
.recent-articles .widget-header-spacer,
.recent-articles .widget-header-title {
	border-bottom: 1px solid #f2f2f2;
}

.last-race-results .widget-header-title  {
	color: var(--f1-white);
}

.recent-posts .widget-header-button-skew {
	background-color: var(--f1-red);
}

.last-races .widget-header-button-skew,
.next-races .widget-header-button-skew,
.recent-articles .widget-header-button-skew {
	background-color: var(--f1-red);
}

.f1-race-card {
	background-position: center top;
	background-repeat: no-repeat;
	box-shadow: 0px 4px 4px 0px #000,inset 0 0 0 1000px rgba(0,0,0,.25);
	max-height: 295px;
	background-color: #000;


/*
	display: table;
	color: white;
	filter: brightness(50%);
	box-shadow: inset 0px 0px 400px 110px rgba(0, 0, 0, .7);
	background-blend-mode: darken;
*/
	/*
	box-shadow: 0px 4px 4px 0px #00000040,inset 0 0 0 1000px rgba(0,0,0,.5);
	background-color: white;
	background-repeat: no-repeat;
	*/
}

/*
  display: table;
  width: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('http://placehold.it/350x150');
  background-position: center top;
  height: 350px;
  color: white;
*/

.f1-race-card-top
{
	display: flex;
	justify-content: space-between;
	padding: 10px;
	color: white;
	font-size: 16px;"
}

.f1-race-card-info {
	text-align: center;
	font-size: 20px;
	color: var(--f1-white);
	font-weight: 500;
	box-sizing: border-box;
	padding-top: 50px;
}

.f1-race-card-result {
	background-color: #f2f2f2;
	width: 93%;
	margin: auto;
	margin-top: 30px;
	padding-bottom: 15px;
}

.last-race-round, .f1-race-card-next-round {
	font-size: 16px;
	font-weight: 500;
	padding: 10px;
}

.last-race-drivers-info {
	display: flex;
	justify-content: space-between;
	padding-left: 10px;
	padding-right: 10px;
}

.next-races {
	margin-top: 175px;
}

.next-races .f1-race-card-info {
	padding-bottom: 50px;
}

.f1-race-card-next-round {
	color: var(--f1-white);
}

.last-race-driver {
	width: calc( 100%/3 - 0.4rem );
}

.last-race-podium {
	background-color: var(--f1-white);
	text-align: center;
	color: var(--f1-red);
	font-size: 26px;
	border-radius: 10px;
	flex-direction: column;
  	align-content: center;
  	justify-content: center;
}

.last-race-podium-01 {
	min-height: 150px;
}

.last-race-podium-02 {
	min-height: 125px;
}

.last-race-podium-03 {
	min-height: 110px;
}

.last-race-driver-pos {
	height: 31px;
	width: 42px;
	background-color: var(--f1-red);
	color: var(--f1-white);
	border: 3px solid var(--f1-white);
	border-radius: 50%;
	text-align: center;
	font-size: 16px;
	padding-top: 10px;
	letter-spacing: 2px;
	padding-left: 2px;
	margin: auto;
	margin-bottom: 8px;
}

.last-race-driver-pos-02 {
	margin-top: 25px;
}

.last-race-driver-pos-03 {
	margin-top: 40px;
}

.last-race-podium-name {
	font-size: 16px;
	margin: 5px 0px;
}

.last-race-podium-team {
	font-size: 16px;
}

/*
.content > section:nth-child(8)
{
	background: var(--f1-red);
}
*/

.content > section:nth-child(5),
.content > section:nth-child(6)
{
	background: #f2f2f2;
	width: calc(100vw);
	margin-left: calc(-50vw + 50%);
/*
	width: calc(100vw - 20px);
	margin-left: calc(-50vw + 50% + 10px);
*/
}

.f1-season-constructor-standings .widget-header-title,
.f1-season-driver-standings .widget-header-title {
	color: var(--f1-black);
}
.f1-season-constructor-standings .widget-header-button-skew,
.f1-season-driver-standings .widget-header-button-skew {
	background-color: var(--f1-red);
}
.f1-standing-cards {
	display: flex;
	justify-content: space-between;
}
.standing-driver-card {
	display: flex;
	flex-direction: column;
	text-align: center;
}
.standing-constructor-placement,
.standing-driver-placement {
	position: absolute;
	top: 15px;
	left: 0px;
	height: 45px;
	width: 45px;
	background-color: var(--f1-black);
	color: var(--f1-white);
	border: 3px solid var(--f1-white);
	border-radius: 50%;
	font-size: 18px;
	letter-spacing: 2px;
	margin: auto;
	align-items: center;
	justify-content: center;
	display: flex;
}

.standing-constructor-focus,
.standing-driver-focus {
	position: relative;
	height: 220px;
	width: 220px;
	background-color: var(--f1-black);
	color: var(--f1-white);
	border-radius: 50%;
	margin: auto;
	align-items: center;
	justify-content: center;
	display: flex;
}

.standing-constructor-focus-01 .standing-constructor-placement,
.standing-driver-focus-01 .standing-driver-placement
{
	top: 25px;
}


.standing-constructor-focus-01,
.standing-driver-focus-01 {
	background-color: var(--f1-red);
	height: 260px;
	width: 260px;
}

.standing-constructor-focus, .standing-constructor-focus-0 {
	background-color: var(--f1-white);
	color: var(--f1-black)
}

.standing-constructor-focus-01 .standing-constructor-placement,
.standing-driver-focus-01 .standing-driver-placement {
	background-color: var(--f1-red);
}

.standing-constructor-pts,
.standing-driver-pts {
	margin: 10px 0px;
}

.standing-driver-number {
	font-size: 32px;
}

.standing-driver-name {
	font-size: 22px;
}

.standing-driver-name-full,
.standing-constructor-name {
	font-size: 22px;
	margin-bottom: 10px;
}

.front-faq .wp-block-group__inner-container {
	max-width: 70%;
	margin: auto;
}

.front-faq .wp-block-ub-content-toggle-accordion {
	border: none;
}

.front-faq .wp-block-ub-content-toggle-accordion-title-wrap {
	background-color: var(--f1-black) !important;
}

.front-faq .wp-block-ub-content-toggle-accordion-toggle-wrap.right {
	color: var(--f1-white) !important;
}

.front-faq h2 {
	color: var(--f1-white);
	font-family: "Orbitron", sans-serif;
	font-size: 34px;
	color: var(--f1-white);
	text-align: center;
	margin-top: 0;
}

.front-faq h3 {
	color: var(--f1-white) !important;
	font-weight: normal;
}

.front-faq h4 {
	color: var(--f1-white);
	font-family: "Orbitron", sans-serif;
	font-size: 14px;
	font-weight: normal;
	text-align: center;
	letter-spacing: 32.5%;
	margin-bottom: 10px;
}

.front-faq .wp-block-ub-content-toggle-accordion-content-wrap {
	background-color: var(--f1-white);
	color: var(--f1-black);
}

.featured-thumbnail {
	float: right;
	margin: 0px 0px 15px 15px;
}

.featured-thumbnail-page {
	margin: 0px 0px 15px 15px;
}

.f1-table-wrapper h2, .event-odds-wrapper h2 {
	background: black;
	color: white;
	font-weight: bold;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
	padding: 5px 10px;
	font-size: 1.4rem;
}
.published-box {
	padding: 1rem;
	line-height: 1.61;
	border: 1px solid #ededed;
	margin-bottom: 20px;
}

.published-box p {
	margin: 0px;
}

article footer {
	background: white;
}

footer
{
	align-items: center;
	background: #191919;
	padding: 1.5rem;
	width: calc(100vw);
	margin-left: calc(-50vw + 50%);

}

footer .footer-container {
	max-width: var(--f1-content-width);
	margin: auto;
}

.footer-header
{
	display: inline-block;
	font-size: 1.125rem;
	font-weight: bold;
	margin-bottom: 1rem;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 0.25rem solid var(--f1-red);
	padding-bottom: 0.25rem;
}

footer a
{
	color: #ffffff;
	text-decoration: none;
}

footer li
{
	list-style: none;
}

footer *
{
	color: var(--f1-white);
	line-height: 1.61;
}

footer nav,
footer .sister-sites
{
	margin-bottom: 1rem;

}

.footer-site-info
{
	margin-top: 1.125rem;
}

footer nav li a,
footer .sister-sites li a
{
	padding: 0;
	margin-right: 1.5rem;
	margin-bottom: 1.125rem;
	color: var(--f1-white);
}

nav *,
.sister-sites *
{
	text-transform: uppercase;
}

.sister-sites ul
{
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.event-odds-container *
{
	background-color: unset !important;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0 0 1.5em;
	width: 100%
}

tr {
	border-bottom: 1px solid #232229;
}

tr > th, tr > td {
	padding: 1rem 0;
	color: #444444 !important;
	text-align: left;
}

select {
	margin: 0px;
	padding: 0.5rem;
	border: 1px solid #ccc;
	text-transform: none;
	color: #333;
	font-size: 1rem;
	line-height: 1.5;
}

main {
	padding-left: 20px;
	padding-right: 20px;
}

.last-race-results > *,
.f1-season-driver-standings > *,
.f1-season-constructor-standings > * {
	padding: 0 20px;
}

.driver-box-team {
	background: white;
	width: fit-content;
	padding-left: 5px;
	padding-right: 5px;
	line-height: 1;
}


@media screen and (min-width: 900px)
{
	.first-driver-box-name
	{
		margin-top: 0.5rem;
	}
}


@media screen and (max-width: 900px)
{
/*
	body {
		position: fixed;
	}
*/
	body.single,
	body.page
	{
		background-size: 100% 145px;
	}

	body.home {
		background-size: 100% 485px;
	}

	h3 {
		margin: 5px 0px;
	}

	header {
		margin: unset;
	}

	#breadcrumbs {
		margin-top: -15px;
		margin-bottom: 0px;
	}

	figure * {
		width: 100%;
		height: auto;
	}


	.content {
		padding: 0.875rem;
	}

	.content > section, .front-page-content {
		padding: 2rem 0rem;
	}

	.content > section > *, .front-page-content > * {
	}

	.widget-header-title {
		font-size: 28px;
	}

	.widget-header-button {
		max-width: calc(100vw - 150px);
		margin: auto;
	}

	.widget-header-bottom {
		display: unset;
	}

	/*.cards, .f1-race-cards {
		display: unset;
	}*/
	.cards > *, .f1-race-cards > * {
		width: unset;
	}
	.card {
		max-width: 100%;
		margin-bottom: 15px;
	}
	.card img {
		max-width: 100%;
	}
	.card .date {
		font-weight: unset;
	}

	.content > section:nth-child(2),
	.content > section:nth-child(4),
	.content > section:nth-child(6)
	{
		width: calc(100vw - 40px);
		margin-left: calc(-50vw + 50%);
		padding: 20px;
	}
/*
	.content > section:nth-child(4)
	{
		background: #ccc;
		width: calc(100vw);
		margin-left: calc(-50vw + 50%);
*/
	.last-race-section .widget-header-top {
		font-size: 18px;
	}

	.last-race-section .widget-header-title {
		font-size: 24px;
	}

	 .widget-header-top {
		text-align: center;
	}

	.widget-header-title {
		justify-content: center;
		margin-bottom: 20px;
	}

	.widget-header-spacer {
		display: none;
	}

	.widget-header-button {
		max-width; 75%;
	}
/*
		grid-template-columns: repeat(2, 1fr);
		grid-template-columns: unset !important;
*/
	.last-race-results > *
	{
  	padding-left: 3px;
  	padding-right: 3px;
	}

	.last-race-results .last-race {
		grid-template-columns: repeat(2, 1fr);
	}

	.last-race-results .first-driver-wrapper {
		grid-column: 1 / span 2;
	}

	.first-driver-box {
		padding-right: unset;
	}

	.first-driver-box-nr, .driver-box-nr {
		margin-bottom: 10px;
	}

	.driver-box-nr {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;

		margin-right: unset;
		min-width: inherit;
		width: 100%;
	}

	.driver-box {
		flex-direction: column;
		padding-right: unset;
	}

	.driver-box-nr-name {
		font-size: 16px;
	}

	.driver-box-pos-name {
		font-size: 13px;
	}

	.last-races div.f1-race-cards > div:nth-child(n + 2) {
		margin-top: 150px;
	}

	.cards, .f1-race-cards
	{
		flex-direction: column;
	}

	.f1-race-cards
	{
		gap: 20px;
	}

	.last-races .f1-race-card:not(:last-child)
	{
		margin-bottom: 140px;
	}

	.next-races div.f1-race-cards > div:nth-child(n + 2) {
		margin-top: 25px;
	}

	.f1-standing-cards {
		flex-direction: column;
		gap: 25px;
	}

	.f1-standing-cards .standing-driver-card {
		width: 100%;
	}
	.f1-standing-cards :nth-child(1) {
	  order: 2;
	}
	.f1-standing-cards :nth-child(2) {
	  order: 1;
	}
	.f1-standing-cards :nth-child(3) {
	  order: 3;
	}

	.f1-standing-cards .standing-driver-card > * {
		order: unset;
	}

	.recent-articles-cards {
		gap: 15px;
	}
	.recent-articles-cards > .recent-article-card {
		flex: 1 1 100%;
	}
	.front-faq .wp-block-group__inner-container {
		max-width: unset;
	}

	.featured-thumbnail {
		float: unset;
		margin: unset;
	}

	.featured-thumbnail img {
		width: 100%;
		max-width: 100%;
		height: auto;
	}

	.wp-block-ub-content-toggle
	{
		margin-left: 30px;
		margin-right: 30px;
	}

	.wp-block-ub-content-toggle > *
	{
		margin-bottom: 20px;
	}
/*
	.last-race-results .last-race {
		grid-template-columns: repeat(3,minmax(0,1fr));
		gap: 1.5rem;
		display: grid;
		padding-top: 25px;
	}
*/
}
