body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

#language {
  font-size: 1.1rem;
  padding: 0.5rem;
  width: 100%;
  max-width: 400px;
  margin-bottom: 1rem;
}

#record-btn {
  background-color: green;
  color: white;
  font-size: 1.25rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#record-btn.recording {
  background-color: red;
}

#status {
    margin-top: 0.5rem;
    font-style: italic;
}

/* output boxes */
.box {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  min-height: 4rem;
  max-width: 600px;
  width: 100%;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
}

/* on phones, let them take most of the width and bump up font-size */
@media (max-width: 600px) {
  .box {
    width: 90vw;         /* almost full viewport width */
    font-size: 1.15rem;  /* slightly larger text */
    min-height: 6rem;    /* taller for better readability */
  }
}