body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 50%, #90EE90 100%);
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#canvas {
    display: block;
    cursor: grab;
}

.controls {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    max-width: 200px;
}

.controls.collapsed {
    transform: translateX(-85%);
}

.controls-toggle {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 60px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.speech-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 12px;
    color: #333;
    max-width: 120px;
    text-align: center;
    border: 2px solid #4CAF50;
    z-index: 1000;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #4CAF50;
}

.control-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="range"] {
    width: 150px;
}

button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

button:hover {
    background: #45a049;
}

.info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
}