body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 600px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 50px 0 50px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #11416b;
}

textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

button {
  width: 30%;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.3s ease;
}

#translateButton {
  background-color: #3b89cd;
}

#translateButton:hover {
  background-color: #0a8a1b;
}

#stopButton {
  background-color: #3b89cd;
}

#stopButton:hover {
  background-color: #ce1500;
}

#clearButton {
  background-color: #3b89cd;
}

#clearButton:hover {
  background-color: #a47e00;
}
.home-button {
  background-color: #3b89cd;
  color: #fff;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 30px;
}

.home-button:hover {
  background-color: #11416b;
}

#toggleDisplayButton {
  background-color: #6c757d;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}

#toggleDisplayButton:hover {
  background-color: #5a6268;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.control-group {
  flex: 1;
  text-align: left;
}

.volume-control {
  text-align: center;
  margin-bottom: 20px;
}

label {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

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

span {
  font-size: 14px;
  font-weight: bold;
}

#display {
  font-family: "Courier New", monospace;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  min-height: 50px;
  margin-top: 20px;
  text-align: left;
  white-space: pre-wrap;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: inherit;
  margin-top: 3rem;
  opacity: 0.8;
}