:root {
  --primary-color: #11b867;
  --secondary-color: #14da83;
  --accent-color: #FFE66D;
  --background-color: #f0f7ff;
  --text-color: #2C3E50;
  --header-height: 80px;
  --sidebar-width: 300px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  width: 100%;
  overflow-x: hidden;
}

.container {
  min-height: 100vh;
  padding-bottom: 70px;
  position: relative;
  width: 100%;
  max-width: 100%;
}

header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
 
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  width: 100%;
}

.header-content {
  text-align: center;
  flex-grow: 1;
  color: white;
  padding: 0 1rem;
  padding-right: 70px;
}

.header-content h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  font-size: clamp(1.5rem, 4vw, 2rem);
}


.menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 1rem;
  color: white;
}

.menu-btn:hover {
  transform: scale(1.1);
}
.sidebar-content {
  max-height: 700px; 
  overflow-y: auto;
  margin-top: 60px;
}

.sidebar-content ul li a {
  display: block;  
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  text-align: right;

}
.header-content a{
color:white;
text-decoration: none;  
font-size: clamp(1.5rem, 3vw, 2.3rem);
font-weight: bold;
}


.header-content p {
  font-size: clamp(0.8rem, 2vw, 1.2rem);
}
.sidebar {
  position: fixed;
  left: calc(-1 * var(--sidebar-width));
  top: 0;
  height: 100%;
  width: var(--sidebar-width);
  background: white;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  transition: left 0.3s ease;
  z-index: 200;
}

.close-menu-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-color);
}

.close-menu-btn:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.sidebar.active {
  left: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  display: none;
}

.menu-overlay.active {
  display: block;
}

.sidebar-content {
  padding: 2rem 1rem;
 
}

.sidebar-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.sidebar-content ul {
  list-style: none;
}

.sidebar-content a {
  display: block;

  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-content a:hover {
  background-color: var(--accent-color);
  color: var(--text-color);
  transform: translateX(5px);
}

main {
  padding: 1rem;
  padding-top: calc(var(--header-height) + 2rem);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}



.emoji-section {
  margin-bottom: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
}

@media (min-width: 768px) {
  .emoji-section {
    padding: 2rem;
  }
}

.emoji-section h1, 
.emoji-section h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  position: relative;
  padding-left: 1rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.emoji-section h1::before, 
.emoji-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .emoji-grid {
    gap: 0.6rem;
  }
}

.emoji-item {
  background: #f6f6f6;
  border: 0px solid #d3d3d3;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow-wrap: break-word;
  padding-left: 16px;
  padding-right: 16px;
  color: #212529;
  font-size: 95.5%;
}

.cate a:hover {
  background-color: cornsilk;
}
.emoji-item:hover {
  transform: translateY(-3px) scale(1.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #fbf8ea;
}

.about-section {
  width: 100%;

  margin: 3rem auto;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .about-section {
    padding: 2rem;
  }
}

.about-section h1 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.about-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

footer {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  margin-top: 3rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  width: 100%;
}

@media (min-width: 768px) {
  footer {
    padding: 2rem;
  }
}

.copy-history {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 0.8rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
}

@media (min-width: 768px) {
  .copy-history {
    padding: 1rem;
  }
}

.history-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .history-container {
    gap: 0.8rem;
  }
}

#history {
  flex-grow: 1;
  padding: 0.8rem;
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

#history:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.clear-btn,
.copy-all-btn {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: var(--secondary-color);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .clear-btn,
  .copy-all-btn {
    padding: 0.8rem 1.2rem;
  }
}

.clear-btn:hover,
.copy-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.copied {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-color);
  color: white;
  padding: 1rem 1rem;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1000;
}

.copied.active {
  display: block;
  animation: fadeOut 1.5s forwards;
}

@keyframes fadeOut {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}
button.copy-all-btn {
  font-size: large;
}
.cate, .pages, nav {
  width: 100%;
  text-align: center;
  margin: 1rem 0;
}
.cate a, .pages a, nav a {
  background: #fff;
  margin-bottom: 5px;
  color: #4a4a4a;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: none;
  display: inline-flex
;
  font-size: 1rem;
  height: 2.5em;
  justify-content: flex-start;
  line-height: 1.5;
  padding: calc(.5em - 1px) calc(.75em - 1px);
  position: relative;
  vertical-align: top;
  text-decoration: none;
  margin-right: 3px;
}


.category a:hover {
  background-color: #be5151;
}
.category a{
  background: #d95d5d;
  margin-bottom: 5px;
  color: #f3f3f3;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  border-radius: 4px;
  box-shadow: none;
  display: inline-flex
;
text-decoration: none;
  font-size: 1rem;
  height: 2.5em;
  justify-content: flex-start;
  line-height: 1.5;
  padding: calc(.5em - 1px) calc(.75em - 1px);
  position: relative;
  vertical-align: top;
}

.category {
  width: 100%;
  float: left;
  text-align: center;
  margin: 1rem 0;
}

footer a{
text-decoration: none;
color:white;


}

.page-load-status {
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
  color: #666;
}

.loader {
  display: inline-block;
  animation: rotate 1s linear infinite;
  font-size: 2rem;
}

@keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

    
.about-section ul {
      list-style-type: none; 
      padding: 0; 
      margin: 0; 
  }

  
  .about-section li {
      font-family: Arial, sans-serif; 
      font-size: 16px; 
      line-height: 1.6; 
      margin-bottom: 10px; 
      padding-left: 20px; 
      position: relative; 
  }

  
  .about-section li::before {
      content: "•"; 
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%); 
      font-size: 20px; 
      color: #FF6347; 
  }