body {
  background-color: #181818; /* Lighten background for warmth & contrast */
  color: #f5f5f5;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px;
  min-height: 100vh;
  margin: 0;
  text-align: center;
}

.flame {
  width: 60px;
  height: 60px;
  background: url('../images/candle.gif') no-repeat center center / cover;
  margin-bottom: 20px;
}

.card {
  font-size: 1.25em;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background-color: rgba(255,255,255,0.08);
  border-radius: 8px;
  text-align: center;
  margin: 2rem auto;
  width: 90%;
  max-width: 600px;
  box-sizing: border-box;
}

/* Output block refinements */
#output {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
  padding: 20px;
}

/* Shareable link style */
.share-link {
  color: #ff914d; /* warm flame orange */
  text-decoration: none;
  font-weight: bold;
  word-break: break-all;
  cursor: pointer;
}

.share-link:hover {
  text-decoration: underline;
}

/* Copy message feedback */
.copy-message {
  font-style: italic;
  color: #cccccc;
  margin-left: 8px;
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #f5f5f5;
  color: #121212;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.copy-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.copy-button {
  background-color: #f5f5f5;
  border: none;
  padding: 6px 12px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

input, textarea {
  font-size: 16px;
}

textarea {
  resize: vertical;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.card-placeholder {
  display: block;
  max-width: 300px;
  height: auto;
  margin: 1rem auto;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255,255,255,0.1);
}

#cardBox:has(img.card-placeholder) {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}