body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f0f0f0;
}

h1 {
  color: #333;
  margin-bottom: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; /* Allow container to take full width */
  max-width: 800px; /* Max width for the container */
}

.upload-section {
  margin-bottom: 20px;
  text-align: center;
}

.upload-button {
  display: inline-block; /* Make label look like a button */
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #28a745; /* Green color for upload */
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-right: 10px; /* Space between button and file name */
}

.upload-button:hover {
  background-color: #218838;
}

#imageUpload {
  display: none; /* Hide the default file input */
}

#fileName {
  font-size: 14px;
  color: #555;
}

canvas {
  border: 1px solid #ccc;
  max-width: 100%; /* Make canvas responsive */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Remove extra space below canvas */
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Add a subtle shadow */
}

button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Style for the error message */
.container p {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}