/* Font faces */

@font-face {
    font-family: "Courier-Condensed";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/CourierCondensed.ttf") format("truetype"),
        url("../fonts/CourierCondensed.woff") format("woff"),
        url("../fonts/CourierCondensed.woff2") format("woff2");
}

@font-face {
    font-family: "Courier-Condensed";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/CourierCondensed-Italic.ttf") format("truetype"),
        url("../fonts/CourierCondensed-Italic.woff") format("woff"),
        url("../fonts/CourierCondensed-Italic.woff2") format("woff2");
}

@font-face {
    font-family: "Courier-Condensed";
    font-style: normal;
    font-weight: bold;
    font-display: swap;
    src: url("../fonts/CourierCondensed-Bold.ttf") format("truetype"),
        url("../fonts/CourierCondensed-Bold.woff") format("woff"),
        url("../fonts/CourierCondensed-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "Courier-Condensed";
    font-style: italic;
    font-weight: bold;
    font-display: swap;
    src: url("../fonts/CourierCondensed-BoldItalic.ttf") format("truetype"),
        url("../fonts/CourierCondensed-BoldItalic.woff") format("woff"),
        url("../fonts/CourierCondensed-BoldItalic.woff2") format("woff2");
}

@font-face {
    font-family: "Courier-Prime-Condensed";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("../fonts/CourierPrimeCondensed-Regular.ttf") format("truetype"),
        url("../fonts/CourierPrimeCondensed-Regular.woff") format("woff"),
        url("../fonts/CourierPrimeCondensed-Regular.woff2") format("woff2");
}

/* @font-face {
    font-family: "Courier-Prime-Condensed";
    src: url("../fonts/CourierPrimeCondensed-Italic.ttf") format("truetype"),
        url("../fonts/CourierPrimeCondensed-Italic.woff") format("woff"),
        url("../fonts/CourierPrimeCondensed-Italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: block;
} */

/* @font-face {
    font-family: "Courier-Prime-Condensed";
    src: url("../fonts/CourierPrimeCondensed-Bold.ttf") format("truetype"),
        url("../fonts/CourierPrimeCondensed-Bold.woff") format("woff"),
        url("../fonts/CourierPrimeCondensed-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: bold;
    font-display: block;
} */

/* @font-face {
    font-family: "Courier-Prime-Condensed";
    src: url("../fonts/CourierPrimeCondensed-BoldItalic.ttf") format("truetype"),
        url("../fonts/CourierPrimeCondensed-BoldItalic.woff") format("woff"),
        url("../fonts/CourierPrimeCondensed-BoldItalic.woff2") format("woff2");
    font-style: italic;
    font-weight: bold;
    font-display: block;
} */

/* Global styles */

:root {
    --limited-width: 1200px;
    --full-width: 100%;
    --primary-color-1: #ffffff;
    --primary-color-2: #000000;
    --secondary-color-1: #D92323;
    --secondary-color-2: #005432;
    --secondary-color-3: #F2B90F;
    --secondary-color-4: #3E2897;
    --secondary-color-5: #3281B3;
    --secondary-color-6: #1F1D26;
    --header-height: 5rem; /* Adjust as needed */
    --small-breakpoint: 768px;
    --color-1: var(--primary-color-2);
    --color-2: var(--primary-color-1);
}

.theme-color-1 {
    --color-1: var(--secondary-color-1);
    --color-2: var(--primary-color-1);
}

.theme-color-2 {
    --color-1: var(--secondary-color-2);
    --color-2: var(--primary-color-1);
}

.theme-color-3 {
    --color-1: var(--secondary-color-3);
    --color-2: var(--primary-color-2);
}

.theme-color-4 {
    --color-1: var(--secondary-color-4);
    --color-2: var(--primary-color-1);
}

.theme-color-5 {
    --color-1: var(--secondary-color-5);
    --color-2: var(--primary-color-1);
}

.theme-color-6 {
    --color-1: var(--secondary-color-6);
    --color-2: var(--primary-color-1);
}

section.limited-width > .section-wrapper {
    max-width: var(--limited-width);
    width: 100%;
    margin: 0 auto;
}

.full-width {
    max-width: var(--full-width);
    width: 100%;
}

/* section > * {
    max-width: var(--body-max-width);
    width: auto;
    margin: 0 auto;
} */

html, body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    line-height: 1.5;
    background-color: var(--primary-color-2);
    color: var(--primary-color-1);
    font-variant-ligatures: none;
}

body {
    font-family: "Courier-Prime-Condensed", monospace;
    /* padding: 0 24px; */
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Courier-Prime-Condensed", monospace;
    font-weight: bold;
    padding-top: 1em;
    margin-top: 0;
    margin-bottom: 0.25em;
}

h1 {
    font-size: 3.25rem;
    text-transform: uppercase;
}

h2 {
    font-size: 2.75rem;
    text-transform: uppercase;
    /* background-color: var(--secondary-color-2); */
    /* padding: 0.25em; */
    /* background-position: 24px 24px; */
}

h3 {
    font-size: 2.5rem;
}

h4 {
    font-size: 2rem;
}

h5 {
    font-size: 1.5rem;
}

h6 {
    font-size: 1.25rem;
}

p {
    font-family: "Courier-Prime-Condensed", monospace;
    font-weight: normal;
    font-size: 1.25rem;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

a {
    color: var(--color-2);
    text-decoration: underline;
}

.link-button {
    display: inline-block;
    border: 2px solid var(--color-2);
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    font-size: clamp(1.2rem, 1vw, 2rem);
    font-style: normal;
    font-weight: bold;
}

.link-button:hover {
    background-color: var(--primary-color-1);
    color: var(--primary-color-2);
}

em {
    color: var(--color-1);
    background-color: var(--color-2);
    font-style: normal;
    font-weight: bold;
    padding: 0.1em;
}
 
img.contain {
    object-fit: contain;
}

img.cover {
    object-fit: cover;
}

.showonScroll {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.showonScroll.active {
    opacity: 1;
}

/* On non-home pages, header elements should always be visible */
body:not(#home) .showonScroll {
    opacity: 1;
}

body:not(#home) header {
    background-color: var(--primary-color-2);
    border-bottom: 2px solid var(--primary-color-1);
}

/* Lists */
ul, ol {
    font-size: 1.25rem;
    padding-left: 0;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: 1em;
    list-style-position: outside;
}

ul {
    list-style-type: square;
    
}

li {
    margin-bottom: 0.25em;
}

/* Header & Nav */

header {
    position: sticky;
    top: 0;
    font-size: 1.5rem;
    width: 100%;
    height: var(--header-height, 3rem);
    padding: 0 1rem;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
    white-space: nowrap;
    z-index: 10;
}

.header-wrapper {
    height: 100%;
    max-width: var(--limited-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

header.scrolled {
    background-color: var(--primary-color-2);
    outline: 2px solid var(--primary-color-1);
}

/* On non-home pages, keep header background solid at all times */
body:not(#home) header {
    background-color: var(--primary-color-2);
}

.header-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: auto;
}

.header-logo-wrapper a {
    height: 100%;
}

.header-logo {
    height: 100%;
    width: auto;
    max-height: 100%;
    max-width: clamp(100px, 25vw, 300px);
    object-fit: contain;
    padding: 1rem 0;
}

header a {
    color: var(--primary-color-1);
    font-style: italic;
    text-decoration: none;
}

header .current{
    text-decoration: underline;
}
header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: clamp(1rem, 1.5rem, 2rem);
    font-size: clamp(.8rem, 1.25rem, 2rem);
}

header nav li {
    display: flex;
    align-items: center;
    margin: 0;
}

.header-nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    /* flex: 1; */
    gap: clamp(2rem, 3rem, 4rem);
    max-width: var(--limited-width);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon img {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
}

/* .header-nav-socials, .registration-cta-wrapper {
    width: 20%;
} */

.registration-cta-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .desktop {
        display: none !important;
    }

    .hamburger-menu {
        display: flex;
        justify-content: center;
    }

    header {
        position: sticky;
        width: 100%;
        height: var(--header-height);
        z-index: 1000;
        /* justify-content: space-between; */
        /* padding: 0 1rem; */
    }

    .header-wrapper {
        margin: 0;
    }

    .header-nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100dvw;
        height: 100%;
        background-color: var(--primary-color-2);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        padding: var(--header-height) 0;
        gap: 2rem;
    }

    .header-nav-wrapper.open {
        transform: translateX(0);
    }

    .header-nav-main {
        height: auto;
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        justify-content: center;
    }

    .nav-socials {
        flex-direction: row;
        gap: 1.5rem;
    }

    .social-icon img {
        display: block;
        width: 1.5rem;
        height: 1.5rem;
    }

    header nav ul li a {
        font-size: 1.5rem;
    }

    .registration-cta {
        order: 2;
        font-size: 1.2em;
    }

    .registration-cta-wrapper {
        width: auto;
        margin-bottom: 4rem;
    }

    header nav.open~.registration-cta {
        display: block;
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

}

/* Desktop Styles */
@media screen and (min-width: 768px) {
    .mobile {
        display: none !important;
    }
}

/* Hamburger Menu Button */
.hamburger-menu {
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 3rem;
    height: 3rem;
    position: relative;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color-1);
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Tables */
table {
    width: 100%;
    /* border-collapse: collapse; */
    margin-bottom: 2rem;
    color: var(--color-2);
    background-color: var(--color-1);
}

thead {
    background-color: var(--color-1);
    color: var(--color-2);
}

table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.25);
}

table tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0);
}

th, td {
    padding: 0.5rem;
    text-align: left;
    border: 2px solid var(--primary-color-2);
}

/* Full Speed Banner */

/* #fullspeed-banner {
    background-color: var(--primary-color-1);
    color: var(--primary-color-2);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
} */

/* Global Sections */

section {
    padding: 0 1rem 4rem 1rem;
    background-color: var(--color-1);
    color: var(--color-2);
}

section > img,
section.limited-width > .section-wrapper > img {
    width: 100%;
    height: auto;
    max-height: 80svh;
    object-fit: cover;
}

/* Hero Section */

section.hero {
    color: var(--primary-color-1);
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    line-height: 1.25;
    z-index: 10;
    /* position: relative; */
    padding: 0 1rem;
    background-color: transparent;
}

section.hero > * {
    width: 100%;
    max-width: var(--limited-width);
    margin: 0;
}

#hero-cta {
    height: auto;
}

#hero-cta .link-button {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
}

#hero-image {
    height: auto;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    filter: brightness(0.5);
}

section.hero .hero-description {
    font-size: 1.5rem;
    font-style: italic;
    margin: 1rem 0 1.5rem 0;
}

/* Schedule Section */

section#schedule table {
    width: 100%;
}

section#schedule table td:nth-child(odd) {
    width: 15%

}

/* Sponsors section */

section#sponsors #sponsors-title {
    text-align: center;
    margin-bottom: 1em;
}

.sponsors-scroller {
    width: 100dvw;
    margin-left: min(
        calc(((100dvw - var(--limited-width)) * -1) / 2),
        -1rem
    );
    overflow: hidden;
    position: relative;
}

.sponsors-track {
    --sponsor-scroll-duration: 18s;
    display: inline-flex;
    /* gap: 4rem; */
    align-items: center;
    width: max-content;
    animation: sponsors-marquee var(--sponsor-scroll-duration) linear infinite;
}

.sponsors-track:hover {
    animation-play-state: paused;
}

.sponsors-track-group {
    display: inline-flex;
    gap: 4rem;
    padding: 0 2rem;
}

.sponsors-track img {
    height: 7rem;
    width: auto;
    max-width: 16vw;
    max-height: 10vh;
    object-fit: contain;
}

@keyframes sponsors-marquee {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sponsors-track {
        animation: none;
        transform: none;
    }
}

/* Footer */

footer {
    background-color: var(--primary-color-2);
    color: var(--primary-color-1);
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1;
    border-top: 2px solid var(--primary-color-1);
}

#font-test {
    font-family: "Courier-Prime-Condensed";
}