* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #333;
}

.container {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  max-width: 700px;
  width: 95%;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}

.upload-section {
  margin-bottom: 15px;
}

.upload-label {
  display: inline-block;
  padding: 10px 18px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 8px;
}

.upload-label:hover {
  background: #0056b3;
}

#imageUpload {
  display: none;
}

.text-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 15px 0;
}

.text-controls input[type="text"] {
  flex: 1;
  min-width: 120px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.text-controls button {
  padding: 8px 14px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.text-controls button:hover {
  background: #1f7a33;
}

.canvas-wrapper {
  background: #f1f1f1;
  padding: 10px;
  border-radius: 8px;
  overflow: auto;
}

canvas {
  max-width: 100%;
  cursor: move;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.hint {
  font-size: 14px;
  color: #666;
  margin-top: 12px;
}
