/* ========== 1. Custom font for watermark text only ========== */
@font-face {
    font-family: 'MyCustomWMFont';
    src: url('font.ttf') format('truetype');
  }

  .container {
    max-width: 900px;
    width: 90%;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease forwards;
  }
  
  /* Simple fade/slide animation */
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  header h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: #d81b60;
    font-size: 2rem;
  }
  
  /* DRAG & DROP zone */
  .dropzone {
    border: 3px dashed #d81b60;
    border-radius: 12px;
    text-align: center;
    padding: 2rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    color: #333;
  }
  .dropzone:hover {
    background: #ffdce5;
    transform: scale(1.02);
  }
  .dropzone h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #d81b60;
  }
  .dropzone p {
    font-size: 0.9rem;
    color: #555;
  }
  input[type="file"][hidden] {
    display: none;
  }
  
  /* Display file names */
  .file-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #444;
  }
  
  /* Watermark Type Section */
  .wm-type-section {
    margin-top: 1.5rem;
    text-align: center;
    color: #d81b60;
  }
  .radio-group {
    display: inline-flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.5rem;
  }
  .radio-group label {
    cursor: pointer;
    font-size: 1rem;
  }
  
  /* Sections for text or image watermark */
  .wm-text-section,
  .wm-image-section {
    margin-top: 1.5rem;
    text-align: center;
  }
  .wm-text-section label,
  .wm-image-section label {
    display: block;
    margin: 0.5rem 0 0.2rem;
    color: #d81b60;
    font-weight: bold;
  }
  .wm-text-section input,
  .wm-image-section input {
    padding: 0.5rem;
    width: 80%;
    max-width: 300px;
    margin-bottom: 1rem;
    border: 2px solid #d81b60;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .wm-text-section input:focus,
  .wm-image-section input:focus {
    border-color: #f06292;
    box-shadow: 0 0 8px rgba(240,98,146,0.3);
  }
  .file-label {
    cursor: pointer;
    color: #d81b60;
    text-decoration: underline;
  }
  
  /* Buttons */
  .buttons {
    text-align: center;
    margin: 2rem 0 1rem;
  }
  button,
  .download-button {
    display: inline-block;
    background: linear-gradient(to right, #ff3cac, #784ba0, #2b86c5);
    color: #fff;
    border: none;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    outline: none;
    text-decoration: none;
  }
  button:hover,
  .download-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  }
  button:active,
  .download-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  button:disabled {
    background: #bbb;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }
  
  /* Preview Canvas */
  .preview {
    text-align: center;
    margin-top: 1rem;
  }
  canvas {
    max-width: 100%;
    border: 2px dashed #d81b60;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  /* Download button */
  .download-button {
    margin-top: 1rem;
  }
  
  /* Hide utility */
  .hide {
    display: none;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .radio-group {
      flex-direction: column;
    }
    .wm-text-section input,
    .wm-image-section input {
      width: 100%;
      max-width: 100%;
    }
    .dropzone {
      padding: 1rem;
    }
  }
  .color-box {
    width: 100px;
    height: 40px;
    cursor: pointer;
    border: 2px solid #d81b60;
    border-radius: 8px;
    margin: 0 auto; /* or remove if you prefer a different placement */
    background-color: #000000; /* match initial color (#ff0000) */
  }
  
  /* Range input styling can vary widely; minimal example: */
  input[type="range"] {
    width: 80%;
    max-width: 300px;
    margin-bottom: 1rem;
    cursor: pointer;
  }
  
  