body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background-color: #1a1a1a;
  color: #e0e0e0;
  position: relative;
  min-height: 100vh;
}

h1,
h2 {
  color: #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#introduction {
  margin-bottom: 20px;
}

button {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #45a049;
}

#jokeOutput {
  margin: 20px 0;
  font-size: 18px;
  font-weight: bold;
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#stats {
  margin-top: 20px;
  font-style: italic;
  color: #b0b0b0;
}

#favorites {
  margin-top: 40px;
  text-align: left;
}

#favoritesList {
  list-style-type: none;
  padding: 0;
}

#favoritesList li {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #2a2a2a;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#addFavoriteButton {
  background-color: #3498db;
}

#addFavoriteButton:hover {
  background-color: #2980b9;
}

.remove-favorite-button {
  background-color: #e74c3c; /* Red background */
  color: white;
  border: none;
  padding: 0 5px; /* Reduced padding */
  margin-left: 8px;
  cursor: pointer;
  border-radius: 50%; /* Circular shape */
  transition: background-color 0.3s;
  font-size: 14px; /* Increased font size for visibility */
  content: "X"; /* Display 'X' */
  display: inline-block;
  line-height: 20px; /* Center 'X' vertically */
  width: 20px; /* Fixed width */
  height: 20px; /* Fixed height */
  text-align: center; /* Center 'X' horizontally */
}

.remove-favorite-button:hover {
  background-color: #c0392b;
}
