/*-------------------------------------------------1. Caption Formatter-------------------------------------------------*/

/* ============================================
   Social Media Tools - Shared Styles
   All social media tools share these styles
   ============================================ */

/* Tool Container */
.tool-container {
 /* max-width: 900px;*/
  margin: 0 auto;
}

/* Input Section */
.input-section {
  margin-bottom: 2rem;
}

/*#captionInput {
  width: 100%;
  min-height: 150px;
  padding: 1rem;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  background: #0c122b;
  border: 1px solid #263056;
  border-radius: 8px;
  color: white;
}

#captionInput:focus {
  outline: none;
  border-color: #4299e1;
}*/
#captionInput {
  width: 100%;
  min-height: 150px;   
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6; 
  background: rgba(255,255,255,0.05);
  color: var(--text, #eaeaea);
  /*border: 1px solid rgba(255,255,255,0.15);*/
  border: 1px solid rgba(199,197,197,0.20);
  /*border: 1px solid var(--border);*/
  transition: background .2s ease, border-color .2s ease;
  outline: none !important;
  box-shadow: none !important;
}
#captionInput:focus, input[type="text"]:focus, input[list]:focus {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  outline: none !important;
  box-shadow: none !important;
}
/* Control Row */
.control-row {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.control-row label {
  color: #4299e1;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Input Actions */
.input-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Preview Box */
.result-box {
  background: #0e1433;
  border: 1px solid #263056;
  border-radius: 14px;
  padding: 1.5rem;
  min-height: 150px;
  white-space: pre-wrap;
  color: white;
  font-size: 1rem;
  line-height: 1.6;
}

/* Emoji Picker (simple version) */
.emoji-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
  background: #0e1433;
  border: 1px solid #263056;
  border-radius: 8px;
  margin: 1rem 0;
}

.emoji-item {
  font-size: 1.5rem;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.emoji-item:hover {
  background: #1a1f3a;
}

/* Platform Limits (reuse from word-tools) */
.platform-limits {
  background: linear-gradient(180deg, #0e1433, #0c122b);
  border-radius: 14px;
  border: 1px solid #263056;
  padding: 2rem;
  margin: 2.5rem 0;
}

.limit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.limit-card {
  background: #0e1433;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #263056;
  border-left: 4px solid #4299e1;
}

.limit-card.exceeded {
  border-left-color: #fc8181;
}

.limit-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  color: #4299e1;
}

.limit-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.limit-count {
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
}

.limit-count.exceeded {
  color: #fc8181;
}

.limit-total {
  color: #718096;
  font-size: 0.9rem;
}

.limit-card small {
  color: #718096;
  font-size: 0.85rem;
}

.limit-message.exceeded {
  color: #fc8181;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .control-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .input-actions {
    flex-direction: column;
  }
  
  .input-actions .btn {
    width: 100%;
  }
}

/* Improved Emoji Picker Modal */
.emoji-picker-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0e1433;
  border: 2px solid #4299e1;
  border-radius: 14px;
  padding: 2rem;
  z-index: 1000;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto !important; /* Force scrolling */
}

/* Emoji Grid with Scrolling */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0;
  max-height: 50vh;
  overflow-y: auto;
  padding: 0.5rem;
  background: #0c122b;
  border-radius: 8px;
  border: 1px solid #263056;
}

.emoji-item {
  font-size: 1.5rem;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #1a1f3a;
  border: 1px solid #263056;
}

.emoji-item:hover {
  background: #4299e1;
  transform: scale(1.1);
}

.emoji-item.selected {
  background: #4299e1;
  border-color: white;
}

/* Category Tabs */
.emoji-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.category-tab {
  padding: 0.5rem 1rem;
  background: #1a1f3a;
  border: 1px solid #263056;
  border-radius: 20px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab:hover,
.category-tab.active {
  background: #4299e1;
  border-color: #4299e1;
}

/* Disabled button state */
.btn-outline.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #1a1f3a;
  border-color: #263056;
  color: #718096;
}

/* Visual feedback for dropdown */
#emojiPosition option[value="none"] {
  color: #718096;
  font-style: italic;
}

#emojiPosition option:not([value="none"]) {
  color: white;
}

/*-------------------------------------------------2. Instagram Bio Generator-------------------------------------------------*/
#bioInput {
  width: 100%;
  min-height: 150px;   
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6; 
  background: rgba(255,255,255,0.05);
  color: var(--text, #eaeaea);
  /*border: 1px solid rgba(255,255,255,0.15);*/
  border: 1px solid rgba(199,197,197,0.20);
  /*border: 1px solid var(--border);*/
  transition: background .2s ease, border-color .2s ease;
  outline: none !important;
  box-shadow: none !important;
}
#bioInput:focus, input[type="text"]:focus, input[list]:focus {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  outline: none !important;
  box-shadow: none !important;
}

/* Active template button styling */
.template-btn.active {
  padding:12px 18px !important;
  border-radius:12px !important;
  border:0px solid #3950ff99 !important;
  background:linear-gradient(135deg,#2a34a8,#3f7cf3) !important;
  font-weight:800 !important;
  color:#fff !important;
  text-decoration:none !important;
  cursor:pointer !important;   /* 👈 add this */
}

/* Optional: Add a subtle hover effect for non-active buttons */
.template-btn:not(.active):hover {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

/* Disabled button styling */
#prevExampleBtn:disabled,
#nextExampleBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Template buttons container - scrollable on mobile only */
/* Template container with scroll buttons (mobile only) */
/*.template-scroll-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}*/

.template-buttons-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  max-width: 100%;
}

/* Scroll buttons - hidden by default, shown only on mobile
.scroll-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #0e1433;
  border: 1px solid #263056;
  border-radius: 50%;
  color: #4299e1;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  z-index: 2;
  padding: 0;
}

.scroll-btn:hover {
  background: #1a1f3a;
  border-color: #4299e1;
  transform: scale(1.05);
}

.scroll-btn:active {
  transform: scale(0.95);
} 
.scroll-btn {
  display: none;}*/
/* Mobile styles */
/* Template container with scroll buttons (mobile only) */
/*.template-scroll-wrapper {
  position: relative;
  width: 100%;
}*/

/* Mobile styles */
@media (max-width: 768px) {
  /*.template-scroll-wrapper {
    background: transparent;
    margin: 0;
    padding: 0;
  }
  

  .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #0e1433;
    border: 1px solid #263056;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
    .scroll-btn:hover {
    background:linear-gradient(135deg,#2a34a8,#3f7cf3) !important;
    border-color:linear-gradient(135deg,#2a34a8,#3f7cf3) !important;
  }
  .scroll-btn.left {
    left: -5px;
  }
  
  .scroll-btn.right {
    right: -5px;
  }
*/  
  .template-buttons-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 2rem 1rem 2rem; /* Add padding for buttons */
    margin: 0;
    scrollbar-width: thin;
    /*scrollbar-color: #4299e1 #0e1433;*/
    /*scrollbar-color: #2a34a8 #3f7cf3;*/
    scrollbar-color: #404FF7 #0e1433;
    width: 100%;
    scroll-behavior: smooth;
    background: transparent; /* Ensure no background */
    border: none; /* Remove any borders */
  }
  
  /* Remove any background from the container */
  .template-buttons-container {
    background: transparent !important;
  }
}

/* Desktop styles - ensure buttons wrap normally */
@media (min-width: 769px) {
  .template-buttons-container {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  
  .template-buttons-container .template-btn {
    flex: 0 1 auto;
  }
}

/* Turn cursor to pointer for all template buttons */
.template-btn {
  cursor: pointer;
}
.bio-strength {
  font-size: 0.95rem;
  color: #718096;
}

.strength-score {
  font-weight: 700;
  margin-left: 4px;
}

.strength-label {
  margin-left: 6px;
  font-weight: 600;
}

/* Color states */
.strength-weak {
  color: #fc8181; /* red */
}

.strength-medium {
  color: #f6e05e; /* yellow */
}

.strength-strong {
  color: #68d391; /* green */
}
/*-------------------------------------------------3. Hashtag Generator-------------------------------------------------*/
/*-------------------------------------------------3. Hashtag Generator-------------------------------------------------*/
/* ============================================
   SOCIAL TOOLS CORE STYLES
   Reusable components for all social media tools
   ============================================ */

/*---------------------------------------------
   1. SCROLLABLE CONTAINERS (Horizontal/Vertical)
----------------------------------------------*/
.scroll-container {
  position: relative;
  margin: 1.5rem 0;
  width: 100%;
}

.scroll-wrapper {
  display: flex;
  gap: 0.75rem;
  scroll-behavior: smooth;
  padding: 0.5rem 0 1rem 0;
  /* Custom scrollbar styling */
  scrollbar-width: thin;
  /*scrollbar-color: #4299e1 #0e1433;*/
  scrollbar-color: #404FF7 #0e1433;
}

/* Horizontal scroll */
.scroll-wrapper.horizontal {
  overflow-x: auto;
  flex-wrap: nowrap;
}

/* Vertical scroll */
.scroll-wrapper.vertical {
  overflow-y: auto;
  flex-wrap: wrap;
}

/* Webkit scrollbar styling */
.scroll-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scroll-wrapper::-webkit-scrollbar-track {
  background: #0e1433;
  border-radius: 10px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
  background: #4299e1;
  border-radius: 10px;
}

.scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #5a9eff;
}

/* Desktop - hide scrollbar, show grid */
@media (min-width: 769px) {
  .scroll-wrapper.horizontal.desktop-grid,
  .scroll-wrapper.vertical.desktop-grid {
    overflow: visible;
    flex-wrap: wrap;
  }
  
  .scroll-wrapper.horizontal.desktop-grid::-webkit-scrollbar,
  .scroll-wrapper.vertical.desktop-grid::-webkit-scrollbar {
    display: none;
  }
}

/*---------------------------------------------
   2. SCROLL ARROWS (Mobile Only)
----------------------------------------------*/
.scroll-arrow {
  position: absolute;
  width: 32px;
  height: 32px;
  background: #0e1433;
  border: 1px solid #263056;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: white;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scroll-arrow:hover {
  background: linear-gradient(135deg, #2a34a8, #3f7cf3) !important;
  border-color: #3f7cf3 !important;
}

/* Arrow positions for horizontal scroll */
.scroll-arrow.left {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.scroll-arrow.right {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}

/* Arrow positions for vertical scroll */
.scroll-arrow.up {
  top: 1.5px;
   /*left: 18.5rem;*/
   left: 90%;
  transform: translateX(-50%);
}

.scroll-arrow.down {
  bottom: 1.5px;
   /*left: 18.5rem;*/
   left: 90%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .scroll-arrow {
    display: flex;
  }
}

@media (min-width: 769px) {
  .scroll-arrow {
    display: none !important;
  }
}

/*---------------------------------------------
   3. CATEGORY BUTTONS
----------------------------------------------*/
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.category-btn {
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn.active {
  padding: 12px 18px !important;
  border-radius: 12px !important;
  border: 0px solid #3950ff99 !important;
  background: linear-gradient(135deg, #2a34a8, #3f7cf3) !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.category-btn:not(.active):hover {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

/*---------------------------------------------
   4. HASHTAG CLOUD & ITEMS
----------------------------------------------*/
.hashtags-container {
  background: #0e1433;
  border: 1px solid #263056;
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: auto;
}

.hashtag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0 1rem 0;
}

.hashtag-item {
  background: #1a1f3a;
  border: 1px solid #263056;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.hashtag-item:hover {
  border-color: #4299e1;
  transform: translateY(-2px);
}

.hashtag-item.selected {
  background: linear-gradient(135deg, #2a34a8, #3f7cf3) !important;
  border: 0px;
}

.hashtag-checkbox {
  display: none;
}
.hashtags-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  
}
.hashtags-wrapper {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      min-height: 60px;
      padding: 1rem;
      /*background: #1a1f3a;*/
      background: transparent;
      border-radius: 12px;
}  


/* Popularity bar for hashtags */
.popularity-bar {
  height: 4px;
  background: #263056;
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.popularity-fill {
  height: 100%;
  background: linear-gradient(90deg, #4299e1, #667eea);
  border-radius: 2px;
}

/*---------------------------------------------
   5. SELECTED ITEMS PANEL
----------------------------------------------*/
.selected-panel {
  background: #0e1433;
  border: 1px solid #263056;
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-height: 60px;
  padding: 1rem;
  background: #1a1f3a;
  border-radius: 12px;
  margin: 1rem 0;
}

.selected-tag {
  background: linear-gradient(135deg, #2a34a8, #3f7cf3) !important;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-tag {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.remove-tag:hover {
  opacity: 1;
}

/*---------------------------------------------
   6. RECENT SECTION
----------------------------------------------*/
.recent-section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #263056;
}

.recent-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/*---------------------------------------------
   7. UTILITY CLASSES
----------------------------------------------*/



.refreshEmoji {
  display: none;
}

#clickHashtags {
  margin-left: 20px !important;
}

/*---------------------------------------------
   8. MOBILE OVERRIDES
----------------------------------------------*/
@media (max-width: 768px) {
  .scroll-container {
    /* Ensure wrapper doesn't create a box */
    background: transparent;
    margin: 0;
    padding: 0;
  }
  .scroll-wrapper.vertical {
  max-height: 200px; /* Can be overridden per tool */
}
.suggested-hashtags {
  justify-content: normal !important;
}
  .hashtags-wrapper {
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
  }
  
  .hashtag-cloud {
    padding-left: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20rem;
    row-gap: 0.25rem;
    max-height: 200px;
  }
  
  .categories-scroll {
    padding: 0.5rem 2rem 1rem 2rem;
    margin: 0;
  }
  .hashtags-count {
  color: #718096;
  font-size: 0.8rem;
  background: #0e1433;
  padding: 2px 6px;
  border-radius: 12px;
 /* margin-left: 0.25rem;*/
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 4px;
}
#clickHashtags{font-size: 0.8rem;}
  .selected-count {
  color: #718096;
  font-size: 0.8rem;
  background: #0e1433;
  padding: 2px 6px;
  border-radius: 12px;
 /* margin-left: 0.25rem;*/
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 4px;
}
}

/*-------------------------------------------------4. LinkedIn Headline Optimizer-------------------------------------------------*/

/* Custom dropdown arrow for datalist inputs */
input[list] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234299e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Remove default arrow in IE */
input[list]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 30px;
  height: 100%;
  cursor: pointer;
}

/* For Firefox */
input[list]::-moz-list {
  color: transparent;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.keyword-cloud .hashtag-item {
  background: #1a1f3a;
  border: 1px solid #263056;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.keyword-cloud .hashtag-item:hover {
  border-color: #4299e1;
  transform: translateY(-2px);
}


.input.has-value {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--glow2) !important;
  font-weight: 700;
  text-shadow:
    0 0 10px rgba(74,105,255,0.25),
    0 0 18px rgba(74,105,255,0.15);
}

.input-clear-btn {
  position: absolute;
 /* right: 10px;*/
 /* top: 50%;*/
 /* transform: translateY(-50%);*/
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 5;
}

.input-clear-btn:hover {
  background: rgba(255,255,255,0.22);
  color: var(--text);
}

.control {
  position: relative;
}
@media (max-width: 768px) {
.hashtag-item{margin-right:80px;}
.template-btn {
  white-space: normal;
  word-wrap: break-all;
  max-width: 100%;
  min-width:30%;
  padding-top:1.5rem;
  padding-bottom:1.5rem;
}
}

/*-------------------------------------------------5. Emoji Translator-------------------------------------------------*/
#emojiInput {
  width: 100%;
  min-height: 150px;   
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6; 
  background: rgba(255,255,255,0.05);
  color: var(--text, #eaeaea);
  /*border: 1px solid rgba(255,255,255,0.15);*/
  border: 1px solid rgba(199,197,197,0.20);
  /*border: 1px solid var(--border);*/
  transition: background .2s ease, border-color .2s ease;
  outline: none !important;
  box-shadow: none !important;
}
#emojiInput:focus, input[type="text"]:focus, input[list]:focus {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  outline: none !important;
  box-shadow: none !important;
}

.emoji-picker-modal {
  background: #0e1433;
  border: 1px solid #263056;
  border-radius: 14px;
  margin: 1.5rem 0;
}

.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0 1rem 0;
  border:none;
  background: transparent;
  max-height: 300px;
}
/*
.emoji-wrapper .scroll-arrow{
    display: flex !important;
}
*/
/* Hide scroll arrows by default */
.emoji-wrapper .scroll-arrow {
  display: none;
}

/* Only show when needed via JavaScript */
.emoji-wrapper .scroll-arrow[style*="display: flex"] {
  display: flex !important;
}
/* Mobile: Always show arrows */
@media (max-width: 768px) {
  .scroll-arrow {
    display: flex !important;
  }
}
@media (max-width: 768px) {
  .emoji-grid {
    padding-left: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    /*column-gap: 20rem;*/
    row-gap: 0.25rem;
  }
}

.emoji-wrapper {
  min-height: 0 !important;
  height: auto !important;
}

.emoji-grid {
  min-height: 0 !important;
  height: auto !important;
}

.stats-row{
    margin-top: 0 !important;
}

.control-row{
    margin-bottom: 0 !important;
}