body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: #3c0008;
  color: #fff;
  padding: 20px;
}

h2 { margin-bottom: 10px; }
p { margin-bottom: 25px; font-weight: bold; }

#previewContainer {
  width: 400px;
  height: 400px;
  margin: 20px auto;
  overflow: hidden;
  border: 3px dashed #fff;
  border-radius: 12px;
  background: #5c000e;
  position: relative;
}

#uploadedImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  cursor: move;
}

#frameImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

.btn {
  background: #ff6f61;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 8px;
  cursor: pointer;
}
.btn:hover { background: #e65550; }

canvas { display: none; }

#captionContainer {
  display: none;
  margin-top: 20px;
  padding: 15px 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#captionText {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #ffb3a7;
  line-height: 1.6;
}

#captionText a {
  color: #ff6f61;
  text-decoration: underline;
}

/* ===== Made by Taisur Rubayet animated link ===== */
#madeByPage {
  position: fixed;
  bottom: 10px;
  right: 15px;
  font-family: 'Brush Script MT', cursive;
  font-size: 14px;
  color: #efec33;
  text-shadow: 1px 1px 2px #000;
  z-index: 9999;
  pointer-events: auto;
  text-decoration: none;
  animation: pulse 2s infinite;
  transition: transform 0.3s, color 0.3s;
}

#madeByPage:hover {
  color: #ffd700;
  transform: scale(1.2) rotate(-2deg);
  text-decoration: underline;
}

@keyframes pulse {
  0% { text-shadow: 1px 1px 2px #000; color: #efec33; }
  50% { text-shadow: 2px 2px 6px #ffd700; color: #fff200; }
  100% { text-shadow: 1px 1px 2px #000; color: #efec33; }
}
