    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      padding: 0;
      font-family: 'Segoe UI', sans-serif;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
    }

    .container {
      background: #fff;
      width: 100%;
      padding: 30px;
      margin: 20px;
      border-radius: 15px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
      text-align: center;
    }

    h1 {
      font-size: 28px;
      color: #333;
      margin-bottom: 20px;
    }

    #images {
      display: none;
    }

    .file-label {
      display: inline-block;
      padding: 12px 20px;
      background-color: #0074D9;
      color: white;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
      margin-bottom: 10px;
    }

    .file-label:hover {
      background-color: #005fa3;
    }

    #drop-zone {
      border: 2px dashed #ccc;
      padding: 20px;
      margin: 10px 0;
      border-radius: 10px;
      background-color: #fafafa;
      cursor: pointer;
    }

    #drop-zone.dragover {
      background-color: #e0f7ff;
      border-color: #0074D9;
    }

    #file-name {
      margin-top: 8px;
      font-size: 14px;
      color: #555;
    }

    #frame-delay {
      margin-top: 15px;
    }

    input[type="number"] {
      width: 80px;
      padding: 5px;
      border-radius: 6px;
      border: 1px solid #ccc;
      font-size: 14px;
    }

    button {
      background-color: #28a745;
      color: white;
      border: none;
      padding: 14px 20px;
      font-size: 16px;
      border-radius: 8px;
      cursor: pointer;
      width: 100%;
      margin-top: 20px;
      transition: background-color 0.3s ease;
    }

    button:hover {
      background-color: #218838;
    }

    #preview {
      margin-top: 20px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }

    #preview img {
      width: 100px;
      height: 100px;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid #ccc;
    }

    #gif-result {
      margin-top: 25px;
    }

    #gif-result img {
      max-width: 100%;
      border-radius: 10px;
    }

    a {
      display: inline-block;
      margin-top: 12px;
      color: #0074D9;
      text-decoration: none;
      font-weight: bold;
    }

    a:hover {
      text-decoration: underline;
    }

    #progress-bar {
      width: 100%;
      height: 10px;
      background-color: #e0e0e0;
      border-radius: 5px;
      overflow: hidden;
      margin-top: 20px;
      display: none;
    }

    #progress-fill {
      width: 0%;
      height: 100%;
      background-color: #28a745;
      transition: width 0.2s ease;
    }

    @media (max-width: 600px) {
      h1 {
        font-size: 22px;
      }

      .file-label,
      button {
        font-size: 18px;
      }

      #preview img {
        width: 80px;
        height: 80px;
      }
    }