* {
  box-sizing: border-box;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
}

body {
  margin: 0;
  background: #f2f2f2;
  color: #222;
}

body.dark {
  background: #0f1117;
  color: #eaeaea;
}

.layout {
  display: flex;
  height: 100vh;
}

.slang-list {
  width: 260px;
  background: #e6e6e6;
  padding: 15px;
  overflow-y: auto;
}

body.dark .slang-list {
  background: #1a1d29;
}

.slang-list h3 {
  margin-top: 0;
  text-align: center;
}

.slang-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slang-list li {
  padding: 8px;
  margin-bottom: 5px;
  background: #ffffff;
  border-radius: 10px;
  cursor: pointer;
}

body.dark .slang-list li {
  background: #2a2f45;
}

.slang-list li:hover {
  opacity: 0.8;
}

.app {
  flex: 1;
  padding: 40px;
  text-align: center;
}

.subtitle {
  opacity: 0.8;
}

input {
  width: 60%;
  padding: 12px;
  border-radius: 20px;
  border: none;
  margin-top: 20px;
}

button {
  padding: 12px 20px;
  border-radius: 20px;
  border: none;
  margin-top: 15px;
  cursor: pointer;
}

#result {
  margin-top: 25px;
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
}

body.dark #result {
  background: #1f2333;
}

.mode-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
}

.discord-link,
.suggest-link {
  position: fixed;
  bottom: 20px;
  padding: 12px 18px;
  border-radius: 20px;
  background: #5865F2;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.suggest-link {
  left: 20px;
  background: #34a853;
}

.discord-link {
  right: 20px;
}

.credit {
  position: fixed;
  bottom: 5px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}

/* Scrollbar styling */
.slang-list::-webkit-scrollbar {
  width: 8px;
}

.slang-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

body.dark .slang-list::-webkit-scrollbar-thumb {
  background: #555;
}
