/* 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 */
    /* Ant/Underground themed background */
    background: linear-gradient(180deg, #a08060 0%, #6f503b 40%, #4a382a 100%); /* Soil layers */
    color: #2c1f18; /* Dark brown text */
    font-family: Verdana, Geneva, sans-serif; /* Simple sans-serif */
    position: relative;
}

/* Optional subtle texture overlay */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><path d="M1 3h1v1H1V3zm2-2h1v1H3V1z" fill="%235a483a" fill-opacity="0.1"></path></svg>');
    z-index: -1;
    pointer-events: none;
}

/* Container for the p5.js canvas - SQUARE */
#canvasContainer {
    width: 90vmin;    /* Use vmin for square scaling */
    height: 90vmin;
    max-width: 600px; /* Max physical size */
    max-height: 600px;
    margin: 15px auto;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4), 0 2px 5px rgba(0,0,0,0.3); /* Inset shadow */
    border: 3px solid #3a2d20; /* Dark brown border */
    border-radius: 4px;
    overflow: hidden;
    background-color: #5a483a; /* Fallback background */
}

/* p5.js canvas styling */
canvas {
    display: block;
    width: 100%;
    height: 100%; /* Fill square container */
}ylt

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

/* Remote button styling - Earthy/Simple theme */
.remote-button {
    padding: 8px 13px;
    margin: 4px;
    cursor: pointer;
    background-color: #7f604b; /* Mid-brown */
    color: #f0e5d8; /* Light beige text */
    border: 1px solid #4a382a; /* Dark brown border */
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.remote-button:hover {
    background-color: #9a7a60; /* Lighter brown */
}

.remote-button:active {
    background-color: #6a4a3a; /* Darker brown */
    transform: translateY(1px);
}