



.subtitle {
 
   font-size: 16px;
  font-weight: 300;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.35;
}

/* ========= Text Input Area ========= */
.textarea-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 30px auto;
  background-color: #1a1a1a;
  border: 2px solid #d42027;
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
}

textarea {
  width: 100%;
  height: 60px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: #ffffff;
	font-size: 18px;
  resize: none;
  box-sizing: border-box;
}

textarea:focus,
textarea:focus-visible {
  outline: none;
  box-shadow: none;
}

.textarea-wrapper:focus-within {
  outline: none;
  box-shadow: 0 0 0 2px #d42027;
  border-radius: 8px;
}

textarea::placeholder {
  color: #999999;
}

.word-count-bottom {
  display: block;
  text-align: right;
  margin-top: 8px;
  font-size: 16px;
  color: #999999;
  pointer-events: none;
  transition: color 0.3s ease;
}

/* ========= Buttons ========= */
button {
  background-color: #d42027;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

button:hover {
  background-color: #a5191f;
}

#newScenarioBtn {
  display: block;
  margin: 20px auto;
  background-color: #d42027;
  padding: 8px 20px;
  font-size: 18px;
  border-radius: 8px;
  width: fit-content;
  text-align: center;
}

#newScenarioBtn:hover {
  background-color: #a5191f;
}

.mic {
 font-size: 18px;
}

#copyBtn {
  position: relative;
  float: right;
  margin: 10px 20px 0 0;
  padding: 6px 12px;
  font-size: 18px;
  background-color: transparent;
  border: none;
  color: #999999;
  box-shadow: none;
}

#copyBtn:hover {

}

/* ========= Output Box ========= */
#output {
	

	
	font-size: 18px;
  max-width: 100%;
  width: 100%;
  margin: 30px auto;
  padding: 20px;
/*   background-color: #1a1a1a;*/
  border: 2px solid #d42027;
  border-radius: 8px;
  text-align: left;
  color:#1B1B1B;
  box-sizing: border-box;
  /* everything else as-is */
}

#outputContent {
  min-height: 1.5rem; /* small line height */
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  transition: all 0.3s ease;
}

#output p {
  margin: 0 0 0.4rem 0; /* Top, right, bottom, left */
  margin-bottom: 0.1em;
  padding: 0;
  line-height: 1.4;

	
}


/* ========= Info Box ========= */
.info-box {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 10px;
  margin-top: 40px;
  color: #ffffff;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-top: 2px dotted #444;
}

.info-box h3 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 15px;
}

.info-box p {
   font-size: 16px;
  margin-bottom: 15px;
}

.info-box ul {
  list-style-type: none;
  padding-left: 0;
}

.info-box li {
  margin-bottom: 10px;
    font-size: 16px;
}

.star {
  color: #ff0000;
  margin-right: 5px;
}

.highlight {
  color: #ff3333;
  font-weight: bold;
  margin-top: 20px;
}

/* ========= Animations & Popups ========= */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.word-limit-hit {
  animation: shake 0.3s ease-in-out;
}

  .popup {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 12px 20px;
    border: 2px solid #d42027;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-width: 120%;
    text-align: center;
  }

  /* This class gets toggled ON when we want to show it */
  .popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: block;
  }

.popup::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #ff3333 transparent transparent transparent;
}


.placeholder-text {
  color: #999999;
}

#demoPlayerWrapper {
  transition: box-shadow 0.3s ease;
  border-radius: 10px;
}

/* Glowing effect while playing */
#demoPlayerWrapper.glow {
  box-shadow: 0 0 15px 2px #d42027;
}

.download-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 16px;
  color: #ffffff;
  background-color: #d42027;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #b31820;
}

.download-note {
  font-size: 0.30rem;       /* closer to word count size */
  font-weight: 400;         /* remove bold look */
  color: #999999;
  margin-top: 4px;
  text-align: middle;
  opacity: 0.8;             /* optional: gives it a softer, less dominant feel */
}

.download-note a {
  color: #999999;
  text-decoration: none;
}

.download-note a:hover {
  text-decoration: underline;
}

.icon-small {
  font-size: 16px;
  vertical-align: middle;
}
/* ========= Utility Classes ========= */
.hidden {
  display: none !important;
}

.text-muted {
  color: #999999;
}

.text-white {
  
}

.text-error {
  color: #d42027;
}

.audio-player {
  width: 100%;
  margin-top: 15px;
  display: block;
}

.loading-message {
  color: #999999;
  font-style: italic;
  margin-top: 10px;
}

.error-message {
  color: #d42027;
  margin-top: 10px;
}

.demo-wrapper {
  margin-top: 10px;
}


