 :root {
            --neuron-size: clamp(60px, 8vw, 80px);
            --bias-width: clamp(40px, 5vw, 40px);
            --weight-width: clamp(50px, 5vw, 40px);
            --input-width: clamp(40px, 6vw, 60px);
            --font-size-normal: clamp(12px, 1.5vw, 16px);
            --font-size-small: clamp(10px, 1.2vw, 14px);
        }
        
        body {
            font-family: Arial, sans-serif;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            background-color: #f5f5f5;
            padding: 10px;
            font-size: var(--font-size-normal);
        }
        
        .network-container {
            display: flex;
            justify-content: space-around;
            width: 100%;
            max-width: 1200px;
            position: relative;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .layer {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
            min-height: 300px;
            height: auto;
            flex: 1;
            margin: 10px;
            position: relative;
        }
        
        .neuron {
            width: var(--neuron-size);
            height: var(--neuron-size);
            border-radius: 50%;
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            font-weight: bold;
            position: relative;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            margin: 10px 0;
        }
        
        .neuron-label {
            font-size: var(--font-size-small);
            text-align: center;
            word-break: break-word;
            padding: 0 2px;
        }
        
        .neuron-value {
            font-size: var(--font-size-small);
            margin-top: 3px;
        }
        
        .input-control {
            width: var(--input-width);
            margin-top: 3px;
            text-align: center;
            padding: 2px;
            font-size: var(--font-size-small);
        }
        
        .bias-control {
            position: absolute;
            top: -22px;
            font-size: var(--font-size-small);
            color: #333;
            background: #f8f8f8;
            padding: 2px;
            border-radius: 3px;
            border: 1px solid #ddd;
            width: var(--bias-width);
            text-align: center;
        }
        
        .connection {
            position: absolute;
            background-color: rgba(0,0,0,0.2);
            z-index: -1;
        }
        
        .weight-control {
            position: absolute;
            font-size: var(--font-size-small);
            background-color: white;
            padding: 2px;
            border-radius: 3px;
            border: 1px solid #ddd;
            width: var(--weight-width);
            text-align: center;
            transform: translate(-50%, -50%);
            z-index: 1;
        }
        
        h1 {
            color: #333;
            margin: 10px 0;
            font-size: clamp(18px, 3vw, 24px);
            text-align: center;
            padding: 0 10px;
        }
        
        .layer-label {
            position: absolute;
            bottom: -30px;
            font-weight: bold;
            color: #555;
            font-size: var(--font-size-small);
            white-space: nowrap;
        }
        
        .controls {
            margin-top: 20px;
            padding: 15px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            width: 90%;
            max-width: 600px;
        }
        
        .output-display {
            font-size: var(--font-size-normal);
            font-weight: bold;
            margin-top: 15px;
            padding: 8px;
            background: #e8f4f8;
            border-radius: 5px;
            text-align: center;
        }
        
        .activation-select {
            margin-top: 8px;
            padding: 4px;
            border-radius: 4px;
            font-size: var(--font-size-small);
        }
        
        .reset-btn {
            margin-top: 10px;
            padding: 6px 12px;
            background: #2575fc;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: var(--font-size-small);
        }
        
        .reset-btn:hover {
            background: #1a5dc8;
        }

        @media (max-width: 768px) {
            .network-container {
                flex-direction: column;
                align-items: center;
            }
            
            .layer {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                min-height: auto;
                margin: 5px 0;
                width: 100%;
            }
            
            .neuron {
                margin: 5px;
            }
            
            .layer-label {
                position: relative;
                bottom: auto;
                width: 100%;
                text-align: center;
                margin-top: 10px;
            }
            
            .bias-control {
                top: -18px;
            }
        }

        @media (max-width: 480px) {
            .neuron {
                width: calc(var(--neuron-size) * 0.9);
                height: calc(var(--neuron-size) * 0.9);
            }
            
            .controls {
                padding: 10px;
            }
        }