body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: white;
    color: black;
    height: 100vh;
    overflow: hidden;
}

.controls {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 200px;
    border: 1px solid black;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100;
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.controls-header h2 {
    margin: 0;
    font-size: 1.2em;
}

#toggleBtn {
    background: none;
    border: 1px solid black;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

#toggleBtn:hover {
    background: #f0f0f0;
}

.controls-content {
    padding: 0 15px 15px 15px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.controls.collapsed .controls-content {
    max-height: 0;
    padding: 0 15px;
}

.control-group {
    margin-bottom: 10px;
}

input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

label {
    display: block;
    font-size: 0.8em;
    margin-bottom: 2px;
}

input[type="number"] {
    width: 100%;
    padding: 3px;
    border: 1px solid black;
    background: white;
    font-size: 0.8em;
    box-sizing: border-box;
}

input[type="number"]:focus {
    outline: 1px solid black;
}

#resetBtn {
    width: 100%;
    padding: 5px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.8em;
    margin-top: 10px;
}

#resetBtn:hover {
    background: #333;
}

.main-content {
    position: relative;
    width: 100vw;
    height: 100vh;
}

h1 {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.5em;
    z-index: 50;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
