html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* no scrollbars */
    
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
}

/* Make sure stars fill screen and stay behind */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* push behind game */
}

#board
{
    background-color: rgba(10, 20, 10, 0.75); 
    border-radius: 20px;
    padding: 15px;
    border: none; 
    max-width: 100vw;
    max-height: 100vh;
    
    
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.9), 
        0 6px 6px rgba(0, 0, 0, 0.8),   
        0 -2px 6px rgba(255, 255, 255, 0.1) inset, 
        0 2px 4px rgba(255, 255, 255, 0.05) inset; 

    backdrop-filter: blur(0.3px);

}
#menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

#startbutton, #restartbutton {
    font-family: 'Comic Neue', cursive;
    padding: 15px 30px;
    font-size: 28px;
    cursor: pointer;
    margin: 10px;
    border: none;
    border-radius: 8px;

    /* Black button background */
    background-color: #000;
    color: #fff;

    /* White glow effect */
    box-shadow: 0 0 10px #fff,
                0 0 20px #fff,
                0 0 30px #fff;

    transition: all 0.3s ease;
}

#startbutton:hover, #restartbutton:hover {
    /* Brighter glow on hover */
    box-shadow: 0 0 15px #fff,
                0 0 30px #fff,
                0 0 50px #fff;
}

canvas {
    border-radius: 20px;
    background: transparent;
}

#pausebutton {
    font-family: 'Comic Neue', cursive;
    background-color: #000; /* black background */
    color: #fff; /* white text */
    border: none;
    border-radius: 50px; /* circular */
    padding: 14px 25px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;

    /* White glow effect */
    box-shadow: 0 0 10px #fff,
                0 0 20px #fff,
                0 0 30px #fff;

    transition: all 0.3s ease;
}

#pausebutton:hover {
    transform: scale(1.08);
    box-shadow: 0 0 15px #fff,
                0 0 30px #fff,
                0 0 50px #fff;
}

#pausebutton:active {
    transform: scale(0.95);
}