
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #c59655;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}


.listening-button {
  padding: 15px 30px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  text-align: center;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999999999999999;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  animation: fourColorChange 2s infinite;
  color: white;
 
}

@keyframes fourColorChange {
  0% { background-color: #FF0000; }
  25% { background-color: #00FF00; }
  50% { background-color: #0000FF; }
  75% { background-color: #FFD700; }
  100% { background-color: #FF0000; }
}

@keyframes textColorChange {
  0% { color: #FF0000; }
  25% { color: #00FF00; }
  50% { color: #0000FF; }
  75% { color: #FFD700; }
  100% { color: #FF0000; }
}

.listening-button {
  animation: textColorChange 1.5s infinite !important;
}

#audioIconToggle {
  cursor: pointer;
  transition: color 0.3s ease;
}

#audioIconToggle.audio-disabled {
  color: #ff0000;
}

#audioIconToggle.audio-disabled {
  color: #ff0000;
}
