:root {
    --primary-color: #1e41c7;
    --secondary-color: #e10600;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --visited-link: #6c757d;
    --background-color: #ffffff;
    --header-bg: #1e41c7;
    --nav-bg: #343a40;
    --footer-bg: #343a40;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Arial Narrow', Arial, sans-serif;
    --base-font-size: 1rem;
    --line-height: 1.6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

body.home {
    background-image: url('../img/zantvoort.jpg');
}

body.career {
    background-image: url('../img/Spa.jpg');
}

body.records {
    background-image: url('../img/Hungaroring.jpg');
}

body.contact {
    background-image: url('../img/lastPageBackground.avif');
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

header {
    background-color: var(--header-bg);
    color: white;
    padding: 2rem;
    text-align: center;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0;

}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 65, 199, 0.7);
}

header h1, header p {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

nav {
    background-color: var(--nav-bg);
    padding: 1rem;
    margin-bottom: 0;

}

nav ul {
    display: flex;
    list-style-type: none;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.accessibility-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.accessibility-controls button {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

main {
    flex: 1;
    padding: 0 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif !important;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
}

h1 {
  font-size: 3rem;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 0.5rem;}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: underline;
}

a:visited {
    color: var(--visited-link);
}

nav a, footer a {
    text-decoration: none;
}

nav ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;

}
nav ul li a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

article {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

figure {
    margin: 1rem 0;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.thumbnail {
    width: 300px;
    height: auto;
    transition: transform 0.3s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

figcaption {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #666;
}

video {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
.video-container {
    margin: 0;
    padding: 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: rgba(6, 0, 239, 0.05);
    border-radius: 0 0 8px 8px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
table {
  width: 100%;
  border-collapse: collapse;
}

table td {
  padding: 0.8rem;
  text-align: center;
  color: #000;
  font-size: 1.2rem;
  font-weight: 500;
}

th {
    background-color: var(--primary-color);
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}
hr {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, #0600EF, #FF0000);
}
form {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

fieldset {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

legend {
    padding: 0 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 0.5rem;
}

button, input[type="submit"], input[type="reset"] {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    margin-right: 0.5rem;
}

button:hover, input[type="submit"]:hover, input[type="reset"]:hover {
    background-color: #0d2b8e;
}

footer {
    background-color: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #a3d0fd;
}

details {
    margin: 1rem 0;
    padding: 0.5rem;
    background-color: var(--light-color);
    border-radius: 4px;
}

summary {
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
  .video-container {
    margin: 1rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .thumbnail {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    main {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 2rem;
    }
    
    .contact-form {
       grid-column: 1;
}

.contact-info {
    grid-column: 2;
}
}
@media print {
nav, .accessibility-controls, footer {
display: none;
}

body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: none;
}

a {
    color: #000;
    text-decoration: none;
}

img {
    max-width: 50%;
    height: auto;
    opacity: 0.8;
}

video {
    display: none;
}

article {
    page-break-inside: avoid;
}

h1, h2, h3 {
    page-break-after: avoid;
}
}

.intro {
margin-bottom: 2rem;
}

.intro article {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}

.highlights article {
padding: 1.5rem;
transition: transform 0.3s;
}

.highlights article:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-section {
margin-top: 2rem;
}

.timeline-item {
position: relative;
padding-left: 2rem;
border-left: 3px solid var(--primary-color);
margin-bottom: 3rem;
}

.timeline-item:last-child {
margin-bottom: 0;
}

.timeline-item::before {
content: '';
position: absolute;
left: -10px;
top: 0;
width: 16px;
height: 16px;
border-radius: 50%;
background-color: var(--secondary-color);
}

.stats {
background-color: #f8f9fa;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
margin-bottom: 2rem;
}

.stats ul {
list-style-type: none;
}

.stats li {
margin-bottom: 0.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px dashed #ddd;
}

.stats li:last-child {
border-bottom: none;
}

.records table {
margin: 1rem 0 2rem;
}

.season-stats {
background-color: #f8f9fa;
padding: 1.5rem;
border-radius: 8px;
margin-top: 2rem;
}

.contact-form {
margin-bottom: 2rem;
}

.contact-info address {
font-style: normal;
margin-bottom: 1rem;
}

.contact-info img {
margin-top: 1rem;
border: 1px solid #ddd;
padding: 0.5rem;
background-color: white;
}