* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f2f2f2;
  transition: background-color 0.6s ease;
}

/* Main container */
.container {
  background: white;
  padding: 22px;
  border-radius: 18px;
  width: 760px;
  max-width: 95%;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Title */
h1 {
  text-align: center;
  margin-bottom: 5px;
}

.tagline {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 18px;
}

/* Two-column layout */
.layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 15px;
}

/* Mood box */
.mood-box {
  background: rgba(108,99,255,0.1);
  padding: 15px;
  border-radius: 14px;
  transition: background 0.6s ease;
}

.mood-box h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 16px;
}

/* Mood buttons */
.buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.buttons button {
  padding: 8px 10px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  font-size: 13px;
  background: #6c63ff;
  color: white;
  transition: all 0.25s ease;
}

.buttons button:hover {
  transform: translateY(-2px);
  background: #5548e8;
}

/* Quote box */
.quote-box {
  position: relative;
  background: rgba(0,0,0,0.04);
  padding: 20px;
  border-radius: 14px;
  min-height: 200px;
  transition: background 0.6s ease;
}

#quote {
  font-size: 16px;
  font-style: italic;
  animation: fadeIn 0.4s ease;
}

#author {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Copy icon */
.copy-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 18px;
  cursor: pointer;
  color: #555;
}

.copy-icon:hover {
  color: #000;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 700px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
