body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;
}

.site-header {
  background: #ffffff;
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 2rem;
}

.site-subtitle {
  color: #777;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.container {
  display: flex;
  height: calc(100vh - 120px);
  overflow: hidden;
}

.sidebar {
  width: 200px;
  background-color: #fff;
  border-right: 1px solid #ddd;
  padding: 1rem;
  overflow-y: auto;
}

.sidebar a {
  display: block;
  margin-bottom: 1rem;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.sidebar a:hover {
  text-decoration: underline;
}

.content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

#emoji-search {
  width: 100%;
  padding: 10px;
  margin-bottom: 1.5rem;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.emoji-category {
  margin-bottom: 2rem;
}

.emoji-category h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.emoji-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.emoji-buttons button {
  font-size: 28px;
  padding: 10px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.1s ease;
}

.emoji-buttons button:hover {
  transform: scale(1.2);
}

.meaning-panel {
  width: 320px;
  background-color: #ffffff;
  border-left: 1px solid #ddd;
  padding: 1rem;
  overflow-y: auto;
}

.meaning-panel h2 {
  margin-top: 0;
}

#emoji-description {
  font-size: 16px;
  margin-bottom: 10px;
}

#user-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#submit-meaning {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  background-color: #4caf50;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

#submit-meaning:hover {
  background-color: #45a049;
}

#sort-buttons {
  margin-top: 15px;
}

#sort-buttons button {
  margin-right: 10px;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #aaa;
  border-radius: 5px;
  background: #f4f4f4;
  cursor: pointer;
}

#sort-buttons .active-sort {
  background: #2196f3;
  color: white;
  border-color: #2196f3;
}

#interpretations-list {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
}

#interpretations-list li {
  background: #f1f1f1;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#interpretations-list li span {
  flex: 1;
  font-size: 15px;
}

.interp-like {
  background-color: #e0e0e0;
  border: none;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
}

.interp-like.liked {
  background-color: #ffc107;
  color: #000;
}

.interp-delete {
  background-color: #ff4444;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
}

.interp-delete:hover {
  background-color: #d32f2f;
}

#show-all-button {
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 14px;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: none;
}

#show-all-button:hover {
  background-color: #1976d2;
}

.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  opacity: 0;
  font-size: 14px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    display: none;
  }

  .meaning-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid #ccc;
  }

  #emoji-search {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
  }

  .emoji-buttons button {
    font-size: 24px;
    padding: 8px;
  }

  h2 {
    font-size: 18px;
  }

  #emoji-description {
    font-size: 14px;
  }
}
