* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f1f3f5;
  transition: background-color 0.4s ease;
}

.card {
  width: 90%;
  max-width: 480px;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h1 {
  margin-top: 0;
}

.subtitle {
  color: #666;
}

.moods {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.mood {
  font-size: 2.5rem;
  background: none;
  border: 3px solid transparent;
  border-radius: 50%;
  padding: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mood:hover {
  transform: scale(1.2);
}

.mood.selected {
  border-color: #333;
  transform: scale(1.2);
}

#result {
  font-size: 1.2rem;
  font-weight: bold;
}

#history {
  list-style: none;
  padding: 0;
  max-height: 180px;
  overflow-y: auto;
  text-align: left;
}

#history li {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

#clear {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #333;
  color: white;
  cursor: pointer;
}

#clear:hover {
  background: #555;
}
