* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #020617);
  display: flex;
  justify-content: center;
  align-items: center;
}

.tts-container {
  width: 90%;
  max-width: 600px;
  background: white;
  padding: 35px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

h1 {
  margin-bottom: 10px;
}

p {
  color: #64748b;
  margin-bottom: 20px;
}

textarea {
  width: 100%;
  height: 160px;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid #cbd5f5;
  font-size: 1rem;
  resize: none;
}

.controls {
  margin: 15px 0;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  margin-bottom: 15px;
}

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

label {
  flex: 1;
  font-size: 0.85rem;
  color: #475569;
}

input[type="range"] {
  width: 100%;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

button {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

button:hover {
  transform: translateY(-2px);
}

.status {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #16a34a;
}

/* Mobile */
@media (max-width: 500px) {
  .sliders {
    flex-direction: column;
  }
}
#recordBtn {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

#recordBtn.listening {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.homebtn {
    display:0;
    min-height: 40px;
  /* text-underline-position:none; */
  background: hwb(62 0% 0% / 0.804);
  color: black !important;
  /* margin-left: 1000px; */
  text-decoration: none;
  /* margin-right: -20000px; */
  /* margin-bottom: 100px; */
 
   /* bottom: 100%;  */
   text-align:50px;
  padding: 6px 14px;
  border-radius: 5px; 
  /* display: flex; */
  /* justify-content: flex-start; */
  
  /* place-self: center; */
  
  /* flex: end; */
   position: fixed;
    top: 20px;
    left: 30px;
    /* z-index: 9999; */

}
.homebtn:hover {
  background:#00f2ff;
  font-weight:bold;
}

@media (max-width: 600px) {
   .homebtn {
    /* gap: 10px; */
    /* background-position: 0px 0px; */
    display: center;
    width: 70px;   
    position: fixed;
    top: 10px;
    left: 20px;
    margin-left: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
  }
}
