/* Global reset and box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrollbars */
    /* Quantum background: Dark gradient + subtle animated particles (using pseudo-elements) */
    background: linear-gradient(170deg, #0a051a 0%, #1a0f30 50%, #050010 100%);
    color: #e0e0ff; /* Light text color for contrast */
    font-family: 'Courier New', Courier, monospace; /* Techy font */
    position: relative; /* Needed for pseudo-element positioning */
}

/* Simple particle animation for background */
body::before, body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Don't interfere with clicks */
    z-index: -1; /* Behind content */
    background-image: radial-gradient(#555 1px, transparent 1px),
                      radial-gradient(#777 1px, transparent 1px);
    background-size: 50px 50px, 150px 150px; /* Two layers of dots */
    background-position: 0 0, 25px 25px;
    animation: moveParticles 20s linear infinite;
}
body::after { /* Second layer with different speed/size */
    background-size: 200px 200px, 75px 75px;
     background-image: radial-gradient(#444 1px, transparent 1px),
                      radial-gradient(#666 1px, transparent 1px);
    animation: moveParticles 30s linear infinite reverse; /* Different direction/speed */
}

@keyframes moveParticles {
    from { background-position: 0 0, 25px 25px; }
    to { background-position: 500px 500px, 525px 525px; }
}


/* Container for the p5.js canvas */
#canvasContainer {
    width: 95%; /* Responsive width */
    max-width: 750px; /* Max size */
    margin: 20px auto;
    position: relative;
    box-shadow: 0 0 25px rgba(100, 150, 255, 0.3); /* Glowing effect */
    border: 1px solid #404080; /* Subtle border */
    border-radius: 8px;
    overflow: hidden;
}

/* p5.js canvas styling */
canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* Container for remote buttons */
#remote {
    text-align: center;
    padding: 15px;
    margin-top: 5px; /* Reduced margin */
}

/* Remote button styling - Quantum/Tech theme */
.remote-button {
    padding: 8px 12px;
    margin: 3px;
    cursor: pointer;
    background-color: #151028; /* Dark base */
    color: #a0c0ff; /* Light blue text */
    border: 1px solid #4050a0; /* Blue border */
    border-radius: 4px; /* Sharper corners */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.remote-button:hover {
    background-color: #2a204d;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(150, 180, 255, 0.5); /* Glow on hover */
}

.remote-button:active {
    background-color: #0a081a;
    color: #70a0ff;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
}