/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem; /* Padding untuk perangkat kecil */
  }
  
  .container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin: 0 auto; /* Pusatkan container secara horizontal */
  }
  
  h1 {
    color: #6C63FF;
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 20px;
  }
  
  label {
    font-weight: bold;
    color: #555;
    font-size: 1rem;
    text-align: left;
  }
  
  input, select, button {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    width: 100%;
  }
  
  input:focus, select:focus {
    border-color: #4a90e2;
    outline: none;
  }
  
  button {
    background-color: #6C63FF;
    color: white;
    cursor: pointer;
    border: none;
    font-weight: bold;
    font-size: 1rem;
  }
  
  button:hover {
    background-color: #FF6584;
  }
  
  .hidden {
    display: none;
  }
  
  #resultContainer {
    margin-top: 2rem;
  }
  
  #copyButton {
    margin-top: 1rem;
    background-color: #5cb85c;
    font-size: 1rem;
  }
  
  #copyButton:hover {
    background-color: #4cae4c;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    h1 {
      font-size: 1.5rem;
    }
  
    input, select, button {
      font-size: 0.9rem;
      padding: 0.6rem;
    }
  
    textarea {
      height: 80px;
      font-size: 0.9rem;
    }
  
    #copyButton {
      font-size: 0.9rem;
    }
  }
  
  @media (max-width: 480px) {
    h1 {
      font-size: 1.3rem;
    }
  
    form {
      gap: 0.8rem;
    }
  
    input, select, button {
      font-size: 0.8rem;
      padding: 0.5rem;
    }
  
    textarea {
      height: 60px;
      font-size: 0.8rem;
    }
  
    #copyButton {
      font-size: 0.8rem;
    }
  }

  #captionResult {
    width: 100%;
    min-height: 100px;
    margin-top: 1rem;
    padding: 0.75rem;
    font-size: 1rem;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    white-space: pre-line; /* Mempertahankan pemformatan baris baru */
    overflow-y: auto;
  }
  
  #captionResult b {
    font-weight: bold;
  }