/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'GameFont', sans-serif;
    background: radial-gradient(ellipse at center, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

/* Game Canvas Styling */
body > canvas {
    border-radius: 24px;
    border: 4px solid #00ffff;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
    margin-top: 100px; /* push canvas lower to make room for nav */
    display: block;
    z-index: 10;
}

/* Nav Bar Styling */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    background: rgba(0, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 255, 255, 0.4);
}

/* Nav Link */
nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.2s ease;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,  
        -1px  1px 0 #000,  
         1px  1px 0 #000;
}

nav a:hover {
    color: #00ffff;
}
