body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 10px;
  background: #f4f4f4;
}

header {
  text-align: center;
  margin-bottom: 10px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, button, textarea {
  padding: 10px;
  font-size: 16px;
}

button {
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
}

/*
#preview {
  width: 100%;
  border-radius: 6px;
}
*/

textarea {
  min-height: 150px;
}

/* ===============================
   Image Preview & Cropper Fix
   =============================== */

#preview {
  max-width: 100%;
  max-height: 65vh;        /* 👈 limits height to screen */
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Cropper container should also respect viewport */
.cropper-container {
  max-width: 100% !important;
  max-height: 65vh !important;
}
