:root {
    --primary-bg: #f0f4f8;
    --secondary-bg: #ffffff;
    --text-color: #333;
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --border-color: #dee2e6;
    --canvas-bg: #fde0e0; /* Skin tone */
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
}

#app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    min-height: 100vh;
}

header {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

h1 {
    color: var(--primary-color);
    font-size: 2rem;
}

#controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover, button:focus {
    background-color: var(--primary-hover);
    outline: 2px solid var(--primary-hover);
}

button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

#simulationCanvas {
    width: 100%;
    max-width: 900px; /* Control max width on large screens */
    height: 80vh;
    background-color: var(--canvas-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: none; /* Custom cursor will be drawn */
}

#info-container {
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#info-container section {
    margin-bottom: 1.5rem;
}

#info-container h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

#info-container ul {
    list-style-position: inside;
    padding-left: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    #app-container {
        padding: 0.5rem;
    }
    
    #info-container {
        padding: 0.5rem;
    }
}