/* General Canvas Styling */
canvas {
  border: 1px solid #000;
  display: block;
  margin: 0 auto;
  touch-action: none; /* Disable default touch actions on the canvas */
}

/* Body Styling */
body {
  background-color: #ebebeb;
  cursor: crosshair;
}

/* Buttons Container */
#buttons {
  text-align: center;
  margin: 20px 0;
}

/* Individual Buttons Styling */
#reset, #save, #undo, #redo, #toggle-resize {
  margin: 5px;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #3498db;
  color: #fff;
  transition: background-color 0.3s, box-shadow 0.3s;
}

#reset:hover, #save:hover, #undo:hover, #redo:hover, #toggle-resize:hover {
  background-color: #2980b9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Color Picker and Brush Size Container */
.color-picker-container, .brush-size-container {
  margin: 10px;
}

/* Color Pickers and Brush Size Input */
input[type="color"], input[type="range"] {
  margin: 5px 0;
}

/* Background Color Picker */
.bg-color-picker-container {
  margin-top: 20px;
}

/* Select Dropdown Styling */
#shape-selector {
  margin: 5px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.3s;
}

#shape-selector:hover {
  border-color: #3498db;
}

/* Checkbox Styling */
#fill-checkbox {
  margin: 5px;
  cursor: pointer;
}

/* General Container Styling */
.container {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
}

/* Style for text settings container */
.text-settings-container {
  margin: 20px 0;
  text-align: center;
}

.text-settings-container label {
  display: block;
  margin: 5px 0;
}

.text-settings-container input[type="text"],
.text-settings-container input[type="color"],
.text-settings-container input[type="range"],
.text-settings-container select,
.text-settings-container button {
  margin: 5px;
}

.text-settings-container button {
  cursor: pointer;
}
/* Text Upload Container */
.text-upload-container {
  margin: 20px auto;
  padding: 15px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 400px; /* Adjust to fit your layout */
}

/* Label Styling */
.text-upload-container label {
  display: block;
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

/* Text Input Styling */
.text-upload-container input[type="text"] {
  width: calc(100% - 22px); /* Adjust width to fit the container */
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  box-sizing: border-box; /* Ensure padding and border are included in the width */
  transition: border-color 0.3s, background-color 0.3s;
}

.text-upload-container input[type="text"]:focus {
  border-color: #3498db;
  background-color: #fff;
  outline: none;
}

/* Button Styling */
.text-upload-container button {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.text-upload-container button:hover {
  background: linear-gradient(90deg, #2980b9, #3498db);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text-upload-container button:focus {
  outline: none;
}
/* Text Upload Container */
.text-upload-container {
  margin: 20px auto;
  padding: 15px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 400px; /* Adjust to fit your layout */
}

/* Label Styling */
.text-upload-container label {
  display: block;
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

/* Text Input Styling */
.text-upload-container input[type="text"] {
  width: calc(100% - 22px); /* Adjust width to fit the container */
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  box-sizing: border-box; /* Ensure padding and border are included in the width */
  transition: border-color 0.3s, background-color 0.3s;
}

.text-upload-container input[type="text"]:focus {
  border-color: #3498db;
  background-color: #fff;
  outline: none;
}

/* Button Styling */
.text-upload-container button {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.text-upload-container button:hover {
  background: linear-gradient(90deg, #2980b9, #3498db);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text-upload-container button:focus {
  outline: none;
}
/* Text Upload Container */
.text-upload-container {
  margin: 20px auto;
  padding: 15px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 400px; /* Adjust to fit your layout */
}

/* Label Styling */
.text-upload-container label {
  display: block;
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

/* Text Input Styling */
.text-upload-container input[type="text"] {
  width: calc(100% - 22px); /* Adjust width to fit the container */
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  box-sizing: border-box; /* Ensure padding and border are included in the width */
  transition: border-color 0.3s, background-color 0.3s;
}

.text-upload-container input[type="text"]:focus {
  border-color: #3498db;
  background-color: #fff;
  outline: none;
}

/* Button Styling */
.text-upload-container button {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.text-upload-container button:hover {
  background: linear-gradient(90deg, #2980b9, #3498db);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text-upload-container button:focus {
  outline: none;
}
/* General Styling for Containers */
.image-upload-container,
.text-upload-container {
  margin: 20px auto;
  padding: 15px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 400px; /* Adjust to fit your layout */
}

/* Label Styling */
.image-upload-container label,
.text-upload-container label {
  display: block;
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

/* File Input Styling */
.file-upload-input {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  box-sizing: border-box; /* Ensure padding and border are included in the width */
  transition: border-color 0.3s, background-color 0.3s;
}

.file-upload-input:hover,
.file-upload-input:focus {
  border-color: #3498db;
  background-color: #fff;
  outline: none;
}

/* Text Input Styling */
.text-upload-container input[type="text"] {
  width: calc(100% - 22px); /* Adjust width to fit the container */
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  box-sizing: border-box; /* Ensure padding and border are included in the width */
  transition: border-color 0.3s, background-color 0.3s;
}

.text-upload-container input[type="text"]:focus {
  border-color: #3498db;
  background-color: #fff;
  outline: none;
}

/* Button Styling */
.action-button {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  margin-top: 10px; /* Add some space above the button */
}

.action-button:hover {
  background: linear-gradient(90deg, #2980b9, #3498db);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-button:focus {
  outline: none;
}
/* Specific Styling for Add Text Button */
#add-text {
  padding: 12px 24px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(90deg, #e74c3c, #c0392b); /* Gradient from red to dark red */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  margin-top: 10px; /* Add space above the button */
}

#add-text:hover {
  background: linear-gradient(90deg, #c0392b, #e74c3c); /* Gradient reverse on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Slight shadow on hover */
}

#add-text:focus {
  outline: none; /* Remove default focus outline */
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3); /* Subtle focus ring */
}

