body {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}
body.dark-mode {
  background: linear-gradient(135deg, #2c3e50, #1abc9c);
  color: #e0e0e0;
}
#game-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  box-sizing: border-box;
}
body.dark-mode #game-container {
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}
.error-container h1 {
  color: #f44336;
}
body.dark-mode .error-container h1 {
  color: #ff6b6b;
}
h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}
body.dark-mode h1 {
  color: #e0e0e0;
}
h2 {
  font-size: 22px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
}
body.dark-mode h2 {
  color: #e0e0e0;
}
h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}
body.dark-mode h3 {
  color: #e0e0e0;
}
p {
  font-size: 16px;
  margin: 10px 0;
  line-height: 1.5;
}
small {
  font-size: 12px;
  color: #666;
  display: block;
  margin-top: 10px;
}
body.dark-mode small {
  color: #bbb;
}
ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  text-align: left;
}
ul li {
  font-size: 16px;
  margin: 5px 0;
  padding-left: 20px;
  position: relative;
}
ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ff6b6b;
}
body.dark-mode ul li:before {
  color: #1abc9c;
}
.no-bullets {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.no-bullets li {
  padding-left: 0;
  margin: 5px 0;
}
.no-bullets li:before {
  content: none;
}
.contact-methods {
  margin-top: 20px;
  font-size: 16px;
}
.contact-methods p {
  margin: 10px 0;
}
.contact-questions {
  text-align: left;
  margin-top: 20px;
  font-size: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
th, td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}
th {
  background: #f0f0f0;
  font-weight: 600;
  color: #333;
}
body.dark-mode th {
  background: #555;
  color: #e0e0e0;
  border-color: #666;
}
td {
  background: #fff;
  color: #333;
}
body.dark-mode td {
  background: #444;
  color: #e0e0e0;
  border-color: #666;
}
#clear-leaderboard {
  background-color: #dc3545;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s;
  width: 100%;
  max-width: 200px;
  margin-top: 20px;
}
#clear-leaderboard:hover {
  transform: scale(1.05);
}
.ads-section {
  margin: 20px 0;
  max-width: 500px;
  width: 90%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
body.dark-mode .ads-section {
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}
.ads-app {
  font-size: 14px;
  color: #333;
  text-align: left;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #f9f9f9;
}
body.dark-mode .ads-app {
  color: #e0e0e0;
  border-color: #666;
  background: #444;
}
.adNotice span {
  display: block;
  margin: 5px 0;
}
.adNotice a {
  color: #007bff;
  text-decoration: none;
}
.adNotice a:hover {
  text-decoration: underline;
}
body.dark-mode .adNotice a {
  color: #1abc9c;
}
.timer-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
#mute-button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
}
#mute-button.muted {
  text-decoration: line-through;
}
.input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 15px 0;
}
#guess-input {
  font-size: 18px;
  padding: 10px;
  width: calc(100% - 24px);
  max-width: 200px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
body.dark-mode #guess-input {
  background: #444;
  color: #e0e0e0;
  border-color: #666;
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
#guess-button, #hint-button, .back-button {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s;
  width: 100%;
  max-width: 200px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
}
#hint-button {
  background-color: #007bff;
}
#guess-button:hover, #hint-button:hover, .back-button:hover {
  transform: scale(1.05);
}
#result {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 0;
  padding: 10px;
  min-height: 40px;
  border-radius: 5px;
}
#result.correct {
  animation: pop 0.3s ease;
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}
#result.incorrect {
  animation: shake 0.3s ease;
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
#history {
  margin: 20px 0;
  font-size: 16px;
}
#alphabet-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#alphabet-list li {
  margin: 5px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}
body.dark-mode #alphabet-list li {
  border-color: #666;
}
#alphabet-list li.highlighted {
  background-color: #f0f0f0;
  font-weight: bold;
}
body.dark-mode #alphabet-list li.highlighted {
  background-color: #555;
}
#score-display {
  font-size: 18px;
  font-weight: bold;
  margin: 20px 0;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
body.dark-mode #score-display {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.info-icon {
  font-size: 14px;
  cursor: pointer;
  color: #666;
}
body.dark-mode .info-icon {
  color: #bbb;
}
#score-display .info-icon:hover::after {
  content: attr(title);
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 10;
  width: 200px;
  text-align: left;
  transform: translateY(30px);
}
#timer {
  font-size: 18px;
  font-weight: bold;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
body.dark-mode #timer {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
footer {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #333;
}
body.dark-mode footer {
  color: #e0e0e0;
}
#menuToggle {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  margin-bottom: 10px;
}
.menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.menu a, .menu button {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}
.menu a:hover, .menu button:hover {
  background-color: rgba(0, 0, 0, 0.5);
}
#dark-mode-toggle {
  background: none;
  font-size: 18px;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}
.modal-content {
  background: rgba(255, 255, 255, 0.9);
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  position: relative;
}
body.dark-mode .modal-content {
  background: rgba(0, 0, 0, 0.8);
  color: #e0e0e0;
}
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
body.dark-mode .close {
  color: #e0e0e0;
}
#achievements-list {
  list-style: none;
  padding: 0;
}
#achievements-list li {
  margin: 10px 0;
  font-size: 16px;
}
@media (max-width: 600px) {
  #game-container {
      padding: 20px;
  }
  h1 {
      font-size: 24px;
      margin-bottom: 20px;
  }
  h2 {
      font-size: 20px;
  }
  h3 {
      font-size: 16px;
  }
  p, ul li {
      font-size: 14px;
  }
  .contact-methods {
      font-size: 14px;
  }
  .contact-questions {
      font-size: 14px;
  }
  table {
      font-size: 12px;
  }
  th, td {
      padding: 8px;
  }
  #clear-leaderboard {
      font-size: 14px;
      padding: 8px;
  }
  .ads-app {
      font-size: 12px;
      padding: 8px;
  }
  #guess-input, #guess-button, #hint-button, .back-button {
      font-size: 14px;
      padding: 8px;
  }
  #alphabet-list li {
      padding: 6px;
      margin: 4px;
  }
  #menuToggle {
      display: block;
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 10;
  }
  .menu {
      display: none;
      position: fixed;
      top: 50px;
      right: 20px;
      flex-direction: column;
      align-items: flex-end;
      gap: 10px;
      background-color: rgba(0, 0, 0, 0.8);
      padding: 10px;
      border-radius: 5px;
      transition: opacity 0.3s ease, transform 0.3s ease;
      opacity: 0;
      transform: translateY(-10px);
  }
  .menu.active {
      display: flex;
      opacity: 1;
      transform: translateY(0);
  }
  .menu a, .menu button {
      font-size: 16px;
      padding: 10px;
      width: 150px;
      text-align: center;
  }
}