/* =============================================================
   TikTokFont.com — Symbols & Emoji Generator Stylesheet
   Custom Namespaced Design: ttf- (TikTokFont)
   ============================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: #f3f3f3;
  color: #4a4a4a;
  font-family: Inter, Arial, sans-serif;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar {
  height: 4px;
  width: 8px;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  overflow-x: auto;
  background: linear-gradient(to right, #0575e6, #021b79);
}

.ttf-tabset, .ttf-main {
  max-width: 65em;
  background: #fff;
  margin-right: auto;
  margin-left: auto;
  box-shadow: 2px 2px 12px 1px #d8d8d8;
}

/* Header */
header.ttf-header {
  text-align: center;
  padding: 12px;
  background: linear-gradient(to right, #373e45, #2d1a1a);;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
header.ttf-header a {
  font-size: 22px;
  text-decoration: none;
  text-transform: capitalize;
  color: #fff;
}
.ttf-nav-hamburger {
  position: absolute;
  top: 4px;
  left: 4px;
  color: #fff;
  cursor: pointer;
}
#mobile-fly-menu {
  display: block;
  position: absolute;
  cursor: pointer;
  width: 50px;
  height: 40px;
  float: left;
}
#mobile-fly-menu span {
  display: block;
  position: absolute;
  left: 12px;
  transition: .25s ease-in-out;
  height: 4px;
  background: #fffffffa;
}
#mobile-fly-menu span:nth-child(1) { top: 10px; width: 35px; }
#mobile-fly-menu span:nth-child(2) { top: 19px; width: 27px; }
#mobile-fly-menu span:nth-child(3) { top: 28px; width: 20px; }

.ttf-mainlogo img {
  width: 270px;
  padding-top: 2px;
}
.ttf-mainlogo span {
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff91;
  font-size: 12px;
  display: block;
}

/* Side Navigation */
.ttf-sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  background-color: #0b0f19;
  overflow-x: hidden;
  transition: 0.4s ease;
  padding-top: 60px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.4);
}
.ttf-sidenav a {
  padding: 10px 12px 10px 20px;
  text-decoration: none;
  font-size: 16px;
  color: #f6f6f6;
  display: block;
  transition: 0.2s;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ttf-sidenav a:hover {
  background: #0575e6;
  color: #fff;
  padding-left: 26px;
}
.ttf-sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  border-bottom: none;
}
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}
#nav-overlay.active { display: block; }

/* Category Scrollmenu */
div.scrollmenu.ttf-scrollmenu {
  background-color: #000;
  overflow: auto;
  white-space: nowrap;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
div.scrollmenu.ttf-scrollmenu a {
  display: inline-block;
  color: #fff;
  text-align: center;
  padding: 12px 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
div.scrollmenu.ttf-scrollmenu a.active {
  background-color: #0575e6;
  border-radius: 4px;
}
div.scrollmenu.ttf-scrollmenu a:hover {
  background-color: rgba(255,255,255,0.15);
}

/* Search Bar */
.ttf-search-bar-wrap {
  position: sticky;
  top: 45px;
  z-index: 49;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.ttf-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 65em;
  margin: 0 auto;
  background: #f3f3f3;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 6px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ttf-search-inner:focus-within {
  border-color: #0575e6;
  box-shadow: 0 0 0 3px rgba(5,117,230,0.12);
  background: #fff;
}
.ttf-search-icon {
  font-size: 16px;
  flex-shrink: 0;
}
#search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #333;
  font-family: Inter, Arial, sans-serif;
  outline: none;
  min-width: 0;
}
.search-clear-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.search-clear-btn:hover { color: #dc3545; background: #ffe0e0; }
.hidden { display: none !important; }

/* Category Heading */
h2.boh1, h2.ttf-section-heading {
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 14px;
  margin: 8px 0 4px;
  font-family: Inter, Arial, sans-serif;
  clear: both;
  font-size: 18px;
  text-align: left;
  color: #2f2c39;
  background: linear-gradient(90deg, #f0f4ff 0%, #ffffff 100%);
  border-left: 4px solid #0575e6;
}

/* Biosymbols Grid */
.ttf-biosymbols-grid {
  display: flex;
  flex-flow: row wrap;
  list-style: none;
  margin: 8px 0 8px -8px;
  width: calc(100% + 8px);
  padding: 0 10px;
  line-height: normal;
}
.ttf-biosymbols-grid .wxy {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 50px;
  min-height: 50px;
  box-sizing: border-box;
  margin: 8px 0 0 8px;
  padding: 2px 3px 3px;
  border: 1px solid #c2c2c2;
  border-radius: 8px;
  cursor: pointer;
  font-size: 30px;
  box-shadow: 2px 2px 4px 2px #bfbfbf33;
  background: #fff;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.1s ease,
              box-shadow 0.15s ease;
  user-select: none;
  border: none;
  font-family: inherit;
}
.ttf-biosymbols-grid .wxy:hover {
  border: 1px solid #0575e6;
  background: #e8f0ff;
  transform: scale(1.35) translateY(-3px);
  box-shadow: 0 6px 20px rgba(5, 117, 230, 0.25);
  z-index: 10;
}
.ttf-biosymbols-grid .wxy:active {
  transform: scale(0.88);
}

.emoji-section {
  padding-bottom: 4px;
  scroll-margin-top: 100px;
  animation: sectionIn 0.35s ease-out both;
}
@keyframes sectionIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Inline Skin Tone Picker */
.skin-tone-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #fff9f5 100%);
  border: 1.5px solid #d0deff;
  border-radius: 14px;
  margin: 10px 12px 12px;
  padding: 14px 16px 16px;
}
.skin-tone-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
  font-family: Inter, Arial, sans-serif;
}
.skin-tone-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.skin-tone-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 76px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.skin-tone-bar-btn:hover {
  border-color: #0575e6;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(5,117,230,0.2);
}
.skin-tone-bar-btn.active {
  border-color: #0575e6;
  background: linear-gradient(135deg, #e8f0ff, #f0f4ff);
  box-shadow: 0 0 0 3px rgba(5,117,230,0.18), 0 4px 12px rgba(5,117,230,0.18);
}
.skin-tone-bar-btn .tone-emoji { font-size: 30px; line-height: 1; }
.skin-tone-bar-btn .tone-label { font-size: 11px; color: #777; font-weight: 600; }
.skin-tone-bar-btn.active .tone-label { color: #0575e6; font-weight: 700; }

/* Fixed Bottom Bar */
#ttf-bottom-bar, #bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #373e45, #2d1a1a);;
  border-top: 1px solid #ddd;
  padding: 6px 10px 4px 10px;
  justify-content: center;
  z-index: 100;
}
.ttf-input-container, .input-container {
  position: relative;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}
#inputBox {
  width: 100%;
  padding: 10px 45px 45px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  height: 95px;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  letter-spacing: 2px;
  resize: none;
}
.btn {
  position: absolute;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 5px;
  font-size: 14px;
  border-radius: 5px;
}
.copy-btn {
  background-color: #007bff;
  color: #fff;
  bottom: 6px;
  right: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.copy-btn:hover { background-color: #0056b3; }
.copy-btn.copied { background-color: #28a745; }
.clear-btn {
  background-color: #fff;
  color: #dc3545;
  top: 6px;
  right: 6px;
  padding: 5px 10px;
  font-size: 18px;
  font-weight: bold;
}
.clear-btn:hover { background-color: #ffe0e0; }
.tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -180%);
  padding: 5px 10px;
  background-color: #333;
  color: #fff;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tooltip.visible { opacity: 1; }

/* Share Buttons */
.share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}
span.sharetext { color: white; }
.resp-sharing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e0e0e0;
  transition: background-color 0.3s, transform 0.3s;
  cursor: pointer;
}
.resp-sharing-button__icon { width: 15px; height: 13px; fill: #fff; }
.resp-sharing-button:hover { background-color: #0073e6; transform: scale(1.1); }
.resp-sharing-button--facebook { background-color: #3b5998; }
.resp-sharing-button--twitter  { background-color: #1da1f2; }
.resp-sharing-button--telegram { background-color: #0088cc; }
.resp-sharing-button--pinterest{ background-color: #bd081c; }

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 175px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(to right, #0575e6, #021b79);
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 6px 24px rgba(5,117,230,0.4);
  font-size: 14px;
  font-weight: 600;
}
#toast-emoji { font-size: 20px; }

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 200px;
  right: 20px;
  display: none;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1000;
}
.back-to-top:hover { background-color: #0056b3; }

/* ──────────────────────────────────────────────────────────────
   SEO ARTICLE & FLOWCHART SECTION STYLES
   ────────────────────────────────────────────────────────────── */
.ttf-seo-article-wrap {
  padding: 24px 20px;
  background: #ffffff;
  border-top: 3px solid #0575e6;
  margin-top: 20px;
}
.ttf-article-banner {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto 24px auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.ttf-article-title {
  font-size: 24px;
  color: #111827;
  text-align: center;
  margin-bottom: 16px;
  font-weight: 800;
}
.ttf-article-intro {
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 24px;
  text-align: justify;
}

/* Flowchart Visual Container */
.ttf-flowchart-box {
  background: linear-gradient(135deg, #0b0f19 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 24px 16px;
  color: #fff;
  margin: 30px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.ttf-flowchart-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #60a5fa;
}
.ttf-flowchart-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  position: relative;
}
.ttf-step-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, background 0.2s;
}
.ttf-step-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.12);
  border-color: #60a5fa;
}
.ttf-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0575e6;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
}
.ttf-step-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.ttf-step-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #f3f4f6;
  padding: 0;
}
.ttf-step-card p {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.4;
  padding: 0;
  text-align: center;
}

/* FAQ Accordion */
.ttf-faq-section {
  margin-top: 32px;
}
.ttf-faq-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 20px;
}
.ttf-faq-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.ttf-faq-item[open] {
  border-color: #0575e6;
  background: #fff;
}
.ttf-faq-summary {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
  outline: none;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ttf-faq-summary::-webkit-details-marker { display: none; }
.ttf-faq-summary::after {
  content: '▼';
  font-size: 12px;
  color: #0575e6;
  transition: transform 0.2s;
}
.ttf-faq-item[open] .ttf-faq-summary::after {
  transform: rotate(180deg);
}
.ttf-faq-answer {
  padding: 0 18px 16px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

/* Footer */
footer {
  clear: both;
  background: #0b0f19;
  padding: 24px 20px 165px 24px;
  margin-bottom: 0;
}
footer p {
  color: #e5e7eb;
  display: block;
  text-align: center;
}
footer a { color: #60a5fa; }

/* Responsive Media Queries */
@media only screen and (max-width: 1024px) {
  .ttf-input-container, .input-container { width: 100%; }
  #ttf-bottom-bar, #bottom-bar { padding: 0px; }
  .share { max-width: 100%; }
  .ttf-biosymbols-grid .wxy { min-width: 44px; min-height: 44px; font-size: 26px; }
}
@media only screen and (max-width: 480px) {
  .ttf-biosymbols-grid .wxy { min-width: 40px; min-height: 40px; font-size: 22px; }
  .skin-tone-bar-btn { min-width: 60px; padding: 8px 10px; }
  div.scrollmenu.ttf-scrollmenu a { padding: 10px 8px; font-size: 13px; }
  .ttf-flowchart-steps { grid-template-columns: 1fr; }
}
