:root {
    --bg: #1e1e1e;
    --fg: #ffffff;
}

html,body { height: 100%; margin: 0; }

h1 {
    font-size: 120px;
    margin-bottom: 0;
    margin-top: 30px;
}

nav + p {
    margin-top: 30px;
}

body {
    background: var(--bg);
    color: var(--fg);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Roboto', sans-serif;
}

nav { display: flex; gap: 0.5rem }

/* Background Video */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind everything else */
    pointer-events: none;
    object-fit: fill; /* Stretch to fill entire screen */
}

/* Canvas */

#c {
    position: fixed;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    border: none;
    pointer-events: none;
}

canvas:focus{
    outline: none;
}

/* Hyperlink styles */
a {
    color: var(--fg); /* White */
    text-decoration: underline;
}

/* a:visited {
    color: #ffffff;
} */

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem; /* Larger and bolder on mobile */
        font-weight: 700;
        margin-top: 20px;
        text-align: center;
        padding: 0 1rem;
    }
    
    body {
        padding: 1rem;
        text-align: center;
    }
    
    nav {
        flex-direction: column;
        gap: 0rem;
        align-items: center;
        margin-bottom: 1rem;
        font-size: 0; /* Hide text nodes (separators) */
    }
    
    nav a {
        font-size: 1.2rem;
        padding: 0.2rem;
        display: block;
    }
    
    nav + p {
        margin-top: 20px;
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 3rem; /* Still larger and bold on smaller phones */
        font-weight: 700;
        margin-top: 15px;
    }
    
    body {
        padding: 0.5rem;
    }
    
    nav a {
        font-size: 1.1rem;
    }
    
    nav + p {
        font-size: 1rem;
    }
}