/* General Page Styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* To ensure inputs don't go out of container */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* Container Styling */
.container {
  background-color: white;
  padding: 20px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 500px;
}

h1 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
}

/* Form Group Styling */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fefefe;
}

/* Preview Styling */
.preview {
  text-align: center;
  margin-bottom: 20px;
  display: none;
}

.preview img {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Button Styling */
button {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1em;
  color: white;
  background-color: #4caf50;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#clear-button {
  background-color: gray;
}

button:hover {
  background-color: #45a049;
}

/* Canvas Container */
.canvas-container {
  width: 100%;
  max-width: 600px; /* Optional: Set a max width for larger screens */
  margin: 0 auto; /* Center the canvas */
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  overflow: hidden; /* Ensure no overflowing content */
}

/* Responsive Canvas */
canvas {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
}
