* {margin:0;padding:0;box-sizing:border-box;}
        body {font-family:Arial,Helvetica,sans-serif;padding:20px;background:#1FB7F2;}
        .container {display:flex;flex-wrap:wrap;gap:20px;}
        .canvas-container {flex:1;min-width:300px;display:flex;justify-content:center;align-items:center;background:#f0f0f0;border-radius:8px;padding:10px;}
        #myCanvas {max-width:100%;height:auto;border:1px solid #ccc;background:#fff;}
        .content {flex:1;min-width:300px;background:#f9f9f9;padding:20px;border-radius:8px;}
        label, select {display:block;width:100%;margin-top:10px;}
        select {padding:8px;font-size:1rem;}
        
        .animation-controls {
            margin-top: 20px;
            padding: 15px;
            background: #e0e0e0;
            border-radius: 8px;
        }
        .animation-controls h3 {
            margin-bottom: 15px;
            font-size: 1.1rem;
        }
        .button-group {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }
        button {
            padding: 10px 20px;
            font-size: 1rem;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            background: #4CAF50;
            color: white;
            transition: background 0.3s;
        }
        button:hover {
            background: #45a049;
        }
        button:disabled {
            background: #cccccc;
            cursor: not-allowed;
        }
        button.stop {
            background: #f44336;
        }
        button.stop:hover {
            background: #da190b;
        }
        .speed-control {
            margin-top: 15px;
        }
        .speed-control label {
            margin-bottom: 5px;
        }
        input[type="range"] {
            width: 100%;
            margin-top: 5px;
        }
        .speed-value {
            text-align: center;
            margin-top: 5px;
            font-weight: bold;
        }
        
        @media (max-width:768px) and (orientation:portrait){
            .container{flex-direction:column;}
            .canvas-container{order:-1;}
            .button-group {
                flex-direction: column;
            }
            button {
                width: 100%;
            }
        }