body {
  margin: 0;
  padding: 20px;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.controls {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.function-input {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  border-radius: 15px;
  color: white;
  font-family: 'Courier New', monospace;
  width: 200px;
}

.function-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.preset-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 8px 16px;
  border-radius: 15px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.canvas-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.canvas-wrapper {
  text-align: center;
}

.canvas-title {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

canvas {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.explanation {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  line-height: 1.6;
}

.formula {
  text-align: center;
  font-size: 18px;
  margin: 15px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-family: 'Courier New', monospace;
}

.error {
  color: #ff6b6b;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
}

input[type="range"] {
  width: 100px;
}

input[type="file"] {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 5px 10px;
  border-radius: 15px;
  color: white;
}

button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 8px 16px;
  border-radius: 15px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: rgba(255, 255, 255, 0.3);
}

label {
  font-weight: bold;
}