body {
  font-family: Arial, sans-serif;
  margin: 40px;
  background: #f5f5f5;
  color: #222;
}

h1 {
  max-width: 700px;      /* match your #app width */
  margin: 0 auto 10px;   /* auto left/right centers it */
  color: #0077ff;
  text-align: center;    /* optional: centers the text itself */
}
h1 a {
  text-decoration: none;
  color: inherit;
}
h1:hover{
  color:#003f86;
}

.site-title {
  max-width: 700px;
  margin: 0 auto 10px;
  text-align: center;
  color: #0077ff;
}

.site-title:hover {
  color: #003f86;
}

.site-title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 1.8rem;
}

.logo {
  height: 80px;
  width: auto;
  display: block;
}


#app {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


.section {
  margin-bottom: 20px;
}

input[type="file"] {
  margin-top: 10px;
}

#preview {
  margin-top: 15px;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.feature-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.feature-box h2 {
  margin-top: 0;
  font-size: 1.2em;
}

.feature-box ul {
  list-style: none;
  padding-left: 0;
}

.feature-box li {
  margin-bottom: 10px;
  padding-left: 1.2em;
  position: relative;
}

.feature-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #888;
}

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9em;
  color: #666;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-links a {
  color: inherit;
}

footer p {
  margin: 0;
}

#dropZone {
  border: 2px dashed #7f77fa;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  background: #dddff0;
  cursor: pointer;
  transition: background 0.2s ease;
}

#dropZone.dragover {
  background: #e0f7ff;
}

.share-section {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.share-section h3 {
  margin-bottom: 10px;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #d8d7d7;
  border-radius: 8px;
  transition: background 0.2s ease;
  text-decoration: none;
  border:none;
}

.icon-btn:hover {
  background: #a3a5ff;
}

.icon-btn img {
  width: 22px;
  height: 22px;
  pointer-events: none;
}



.icon-btn:focus {
  outline: none;
}

/* Output format selector */
.format-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.format-option {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s ease;
  font-size: 1rem;
}

.format-option input {
  display: none;
}

.format-option span {
  font-weight: bold;
}

.format-option:hover {
  background: #e6e6e6;
}

.format-option input:checked + span {
  color: #0077ff;
  font-weight: 700;
}

.format-option input:checked ~ span {
  color: #0077ff;
  font-weight: 700;
}

/* Stylized Convert button */
#convertBtn {
  background: linear-gradient(135deg, #0077ff, #005fcc);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: 0.2s ease;
  font-weight: bold;
}

#convertBtn:hover {
  background: linear-gradient(135deg, #005fcc, #004fa8);
}

#convertBtn:active {
  transform: scale(0.97);
}

/* Banner Ad Section */
.promo-section {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  width: 100%;
}


.promo-box {
  width: 728px;
  height: 90px;
  background: #eaeaea;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}


@media (max-width: 800px) {
  .promo-box {
    width: 320px;
    height: 100px; /* adjust if you want 50px */
  }
}

#previewContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.preview-thumb {
  width: 120px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ccc;
}


.lang-dropdown {
  position: relative;      /* needed for dropdown list */
  margin-bottom: 20px;     /* spacing below it */
  display: flex;
  justify-content: flex-end; /* right-align on desktop */
}



/* Selected button */
.lang-selected {
  width: 100%;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

/* Dropdown list */
.lang-options {
  display: none;
  position: absolute;
  top: 42px;
  right: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 260px;
  overflow-y: auto;
}

/* Each option */
.lang-option {
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color:inherit;
}
.lang-selected::after {
  content: "▼";
  font-size: 10px;
  color: #555;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}


a.lang-option,
a.lang-option:visited,
a.lang-option:hover,
a.lang-option:active {
  text-decoration: none;
}


.lang-option:hover {
  background: #f0f0f0;
}

/* Flag icons */
.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.back-to-tools a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.back-to-tools a:hover {
  text-decoration: underline;
}

.browse-btn {
  padding: 10px 18px;
  background: #0078ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.browse-btn:hover {
  background: #005fcc;
}

@media (max-width: 600px) {
  .lang-dropdown {
    justify-content: center; /* center on mobile */
  }

  .lang-options {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}