body {
  background-color: #1e1e1e;
  color: #f1f1f1;
  font-family: monospace;
  display: flex;
  justify-content: center;
  padding: 25px;
  margin: 0;
  font-size: 125%;
}

.container {
  width: 100%;
  max-width: 1000px;
  padding: 12px;
  box-sizing: border-box;
}

h1 {
  font-size: 2.25em;
  text-align: center;
  margin-bottom: 25px;
}

textarea {
  width: 100%;
  height: 250px;
  background-color: #2e2e2e;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 20px;
  resize: vertical;
  box-sizing: border-box;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

button {
  padding: 12px 25px;
  background-color: #ff5252;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  flex: 1;
  min-width: 150px;
  font-size: 16px;
}

#resetBtn {
  background-color: #555;
}

#loading {
  margin-top: 19px;
  color: yellow;
  font-size: 18px;
}

#output {
  margin-top: 25px;
  white-space: pre-wrap;
  background-color: #111;
  padding: 12px;
  border-left: 4px solid #ff5252;
  min-height: 125px;
  font-size: 16px;
}

.tipjar {
  margin-top: 37px;
  text-align: center;
  font-size: 16px;
}

.tipjar-btn {
  background: linear-gradient(135deg, #ff9800, #ff5252);
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tipjar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
  filter: brightness(1.05);
}

.tipjar-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  filter: brightness(0.95);
}

.tipjar-note {
  margin-top: 12px;
  color: #ccc;
  font-size: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* Hide loading and output elements by default */
#loading {
  display: none;
}

#output {
  display: none;
}

/* Show elements when they have content or are active */
#loading.show {
  display: block;
}

#output.show {
  display: block;
}

.subtext {
  font-size: 1.25em;
  text-align: center;
  margin-bottom: 12px;
  color: #ccc;
}

.whats-this {
  display: block;
  text-align: center;
  margin-bottom: 12px;
  color: #ffcc00;
  cursor: pointer;
  text-decoration: underline;
  font-size: 1.125em;
}

#infoBox {
  background-color: #2e2e2e;
  padding: 19px;
  border-left: 5px solid #ff5252;
  margin-bottom: 19px;
  font-size: 16px;
}

.hidden {
  display: none;
}
