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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.controls button {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.controls button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.controls button:active {
    transform: translateY(0);
}

.canvas-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

#mathCanvas {
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    background: rgba(0,0,0,0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.info-panel {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.info-panel h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-panel p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.parameters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.parameters label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
}

.parameters input[type="range"] {
    width: 100%;
    margin-top: 5px;
    accent-color: #667eea;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .controls {
        gap: 8px;
    }
    
    .controls button {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    #mathCanvas {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }
    
    .parameters {
        grid-template-columns: 1fr;
    }
}
