@font-face {
    font-family: 'RadioCanada';
    src: url('../fonts/RadioCanada-VariableFont.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    font-family: 'RadioCanada', sans-serif;
    background-color: #1b3326;
}

.headerBorder {
    box-sizing: border-box;
    padding: 10px;
    background-color: #1b3326;
    width: 100vw;
}

.header {
    position: relative;
    height: calc(100vh - 40px);
    width: 100%;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    z-index: 1;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.navBar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1vh 2vw;
    box-sizing: border-box;
    z-index: 10;
}

.navBar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(1rem);
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.2);
    z-index: -1;
}

.navLeft a, .navRight a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navRight {
    display: flex;
    align-items: center;
    gap: 1.5vw;
}

.separator {
    color: white;
    font-size: 1.2rem;
}

.titleContainer {
    display: flex;
    align-items: center;
}

.title {
    color: white;
    font-size: 5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.glow {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.hideText {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    vertical-align: bottom;
    animation: revealText 2s forwards;
    animation-delay: 1.5s;
}

@keyframes revealText {
    0% {
        max-width: 0;
        opacity: 0;
    }
    100% {
        max-width: 100vh;
        opacity: 1;
    }
}

.navMenu {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 99;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navLeft a:hover, .navRight a:hover,
.navLeft a:active, .navRight a:active,
.hamburger:hover, .hamburger:active,
.navMenu a:hover, .navMenu a:active {
    transform: scale(0.95);
    opacity: 0.7;
}

@media (max-width: 1000px) {
    .hamburger {
        display: block;
        margin-left: auto;
    }

    .navRight {
        display: none;
    }

    .navLeft {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 99;
    }

    .navMenu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;

        /* inset: 10px;
        width: auto;
        height: auto;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1); 
        I cant decide if this looks good or not
        */

        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 98;

        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .navMenu.open {
        opacity: 1;
        visibility: visible;
    }

    .navMenu a {
        color: white;
        font-size: 1.8rem;
        text-decoration: none;
        width: 85%;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .navMenu a:last-child {
        border-bottom: none;
    }

    .title {
        flex-direction: column;
        align-items: flex-start;
    }

    .hideText {
        max-width: none;
        max-height: 0;
        animation: revealTextVertical 2s forwards;
        animation-delay: 1.5s;
    }

    @keyframes revealTextVertical {
        0% {
            max-height: 0;
            opacity: 0;
        }
        100% {
            max-height: 2em;
            opacity: 1;
        }
    }
}

@media (max-width: 500px) {
    .title {
        font-size: 15cqi;        
        width: 100%;
    }
}