body {
  cursor: none; /* Hide default pointer */
  margin: 0;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fdfbe9;
  background-size: cover; /* Ensures the easter egg background fills screen */
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color 0.3s, color 0.3s, background-image 0.3s;
}

#navi-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.dark {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.card {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

body.dark .card {
  background-color: #2c2c2c;
  color: #f1f1f1;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.version {
  font-size: 0.75rem;
  color: #444;
  padding: 4px;
  background-color: #eee;
  border-radius: 5px;
}

body.dark .version {
  background-color: #3a3a3a;
  color: #ddd;
}

.toggle-mode img {
  width: 20px;
  height: 20px;
  transition: opacity 0.3s ease;
}

.github-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.github-icon:hover {
  opacity: 1;
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.title-text {
  font-size: 1.4rem;
  font-weight: bold;
  color: #144d14;
}

body.dark .title-text {
  color: #8cd98c;
}

.icon-small {
  width: 20px;
  height: 20px;
  margin: 0 6px;
  vertical-align: middle;
  image-rendering: crisp-edges;
}

.translation-count {
  margin-top: 5px;
  font-size: 0.85rem;
  color: #444;
}

body.dark .translation-count {
  color: #ccc;
}

#count-number {
  font-weight: bold;
  font-size: 1rem;
}

select,
textarea,
.translate,
.copy-btn {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #000;
  transition: background-color 0.3s, color 0.3s;
  box-sizing: border-box;
}

body.dark select,
body.dark textarea,
body.dark .translate,
body.dark .copy-btn {
  background-color: #444;
  color: #eee;
  border: 1px solid #888;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.translate {
  background-color: #2d6a2d;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.translate.clicked {
  transform: scale(0.98);
  background-color: #1e4e1e;
}

.copy-btn {
  background-color: #f3f3f3;
  border: 1px solid #bbb;
  cursor: pointer;
}

body.dark .copy-btn {
  background-color: #333;
  border-color: #666;
}

.output-box {
  background-color: #fafafa;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-height: 50px;
  white-space: pre-wrap;
  color: #000;
  overflow-wrap: break-word;
}

body.dark .output-box {
  background-color: #333;
  border-color: #666;
  color: #eee;
}
