/* =========================
   BASE
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Inter',sans-serif;
background:url('https://www.essiesplace.nl/portfolio/F1/image/10.jpg') no-repeat center center fixed;
background-size:cover;
color:#ffffff;
}

/* donkere overlay */

body::before{
content:"";
position:fixed;
inset:0;
background:rgba(0,0,0,0.55);
z-index:-1;
}

/* =========================
   GRID LAYOUT
========================= */

.grid{
width:95%;
max-width:1500px;
margin:0 auto;
padding:40px 0;

display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:35px;
}

/* =========================
   STATS PAGE FIX
========================= */

.stats-page .grid{
grid-template-columns:1fr;
}

/* =========================
   YEAR BUTTONS
========================= */

.season-header{
position:absolute;
top:25px;
left:40px;
display:flex;
gap:15px;
z-index:10;
}

.season-btn{
font-family:'Oswald',sans-serif;
font-size:22px;
letter-spacing:2px;
background:#000;
color:#fff;
padding:8px 18px;
border-radius:8px;
text-decoration:none;
transition:0.2s ease;
}

.season-btn:hover{
background:#111;
}

.active-season{
border:2px solid #E10600;
}

/* =========================
   F1 BLACK BANNER
========================= */

.full-width-banner{
grid-column:1 / -1;
background:#000;
border-radius:25px;
height:160px;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
}

.full-width-banner img{
height:800px;
width:auto;
}

/* =========================
   F1 RED HEADER
========================= */

.box.box-large{
grid-column:1 / -1;
background:#E10600;
border-radius:25px;
padding:40px;
text-align:center;
text-decoration:none;
}

.box.box-large:hover{
background:#c00500;
}

.race-title{
font-family:'Oswald',sans-serif;
font-size:42px;
letter-spacing:3px;
color:#ffffff;
}

/* stats page header force */

.stats-page .box.box-large{
background:#E10600 !important;
}

/* =========================
   BOXES
========================= */

.box{
background:rgba(0,0,0,0.65);
backdrop-filter:blur(6px);
border-radius:20px;
padding:30px;
text-decoration:none;
color:#fff;
transition:0.2s ease;
min-width:0;
}

.box:hover{
background:rgba(0,0,0,0.75);
}

.full-width{
grid-column:1 / -1;
}

/* =========================
   TEXT
========================= */

.country{
font-family:'Oswald',sans-serif;
font-size:26px;
letter-spacing:2px;
margin-bottom:20px;
}

.event{
margin-bottom:18px;
}

.event-label{
font-family:'Oswald',sans-serif;
font-size:14px;
letter-spacing:2px;
opacity:0.7;
margin-bottom:4px;
}

.event-row{
display:flex;
justify-content:space-between;
align-items:center;
font-size:18px;
}

.event-date{
font-family:'Oswald',sans-serif;
font-weight:600;
font-size:24px;
}

.event-time{
font-family:'Inter',sans-serif;
font-weight:600;
}

/* =========================
   LINKS
========================= */

a{
text-decoration:none;
color:inherit;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:900px){

.season-header{
left:20px;
top:20px;
}

.race-title{
font-size:32px;
}

.country{
font-size:22px;
}

}

/* =========================
   RESULTS TABLE
========================= */

.matrix-scroll{
width:100%;
overflow-x:auto;
}

.matrix-scroll table{
min-width:2600px;
}

.results-table{
width:100%;
border-collapse:collapse;
font-size:14px;
margin-top:10px;
}

.results-table th,
.results-table td{
padding:8px 12px;
text-align:center;
white-space:nowrap;
min-width:110px;
}

.results-table th{
font-family:'Oswald',sans-serif;
letter-spacing:1px;
opacity:0.7;
}

.results-table th:first-child,
.results-table td:first-child{
text-align:left;
min-width:180px;
}

/* =========================
   TEAM COLORS
========================= */

.team-ferrari{color:#DC0000;}

.team-redbull{color:#0600EF;}
.team-redbullracing{color:#0600EF;}

.team-mclaren{color:#FF8700;}

.team-mercedes{color:#00D2BE;}

.team-astonmartin{color:#006F62;}

.team-williams{color:#005AFF;}

.team-haas{color:#B11226;}
.team-haasf1team{color:#B11226;}

.team-alpine{color:#0090FF;}

.team-racingbulls{color:#1E2A78;}

.team-rb{color:#1E2A78;}

.team-kicksauber{color:#39FF14;}

.team-stakef1team{color:#39FF14;}

.team-audi{color:#C0C0C0;}

.team-cadillac{color:#9E1B32;}

/* =========================
   FOOTER
========================= */

.site-footer{
width:95%;
max-width:1500px;
margin:40px auto 20px auto;
text-align:center;
font-size:12px;
color:#bbbbbb;
opacity:0.8;
}

.site-footer .disclaimer{
margin-bottom:6px;
line-height:1.5;
}

.site-footer .copyright{
font-size:11px;
opacity:0.7;
}