/* ============================================
   PROFESSIONAL KAOMOJI GALLERY CSS
   Clean | Modular | Responsive
   ============================================ */

/* --------------------------------------------
   1. GLOBAL RESET & BASE
--------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Better media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}


/* Inherit fonts for form elements */
button,
input,
textarea {
  font-family: inherit;
  font-size: 100%;
}

/* --------------------------------------------
   2. DESIGN TOKENS (CSS Variables)
--------------------------------------------- */
:root {
  /* Colors */
  --bg-body: #f9f7f5;
  --text-primary: #1e1e2a;
  --surface: #ffffff;
  --surface-alt: #f8f8f8;
  --border-light: #ddd;
  --border-med: #ccc;
  --accent: #3498db;
  --accent-dark: #2980b9;
  --success: #2ecc71;
  --success-dark: #27ae60;
  --danger: #e74c3c;
  --highlight: #f4a261;

  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.05);

  /* Borders & Radius */
  --radius-card: 32px;
  --radius-element: 0.5rem;
  --radius-pill: 2rem;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* --------------------------------------------
   3. BASE BODY & TYPOGRAPHY
--------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-body);
    width: 100%;
    height: 100%;
    font-size: 62.5%;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
}

 
  .container{
      overflow-x: hidden;
  }
  div, section, span, ul, li, a{box-sizing: border-box;
    
  }


/* --------------------------------------------
   4. HEADER & NAVIGATION
--------------------------------------------- */
.headerBox {
  position: relative;
  background-color: var(--surface-alt);
  padding: 1rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 10;
  border-radius: var(--radius-element);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.headerTitle {
  margin: 0;
  font-size: 2.5rem;
}

.headerTitle a {
  text-decoration: none;
  color: #333;
  transition: var(--transition);
}

.headerTitle a:hover {
  color: #1e1e1e;
}

/* Hamburger button */
#toggleButton {
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 11;
}

.toggle-bar {
  width: 2.563rem;
  height: 0.25rem;
  background-color: #333;
  margin: 0.25rem 0;
  transition: var(--transition);
}

.toggle-bar:first-child { width: 4rem; }
.toggle-bar:nth-child(2) { width: 3rem; }
.toggle-bar:last-child { width: 2rem; }

/* Slide-out menu */
.menu-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-med);
  padding: 1rem;
  z-index: 1000;
  width: 280px;
  max-width: 85vw;
  max-height: 80vh;
  overflow-y: auto;
  transform-origin: top right;
  transform: scaleX(0);
  animation: openMenu 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 0 12px;
}

.menu-links.active {
  display: flex;
  transform: scaleX(1);
}

@keyframes openMenu {
  0% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

.menu-links a {
  display: block;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: #333;
  font-size: 1.6rem;
  border-radius: var(--radius-element);
  transition: background-color 0.2s ease;
}

.menu-links a:hover {
  background-color: #333;
  color: #fff;
}

/* Close button inside menu */
.close-button {
  cursor: pointer;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  line-height: 2.8rem;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 1001;
}

.close-button:hover {
  background-color: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}

/* --------------------------------------------
   5. FIXED INPUT BAR (Bottom)
--------------------------------------------- */
.inputBox {
    display: flex;
    flex-direction: row;
    width: 100%;
    position: relative;
}

.inputBox .buttons {
    display: flex;
    flex-direction: row;
}

.inputBox input[type="text"] {
    width: calc(100% - 5rem);
    height: 4rem;
    line-height: 1.5;
    font-size: 1.9rem;
    text-align: center;
    padding-top: .2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: .1rem solid #1E1E1E;
    box-sizing: border-box;
    resize: none;
    outline: none;
}

.inputOuter {
    position: fixed;
    z-index: 999;
    max-width: 100%;
    padding: 1rem;
    bottom: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    border: .1rem solid #1E1E1E;
    border-radius: .2rem;
    margin-top: auto;
    margin: 0 auto;
    outline: 0;
    text-align: center;
    background-color: #1E1E1E;
    box-shadow: 0 .1rem .3rem rgba(0, 0, 0, 0.2);
}

 .inputOuter .container {
    position: relative;
}

.inputOuter .clear:hover {
    color: #000;
}
  .buttons {
        display: flex;
        flex-direction: row;
      }
  button {
        padding: .9rem 1.5rem;
        width: 10rem;
        height: 4rem;
        font-size: 1.6rem;
        background-color: #3498db;
        color: #fff;
        border: none;
        cursor: pointer;
        margin-bottom: .9rem;
      }
  
  button:last-child {
        margin-bottom: 0;
      }
  button:first-child {
        margin-bottom: 0;
      }
  
      button:hover {
        background-color: #2980b9;
      }
  
  #clear{     
        position: absolute;
        top: 50%;
        right: 11rem;
        transform: translateY(-50%);
        width: 3rem;
        height: 3rem;
        background-color: red;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
      }
  
  #clear:hover {
        background-color: darkred;
      }
  
.clear-symbol-button {
    font-size: 2rem; /* Adjust the font size */
    width: 1.5rem; /* Adjust the width */
    height: 1.5rem; /* Adjust the height */
    padding: 0.2rem; /* Add padding */
    margin-left: 0.5rem; /* Adjust the margin */
    border: none;
    background-color: transparent;
    color: red; /* Change the color */
    cursor: pointer;
    outline: none; /* Remove the default outline */
}



  
  #copyAll:hover::after {
  /*        content: "Click The Copy Button To Copy All Symbols To The Input Box";*/
          display: block;
          position: absolute;
          background-color: #333;
          color: #fff;
          padding: 0.5rem;
          border-radius: 0.3rem;
          font-size: 14px;
          top: -30px;
          left: 50%;
          transform: translateX(-50%);
  }
  
  #copyAll { 
/*          background-image: linear-gradient(135deg, #ffd700 10%, #ffbf00 30%, #ff8040 50%, #ff6666 70%, #ff69b4 90%);*/
          border: none;
          border-radius: .5rem;
          font-weight: bold;
          color: white;
          cursor: pointer;
          transition: all 0.3s ease;
          background: green;
  }
  
  #copyAll:active {
          box-shadow: .2rem .2rem .5rem #fc894d;
          outline-color: transparent;
          outline-style:solid;
          transition: 0.7s;
  }
  
  
/* --------------------------------------------
   6. KAOMOJI GRID (main content)
--------------------------------------------- */
.output {
  max-width: 1200px;
  margin: 0 auto;
}

  
.kaomoji { /* New Class Name */
  border: 1px solid #ddd;
  margin: 0.2rem;
  padding: .6rem .9rem .6rem .9rem ; /* Increased padding for better spacing */
  font-size: 1.5rem;
  font-weight: 400;
  background-color: #f7f7f7; /* Lighter background for a softer look */
  color: #333; /* Darker text for better contrast */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  /*min-width: 7rem;*/
  max-width: max-content;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  cursor: pointer;
  transition: all 0.2s ease-in-out; /* Smooth hover effect */
}

.kaomoji:hover {
  /* Background animation with gradient reveal: */
  background-image: linear-gradient(to right, transparent 0%, #f7f7f7 50%, transparent 100%);
  background-position: 0 0;
  animation: background-reveal 0.3s ease-in-out forwards;

  /* Outline animation with color change: */
  outline: 2px solid transparent;
  animation: outline-color 0.3s ease-in-out forwards;
}


@keyframes background-reveal {
  from { background-position: -200% 0; } /* Starts with gradient off-screen */
  to { background-position: 0 0; } /* Animates gradient reveal */
}

@keyframes outline-color {
  from { outline-color: #ffc107; } /* Starts with orange outline */
  to { outline-color: #333; } /* Animates to dark outline */
}




/* Optional title inside grid */
.symbolsTitle {
  grid-column: 1 / -1;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem 0 2rem 0;
  color: #2c3e66;
  letter-spacing: 0.1rem;
  text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------
   7. CLICKED SYMBOLS (horizontal scroller)
--------------------------------------------- */
#title{
      width: fit-content;
  }
  
  .allSymbols{
      margin-left: 1rem;
      font-size: 2rem;
      color: #000; 
      width: fit-content;
      display: inline-flex;
  
  }
  
  .clicked-symbols {
          cursor: pointer;
          display: flex;
          flex-wrap: wrap;
          gap: .5rem;
      }
  
  .clicked-symbol-box {
          padding: .5rem;
          margin: .2rem;
          font-size: 1.4rem;
          border: .1rem solid #ddd;
          border-radius: .5rem;
          display: inline-block;
          width: fit-content;
          background-color: #f0f0f0;
          align-items: center;
          cursor: pointer;
  
          
        
      }
  
  #clicked-symbols-container{
         display: flex;
         overflow: auto;
         white-space: nowrap;
         width: 100%;
         /*position: fixed;
         bottom: 10rem;
         left: 0;
         z-index: 99;*/
         
  }    
  #clicked-symbols-container::-webkit-scrollbar {
    width: 4rem; /* Width of the scrollbar */
    height: 1rem;
  }
  
  #clicked-symbols-container::-webkit-scrollbar-thumb {
    background-color: #aaa; /* Color of the scrollbar thumb */
    border-radius: .8rem; /* Rounded corners for the thumb */
  }
  
  #clicked-symbols-container::-webkit-scrollbar-track {
    background-color: #f0f0f0; /* Color of the scrollbar track */
  }


.custom-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(50%, -50%);
  padding: 0.625rem 0.9375rem; /* Equivalent to 10px 15px */
  background-color: #2ecc71; /* Green background */
  color: white; /* White text */
  border-radius: 0.3125rem; /* Equivalent to 5px */
  font-family: Arial, sans-serif; /* Font family */
  font-size: 1rem; /* Equivalent to 14px */
  box-shadow: 0px 0.25rem 0.5rem rgba(0, 0, 0, 0.1); 
  z-index: 9999; /* Ensure it's on top of other elements */
  display: none; /* Initially hidden */
  transition: opacity 0.3s ease;
}


.custom-display.show {
  display: block; /* Show when needed */
}

     
/* --------------------------------------------
   8. LOAD MORE BUTTON & INFINITE SCROLL
--------------------------------------------- */
.loadMoreLayout {
  margin: 1rem 0;
  font-size: 2rem;
  width: 100%;
  text-align: center;
  background: #e3e2e2;
  cursor: pointer;
  color: #434c58;
  padding: 1.2rem;
  border-radius: 3rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.loadMoreLayout::before,
.loadMoreLayout::after {
  content: "";
  position: absolute;
  width: 2rem;
  height: 2rem;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.loadMoreLayout::before {
  top: 0;
  left: 0;
  border-top: 2px solid #1e1e1e;
  border-left: 2px solid #1e1e1e;
}

.loadMoreLayout::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid #1e1e1e;
  border-right: 2px solid #1e1e1e;
}

.loadMoreLayout:hover::before,
.loadMoreLayout:hover::after {
  width: 100%;
  height: 100%;
}

.loadMoreLayout:hover {
  color: #1e1e1e;
  background: #d0cfcf;
}

.loadMoreBtn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  font-size: 2rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 3rem;
  cursor: pointer;
  transition: var(--transition);
}

.loadMoreBtn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* --------------------------------------------
   9. SOCIAL MEDIA SHARING
--------------------------------------------- */
.social-icons {
          position: relative; /* Change from fixed to relative */
          top: -1rem; /* Distance from the top */
          right: 8rem; /* Distance from the right */
          display: flex;
          align-items: flex-end;
          flex-direction: row;
          justify-content: flex-end; /* Adjusted to display from the right side */
          
      }

.social-icon {
         top: 1rem;
         right: 2rem;
         margin: 0 .1rem;
         width: 4rem;
         height: 4rem;
         border-radius: .9rem;
         overflow: hidden;
         position: relative;
         background-color: #f0f0f0; /* Light background color */
         transition: background-color 0.3s ease;
     }

.social-icon img {
        width: 100%;
        height: 100%;
        transition: opacity 0.3s ease;
}

.social-icon:hover {
    background-color: #d0d0d0; /* Lighter background color on hover */
}

.social-icon:hover img {
    opacity: 0.7;
}

.share-text {
    font-size: 1.8rem;
    margin-right: 2rem; /* Adjust spacing between "Share" text and icons */
    font-weight: bold;
}

.social-icon {
    margin-right: 10px; /* Adjust spacing between icons */
}

.social-icon:last-child {
    margin-right: 0; /* Remove margin from last icon */
}*

/* --------------------------------------------
   10. FLOATING BUTTONS (Random / Back to top)
--------------------------------------------- */


/* -------------------------------------------
   11. Article
-------------------------------------------- */
 .article{
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 32px;
            box-shadow: 0 12px 30px rgba(0,0,0,0.05);
            overflow: hidden;
            padding: 2rem 1.8rem;
        }
         h1 {
            font-size: 2.8rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, #ffb347, #ff6b6b);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            margin-bottom: 1rem;
            line-height: 1.2;
        }
        h2 {
            font-size: 2rem;
            font-weight: 700;
            margin: 1.8rem 0 0.8rem 0;
            padding-left: 0.8rem;
            border-left: 6px solid #ffb347;
        }
        h3 {
            font-size: 1.8rem;
            font-weight: 600;
            margin: 1.2rem 0 0.6rem;
            color: #ffb347;

        }
        p {
            margin-bottom: 1rem;
            font-size: 1.5rem;
            color: #2d2f36;
        }
        .short-p {
            max-width: 85%;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            background: #ffffff;
            margin: 1.5rem 0;
            font-size: 1.3rem;
            align-items: center;
            
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        th, td {
            border: 1px solid #ffe0c4;
            padding: 10px 12px;
            text-align: left;
            vertical-align: top;
        }
        th {
            background: #fff0e4;
            font-weight: 700;
        }
       ul, ol {
          margin: 0.8rem 0 1rem 1.6rem;
          padding-left: 0;                 /* remove extra padding */
          list-style-position: inside;     /* bullets/numbers appear inside the content */
      }

      li {
          margin: 0.4rem 0;
          font-size: 1.3rem;
          line-height: 1.5;
      }


        .kaomoji-box,.kaomoji-grid {
            background: #f3f1ed;
            padding: 1rem;
            border-radius: 1rem;
            font-family: monospace, 'Courier New', 'Apple Color Emoji', 'Segoe UI Emoji';
            font-size: 1.2rem;
            word-break: break-word;
            margin: 0.8rem 0;
            border-left: 5px solid #f4a261;
        }
        .tip,.tip-box,.tip-card {
            background: #eaf8f0;
            border-radius: 1rem;
            padding: 1rem 1.4rem;
            margin: 1.2rem 0;
            font-size: 1.4rem;
            border-left: 6px solid #2a9d8f;
        }
        .seo-suggestion {
            background: #eef2fa;
            padding: 1rem 1.5rem;
            border-radius: 24px;
            margin: 2rem 0 1rem;
            font-size: 0.9rem;
            border: 1px solid #cbd5e1;
        }
        .cta {
            background: #1e2a3e;
            color: white;
            text-align: center;
            padding: 1.2rem;
            
            margin: 2rem 0 0.5rem;
            font-size: 1.5rem;
            font-weight: 500;
        }
        .cta a {
            color: #ffd966;
            text-decoration: none;
            font-weight: 600;

        }
       
        @media (max-width: 640px) {
            .container {
                padding: 1.2rem;
            }
            h1 { font-size: 1.6rem; }
            h2 { font-size: 1.4rem; }
            table, th, td { font-size: 0.85rem; }
        }



/* --------------------------------------------
   12. FOOTER SECTION
--------------------------------------------- */
footer {
  background-color: var(--surface-alt);
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0 1rem;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.footerTitle {
  font-size: 2.2rem;
  font-weight: 700;
}

.footerSubTitle {
  font-size: 1.6rem;
  color: #555;
}

.footerPara {
  max-width: 85%;
  margin: 1rem auto;
  font-size: 1.4rem;
}

.footerLinks nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem;
}

.footerLinks nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1.4rem;
  transition: color var(--transition);
}

.footerLinks nav ul li a:hover {
  color: #000;
  text-decoration: underline;
}

.footerCopyright {
  font-size: 1.3rem;
  color: #666;
  padding: 1rem;
}

/* --------------------------------------------
   12. LOADERS (Ellipsis & Wheel)
--------------------------------------------- */
.pagination__next{display: none;}
/* =============================================
   PAGINATION & SCROLLER STATUS – CENTERED
   ============================================= */

/* Center the scroller status container */
.scroller-status {
    text-align: center;
    margin: 1rem auto;
}



/* Optional: ensure the clearing div doesn't disrupt layout */
div[style='clear: both;'] {
    clear: both;
}
  
  .loader-ellips {
    font-size: 20px;
    position: relative;
    width: 4em;
    height: 1em;
    margin: 10px auto;
    display: flex;
    justify-content: center; /* Center the dots horizontally */
    align-items: center; /* Center the dots vertically */
  }
  
  .loader-ellips__dot {
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background: #1E1E1E; /* Pink background color */
    position: relative;
    transform: scale(0);
    animation: pulse 1s infinite cubic-bezier(0.23, 1, 0.32, 1);
  }
  
  .loader-ellips__dot:nth-child(1) {
    animation-delay: -0.4s;
  }
  
  .loader-ellips__dot:nth-child(2) {
    animation-delay: -0.2s;
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: scale(0);
    }
    50% {
      transform: scale(1);
    }
  }
  
  /* Restyled loader-wheel */
  .loader-wheel {
    font-size: 64px;
    position: relative;
    height: 1em;
    width: 1em;
    padding-left: 0.45em;
    overflow: hidden;
    margin: 0 auto;
    animation: loader-wheel-rotate 0.5s steps(12) infinite;
  }
  
  .loader-wheel i {
    display: block;
    position: absolute;
    height: 0.3em;
    width: 0.1em;
    border-radius: 0.05em;
    background: #555;
    opacity: 0.8;
    transform: rotate(-30deg);
    transform-origin: center 0.5em;
  }
  
  @keyframes loader-wheel-rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  

/* --------------------------------------------
   13. Back To Top
--------------------------------------------- */
#randomTitle{
    float: left;
    font-size: 2rem;
    color: rgb(181, 181, 181) ;
  }
  #randomBtn{
    float: right;
    font-size: 2rem;
    margin-right: -38rem;
    border-radius: 1rem;
    border: .3rem soild  #1E1E1E;
    cursor: pointer;
    color:  #1E1E1E;
    display: inline-block;
  }
  #randomBtn img{
      
      max-width: 8%;
      max-height: 8%;
      font-size: 2.1rem;
      bottom: 35rem;
      position: fixed;
      right: 0;
      z-index: 999;
      background: #fff;
      color: #777;
      padding: .8rem 1rem;
      border: .2rem solid  #1E1E1E;
      border-radius: .5rem;
      box-shadow: .1rem .2rem .3rem 0 rgba(0, 0, 0, .21);
      outline: none;
      cursor: pointer;
   }
  
  #backBtn img{
      max-width: 8%;
      max-height: 8%;
      font-size: 2.1rem;
      bottom: 15rem;
      position: fixed;
      right: 0;
      background: #fff;
      z-index: 999;
      color: #777;
      padding: .8rem 1rem;
      border: .2rem solid  #1E1E1E;
      border-radius: .5rem;
      box-shadow: .1rem .2rem .3rem 0 rgba(0, 0, 0, .21);
      outline: none;
      cursor: pointer;
  
  }
  
  #backBtn, a{
      text-decoration: none;
      color:  #1E1E1E;
      
  }

/* --------------------------------------------
   14. Links
--------------------------------------------- */


   #img{
         display: block;
         margin-left: auto;
         margin-right: auto;
         width: 80%;
         height: 80%;
         align-content: center;
  }
  
/* =============================================
   OUTER LINKS CONTAINER – WITH BORDER & SHADOWS
   Inner links: no radius, spaced, with their own shadows
   ============================================= */

/* Outer container – now has border + box shadow */
.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;                       /* we'll use margins on children for spacing */
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 1.5rem;         /* inner spacing so border wraps content nicely */
    text-align: center;
    
    /* ===== BORDER + OUTER BOX SHADOW ===== */
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;              /* keep rectangular, no rounding */
    box-shadow: 
        0 20px 35px -12px rgba(0, 0, 0, 0.2),   /* outer depth */
        inset 0 1px 0 rgba(255, 255, 255, 0.5);  /* subtle inner top highlight */
    
    background: rgba(255, 255, 255, 0.4);        /* very light background to make border pop */
    backdrop-filter: blur(0px);                  /* optional: clean */
}

/* Individual link buttons – no changes except we keep them rectangular & spaced */
.links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 1rem 0.5rem 0;   /* gap between links */
    padding: 0.9rem 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1e2a3e;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: none;
    border-radius: 0;               /* rectangular */
    
    /* Inner link shadows */
    box-shadow: 
        0 10px 20px -8px rgba(0, 0, 0, 0.15),
        0 2px 4px -2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Remove margin from last link (to avoid extra space at end of row) */
.links a:last-child {
    margin-right: 0;
}

/* Animated shine overlay */
.links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
    z-index: -1;
}

.links a:hover::before {
    left: 100%;
}

/* Hover state for inner links */
.links a:hover {
    background: linear-gradient(135deg, #1e2a3e 0%, #2c3e50 100%);
    color: #ffffff;
    box-shadow: 
        0 18px 28px -12px rgba(0, 0, 0, 0.3),
        0 4px 8px -4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Active effect for inner links */
.links a:active {
    transform: translateY(2px);
    box-shadow: 
        0 6px 12px -6px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: 0.05s;
}

/* Focus accessibility */
.links a:focus-visible {
    outline: 3px solid #ffb347;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .links {
        margin: 2.5rem auto;
        padding: 1.5rem 1rem;
        box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
    }
    .links a {
        margin: 0.4rem 0.8rem 0.4rem 0;
        padding: 0.7rem 1.6rem;
        font-size: 1.4rem;
        box-shadow: 
            0 6px 12px -6px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

@media (max-width: 480px) {
    .links {
        padding: 1rem;
    }
    .links a {
        margin: 0.3rem 0.6rem 0.3rem 0;
        padding: 0.6rem 1.2rem;
        font-size: 1.3rem;
    }
}


/* --------------------------------------------
   15. FeceBook Comments
--------------------------------------------- */

  .fbComment{
         margin-top: 10rem;
         font-size: 2rem;
         margin-left: .7rem;
  }
  .fbComment::before {
    font-weight: bold;
    color: navy;
    content: 'Add Your Own Kaomoji Emoticons in the Comment Box Below:';
  }
  .fbComments{
         width: 80%;
         display: inline-flex;
         justify-content: center;
  }


/* --------------------------------------------
   14. RESPONSIVE BREAKPOINTS
--------------------------------------------- */
/* Tablet */
@media (max-width: 998px) {
  html { font-size: 55%; }
  body { padding-bottom: 10rem; }
  .kaomoji { padding: 0.6rem 1rem; }
}



/*Mobile friendly responsive layout*/
  @media(max-width:998px){
     html{
         font-size: 55%;
  
    }
   
  }
  
  @media(max-width:768px){
    html{
        font-size: 45%;
        
   }
  
  .inputOuter{max-width: 95%;}
  .output{max-width: 95%;}
  #backBtn img{
      max-width: 13%;
      max-height: 13%;
      font-size: 2.1rem;
  }
  #randomBtn img{
      max-width: 13%;
      max-height: 13%;
      font-size: 2.1rem;
      bottom: 60rem;
  }
   .social-icons {
          position: relative; /* Change from fixed to relative */
          top: -.4rem; /* Distance from the top */
          right: 13rem; /* Distance from the right */
          display: flex;
          align-items: flex-end;
          flex-direction: row;
          justify-content: flex-end; /* Adjusted to display from the right side */
      }

  
  
  }

  