body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: #f0f0f0;
  color: #333;
}

.container {
  text-align: center;
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  margin: 20px;
  animation: fadeIn 1s ease-in-out;
}

h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #007BFF;
  font-family: 'Courier New', Courier, monospace;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

h2 {
  font-size: 28px;
  margin-top: 30px;
  color: #0056b3;
  font-family: 'Courier New', Courier, monospace;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.content {
  margin-top: 20px;
  animation: slideIn 1s ease-in-out;
}

#output {
  font-size: 22px;
  margin-bottom: 20px;
  color: #444;
  font-style: italic;
}

.btn {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 12px 24px;
  margin: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 5px 3px rgba(0, 123, 255, 0.5);
}

.history, .favorites {
  text-align: left;
  margin-top: 30px;
  animation: slideIn 1s ease-in-out;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 12px;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

li:hover {
  background-color: #e0e0e0;
}

.heart {
  color: #ccc;
  cursor: pointer;
  font-size: 20px;
  transition: color 0.3s ease;
  margin-left: 10px;
}

.heart:hover {
  color: red;
}

.heart.favorited {
  color: red;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
