/* General styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  color: #333;
  margin: 0;
  padding: 20px;
  text-align: center;
}

h1 {
  color: #4CAF50;
  font-size: 2rem;
}

#game {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
  margin-top: 20px;
  width: 90%;
  max-width: 500px;
}

#output {
  margin-top: 20px;
  font-size: 1.2em;
}

hr {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 20px 0;
}

#word {
  font-size: 1.2em;
}

.correct {
  color: green;
}

.wrong {
  color: red;
}

input[type="text"] {
  padding: 10px;
  font-size: 1em;
  width: 80%;
  margin-top: 10px;
  max-width: 300px;
}

button {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  width: 80%;
  max-width: 300px;
}

button:hover {
  background-color: #45a049;
}

.diff {
  font-family: monospace;
  background: #f8f8f8;
  padding: 5px;
  border-radius: 3px;
}

.diff span.correct {
  color: green;
}

.diff span.incorrect {
  color: red;
  text-decoration: underline;
}

/* Feedback button */
#feedback-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #6c757d; /* Neutral gray color */
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#feedback-button:hover {
  background-color: #5a6268; /* Slightly darker gray on hover */
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  position: relative;
  text-align: center;
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.close:hover {
  color: #ff5722;
}

.github-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.github-link:hover {
  background-color: #45a049;
}

/* Mobile-specific styles */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  #game {
    padding: 15px;
  }

  input[type="text"], button {
    width: 90%;
  }

  #feedback-button {
    bottom: 10px;
    right: 10px;
    font-size: 0.9em;
    padding: 8px 16px;
  }
}

#leo-button-container {
  margin-top: 20px;
}

.leo-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.leo-button:hover {
  background-color: #0056b3;
}