body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f0f0f0;
}

.container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #2196f3;
  margin-bottom: 30px;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.control-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
}

label {
  font-weight: bold;
  color: #333;
}

select,
input[type='color'],
button {
  height: 40px;
  padding: 0 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

/* Specific styles for color input to match other inputs */
input[type='color'] {
  padding: 2px 4px;
  cursor: pointer;
}

/* Ensure color picker has same height in Firefox */
@-moz-document url-prefix() {
  input[type='color'] {
    padding: 0;
  }
}

button {
  background-color: #2196f3;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #1976d2;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.canvas-container {
  position: relative;
  max-width: 100%;
  overflow: auto;
  margin-top: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

canvas {
  display: block;
  max-width: 100%;
}

#imageUpload {
  display: none;
}

.no-image {
  padding: 40px;
  text-align: center;
  color: #666;
  background-color: #f8f8f8;
}

/* Download button specific styles */
#downloadButton {
  background-color: #4caf50;
}

#downloadButton:disabled {
  background-color: #a5d6a7;
}

#downloadButton:not(:disabled):hover {
  background-color: #45a049;
}
