* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Merriweather', serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  transition: background 0.8s ease;
}

.bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  z-index: 0;
  transition: background 0.8s ease;
}

.card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 50px 48px 40px;
  max-width: 640px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: all 0.5s ease;
}

.quote-icon {
  font-size: 2.5rem;
  color: #e03131;
  margin-bottom: 20px;
}

.quote-text {
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
  color: #222;
  line-height: 1.8;
  min-height: 80px;
  transition: opacity 0.4s;
}

.quote-author {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e03131;
  text-align: right;
  margin-top: 20px;
  transition: opacity 0.4s;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: #1a1a2e;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.social a:hover { background: #e03131; transform: translateY(-2px); }

#new-quote {
  padding: 12px 28px;
  background: #e03131;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#new-quote:hover { background: #c0392b; transform: translateY(-2px); }
