/* 🌐 Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 🔳 Body */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to left, #008080, #FD5901);
  color: #333;
  overflow-x: hidden;
}

/* 🔝 Top Bar */
.top-bar {
  width: 100%;
  background: linear-gradient(to left, #008080, #FD5901);
  color: white;
  text-align: center;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 🧰 Main Container */
.container {
  max-width: 900px;
  width: 100%;
  margin: 20px auto;
  padding: 40px 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 🌈 Gradient Main Heading */
.main-heading {
  font-size: 30px;
  font-weight: bold;
  background: linear-gradient(to left, #008080, #FD5901);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;         /* ✅ Only span text */
  text-align: center;
  margin: 0 auto 10px auto;      /* ✅ Horizontally center */
}

/* 🔠 Centered Subheading / Tagline */
.center-text {
  text-align: center;
  font-size: 16px;
  margin-bottom: 40px;
  color: #555;
}

/* 🧱 Category Container */
.category-container {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin: 25px auto; /* ⬅️ Reduced vertical space */
}

/* 🌈 Gradient Category Titles */
.category-heading {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(to left, #008080, #FD5901);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* ✅ makes gradient only span text */
}

/* 🔗 Tool List */
.tool-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.center-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tool-list li a {
  text-decoration: none;
  color: #008080;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

.tool-list li a:hover {
  color: #FD5901;
}

/* 📄 Textareas */
textarea {
  width: 100%;
  max-width: 100%;
  height: 200px;
  padding: 16px;
  margin-bottom: 20px;
  font-family: monospace;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  resize: vertical;
  background: #fdfdfd;
}

/* 🔘 Button Container */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* 🔘 Teal Gradient Buttons */
button, .button {
  background: linear-gradient(to left, #005F60, #249EA0);
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

button:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 📱 Responsive Tweaks */
@media (max-width: 950px) {
  .container {
    max-width: 90%;
    margin: 20px auto;
    padding: 30px 20px;
  }
}

/* 🔍 Search Bar */
.search-bar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

#toolSearch {
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease;
}

#toolSearch:focus {
  border-color: #008080;
  outline: none;
}

/* 🖼️ Logo Styles */
.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.site-logo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* 🌈 Tool Page Gradient Heading */
.tool-heading {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: bold;
  background: linear-gradient(to left, #008080, #FD5901);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;         /* ✅ shrink to fit text */
  text-align: left;              /* optional if center not needed */
}
/* 📎 Tool Page Subheading */
.tool-subtext {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px; /* ✅ extra spacing below */
}

/* 🔲 Center wrapper for gradient headings */
.center-heading {
  text-align: center;
}

/* 🔗 Topbar Link */
.topbar-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.topbar-link:hover {
  text-decoration: underline;
}

.footer-bar {
  margin-top: 80px;
  font-size: 15px;
  font-weight: 500;
}

.clock-wrapper input{
  margin-left: 5px;
  margin-right: 5px;
}

.aspect-ratio-box {
    /* background: #f0f0f0; */
    /* padding: 20px; */
    /* border: 1px solid #bbb; */
    border-radius: 10px;
    /* max-width: 500px; */
    margin: 0 auto;
}

.input-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.input-pair {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-right: 10px;
}

.input-pair:last-child {
  margin-right: 0;
}

.input-pair label {
  margin-bottom: 5px;
  font-weight: bold;
}

.input-pair input {
  padding: 8px;
  font-size: 16px;
}

.equal-symbol {
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input[type="checkbox"] {
  margin-right: 8px;
}

#aspect-preview {
  font-size: 12px;
  color: #444;
  margin-top: 12px;
  background: #eee;
  border-radius: 4px;
}

#presetRatio {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  margin-top: 5px;
}

#preview-box {
  margin-top: 12px;
  background: linear-gradient(135deg, #f26929, #009688);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: width 0.2s ease, height 0.2s ease;
  overflow: hidden;
}

/* 🧾 Tool Info Section Cleanup */

.container ul, .container ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.container ul li, .container ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.container p {
  line-height: 1.7;
  margin-bottom: 16px;
}

.container pre {
  background: #f4f4f4;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  overflow-x: auto;
  margin: 10px 0 20px;
}

.container code {
  background: #fdfdfd;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 90%;
}

.container h2, .container h3  {
  font-weight: bold;
  margin-bottom: 15px;
  background: linear-gradient(to left, #008080, #FD5901);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.thumbnail-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.overlay-download {
  position: absolute;
  bottom: 10px;
  right: 10px;
  text-decoration: none;
  padding: 6px 14px;
  font-size: 14px;
  z-index: 2;
}

.thumbnail-wrapper{
  margin-bottom: 30px;
}

