/* Global Styles */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #f5f5f5;
}

/* Container: Centered and responsive */
.container {
  max-width: 960px;
  width: 90%;
  margin: 20px auto;
  text-align: center;
}

/* Canvas Wrapper */
#canvasWrapper {
  margin: 20px auto;
  position: relative;
  border: 2px dashed #ccc;
  display: inline-block;
  background: #fff;
}

#fabricCanvas {
  display: block;
  cursor: default;
}

/* Controls */
.controls {
  margin: 10px 0;
}

/* Top controls: file input & add text in one row */
.top-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Bottom controls: download button centered below */
.bottom-controls {
  margin-top: 20px;
}

/* Style for file input */
input[type="file"] {
  padding: 6px;
  font-size: 16px;
}

/* 3D Button Styling */
.btn {
  /* background-color: #007bff; */
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  box-shadow: 0 4px #0056b3;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  margin: 5px;
}

.btn:active {
  box-shadow: 0 2px #0056b3;
  transform: translateY(2px);
}

#downloadBtn{
  background: linear-gradient(135deg, #007bff 0%, #33c6ba 50%, #00d084 100%);


}

#addTextBtn{
  background: linear-gradient(135deg, #007bff 0%, #3399ff 50%, #0056b3 100%);

}



/* Grid for saved images */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.grid img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #ccc;
  cursor: pointer;
}
