@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/orbitron-variablefont_wght-webfont.woff2') format('woff2'),
         url('/fonts/orbitron-variablefont_wght-webfont.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', Arial, sans-serif;
    color: #fff;
    background: url('../images/bg1.webp') no-repeat center center fixed;
    background-size: cover;
    overflow-y: auto;
}

/* Logo */
.center-logo {
    text-align: center;
    margin: 20px 0;
}
.center-logo img {
    max-width: 400px;
    height: auto;
    margin: 10px 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.center-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px #ffcc00);
}

/* Main container */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 120px);
    width: 100%;
    padding: 80px 24px;
    box-sizing: border-box;
}

/* Shared box */
.semi-transparent-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    width: 100%;
    max-width: 960px;
    text-align: left;
    box-sizing: border-box;
    z-index: 1;
}
.semi-transparent-container h2 {
    font-size: 2rem;
    color: #fc0;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Trailer box is wider */
.semi-transparent-container.trailer-box {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    text-align: center;
}

/* Trailer text */
.trailer-desc {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #cdd3e0;
    text-align: center;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.video-container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}
.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
    display: block;
}

/* News Content */
.news-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.news-content p {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
.news-content strong {
    color: #fc0;
    font-size: 1.1rem;
}

/* Race Images */
.acc-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}
.landscape-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* Table */
.table-container {
    width: 80%;
    max-width: 1000px;
    background: rgba(0, 0, 0, 0.8);
    margin: 40px 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}
.table-title {
    font-size: 2rem;
    color: #fc0;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.table-container table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.7);
}
thead {
    background: #8b0000;
    color: #fff;
    text-transform: uppercase;
}
th, td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    color: #ddd;
}
tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
}
tbody tr:hover {
    background: rgba(255, 69, 0, 0.15);
    transition: background-color 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .semi-transparent-container.trailer-box,
    .video-container { max-width: 100%; }
}
@media (max-width: 768px) {
    body { font-size: 90%; }
    .main-container { padding: 60px 16px; }
    .center-logo img { max-width: 300px; }
    .semi-transparent-container { width: 95%; }
    .semi-transparent-container h2 { font-size: 1.8rem; }
    .news-content p { font-size: 0.9rem; }
    .acc-container { flex-direction: column; }
    .landscape-image { max-width: 90%; }
    .table-container { width: 95%; }
    th, td { font-size: 0.9rem; padding: 10px; }
}
@media (max-width: 480px) {
    body { font-size: 85%; }
    .main-container { padding: 40px 10px; }
    .center-logo img { max-width: 200px; }
    .semi-transparent-container h2 { font-size: 1.5rem; }
    .news-content p { font-size: 0.8rem; }
    .table-container { width: 100%; padding: 10px; }
    th, td { font-size: 0.8rem; padding: 5px; }
    .landscape-image { max-width: 100%; }
}
