@font-face {
  font-family: 'Gilroy';
  src: url('./gilroy-font.woff2') format('woff2');
}
body {
  font-family: 'Gilroy', Arial, sans-serif;
  background-color: #f8f9fa;
  padding: 20px;
}
h1 {
  font-weight: bold;
  color: #343a40;
}
#template {
  position: relative;
  width: 960px;
  height: 720px;
  margin: 20px 0;
  background: #e9ecef;
  border: 2px solid #ced4da;
  border-radius: 8px;
  overflow: hidden;
}
#templateImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.overlay-container, #text-container {
  position: absolute;
  cursor: move;
  border: 2px dashed #6c757d;
  border-radius: 4px;
}
.overlay {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: contain;
}
.resizer, .text-resizer {
  width: 20px;
  height: 20px;
  background: #6c757d;
  position: absolute;
  right: -10px;
  bottom: -10px;
  cursor: se-resize;
  border-radius: 50%;
}
.delete-button, .text-delete-button {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff5e5e;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
#text-container {
  font: italic bold 32px 'Gilroy';
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 4px;
  display: none;
  min-width: 100px;
  min-height: 50px;
  top: 20px;
  left: 20px;
}
.btn-group-custom {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}
.template-scroll {
  width: 120px;
  height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.template-scroll img {
  width: 100%;
  cursor: pointer;
  margin-bottom: 10px;
}
.watermark-scroll {
  width: 120px;
  height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.watermark-scroll img {
  width: 100%;
  cursor: pointer;
  margin-bottom: 10px;
}