.output-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  margin-top: 2em;
}
.jpg-output {
  text-align: center;
}
.jpg-preview {
  max-width: 300px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.download-link {
  display: inline-block;
  margin-top: 0.5em;
  font-size: 0.9rem;
  padding: 6px 12px;
  background: #0b74de;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}
.download-link:hover {
  background: #0959b6;
}
html, body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 1em 0;
  font-size: 0.85rem;
  margin-top: auto;
}
html, body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 1em 0;
  font-size: 0.85rem;
  margin-top: auto;
}

/* Style for file input */
input[type="file"] {
  padding: 12px;
  border: 2px solid red;
  border-radius: 8px;
  background-color: #fff0f0;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

input[type="file"]:hover {
  box-shadow: 0 0 10px red;
  transform: scale(1.02);
}

/* Hide default file input label */
input[type="file"]::-webkit-file-upload-button {
  background: red;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background: #b30000;
}

/* Convert Button */
.convert-btn {
  margin-top: 15px;
  padding: 12px 24px;
  background-color: red;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite;
}

.convert-btn:hover {
  background-color: #cc0000;
  transform: scale(1.05);
  box-shadow: 0 0 15px red;
}

/* Button animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0px red;
  }
  50% {
    box-shadow: 0 0 12px red;
  }
  100% {
    box-shadow: 0 0 0px red;
  }
}
.hero ul {
  text-align: center;            /* Center the text */
  list-style-position: inside;  /* Keep bullets inside and aligned */
  padding-left: 0;
  margin: 1em 0;
}

.hero ul li {
  margin-bottom: 0.5em;
}




.tool-button {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
}

.tool-button:hover {
  background-color: #e0e0e0;
}

.webp-info-section {
  max-width: 980px;              /* limits total width */
  margin: 40px auto;             /* centers the section */
  display: flex;
  justify-content: center;
  gap: 1px;
  flex-wrap: wrap;
  padding: 0 15px;
}

.webp-info-section .info-box {
  flex: 1 1 280px;
  max-width: 300px;              /* narrower individual cards */
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
  transition: transform 0.2s ease;
}

.webp-info-section .info-box:hover {
  transform: translateY(-5px);
}

.webp-info-section h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #333;
}

.webp-info-section p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
}






.tool-button {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
}

.tool-button:hover {
  background-color: #e0e0e0;
}

.webp-info-section {
  max-width: 980px;              /* limits total width */
  margin: 40px auto;             /* centers the section */
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 15px;
}

.webp-info-section .info-box {
  flex: 1 1 280px;
  max-width: 300px;              /* narrower individual cards */
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
  transition: transform 0.2s ease;
}

.webp-info-section .info-box:hover {
  transform: translateY(-5px);
}

.webp-info-section h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #333;
}

.webp-info-section p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
}


