:root {
  --bg-color: #f8f9fa;
  --text-color: #212529;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #212529;
    --text-color: #f8f9fa;
  }
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

#sketch-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

canvas {
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sketch-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.sketch-header h1 {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  font-weight: 600;
}

.sketch-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  opacity: 0.9;
}

.controls-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sketch-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.control-button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.control-button:hover {
  background: #2563eb;
}

.control-button:active {
  background: #1d4ed8;
}

.control-select {
  background: var(--bg-color);
  color: var(--text-color);
  border: 2px solid #3b82f6;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 160px;
}

.sketch-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.technical-details h3 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  color: var(--text-color);
}

.technical-details ul {
  list-style: none;
  padding: 0;
}

.technical-details li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.technical-details li::before {
  content: '•';
  color: #3b82f6;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  canvas {
    max-width: 90vw;
    height: auto !important;
  }
  
  .sketch-header h1 {
    font-size: 2rem;
  }
  
  .sketch-header, .sketch-footer {
    padding: 1rem;
  }
  
  .sketch-controls {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .control-button, .control-select {
    width: 100%;
    max-width: 240px;
  }
}
