/* Full-page black background */
body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Canvas styling */
#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Canvas is the main layer */
}

/* Music toggle button styling */
button {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent;
    border: none;
    color: white;
    font-size: 10px;
    cursor: pointer;
    z-index: 2; /* Above the canvas */
    text-transform: uppercase;
}

/* Flash effect for lightning */
.lightning-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 3; /* Above the canvas and other elements */
    animation: flash-animation 0.3s ease-out forwards;
}

/* Keyframes for the flash animation */
@keyframes flash-animation {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}