/* General styles */
.speakeasy-settings input[type=range] {
  appearance: none;
  width: 100%;
  border-radius: 6px;
  height: 12px;
  border: 2px solid var(--color--gray-60);
  background-color: gainsboro;
}

.speakeasy-button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #0074bd;
  border: none;
  border-radius: 4px;
  color: var(--color--red);
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-items: center;
}

.speakeasy-button:hover {
  background-color: #005a94;
  text-decoration: underline;
}

.speakeasy-button:active {
  background-color: green;
}


.speakeasy-button:focus,
.speakeasy-link:focus {
  background-color: #005a94;
  outline: 2px dashed var(--color--red);
  outline-offset: 2px;
}

.speakeasy-voice-select {
  margin: 5px;
  padding: 5px;
  height: auto;
}

.speakeasy-link {
  color: var(--color--red);
  text-decoration: underline;
  cursor: pointer;
}

.speakeasy-link.speaking {
  color: var(--color--red);
  text-decoration: none;
  font-weight: bold;
}

/* Media Player Style */
.speakeasy-media-player {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.speakeasy-media-player .speakeasy-button {
  margin-right: 10px;
  padding: 10px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.speakeasy-media-player .speakeasy-button svg {
  fill: var(--color--red);
  width: 24px;
  height: 24px;
  transition: fill 0.3s ease;
}

.speakeasy-media-player .speakeasy-button:hover svg,
.speakeasy-media-player .speakeasy-button:focus svg {
  fill: var(--color--red);
}

.speakeasy-media-player .speakeasy-button:focus {
  outline: 2px solid var(--color--red);
}

.speakeasy-settings {
  justify-content: flex-end;
}
.speakeasy-settings > div {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: space-evenly;
  margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
  #speakeasy-settings-toggle,
  .speakeasy-settings {
    display: none;
  }

  .speakeasy-media-player {
    flex-direction: column;
    align-items: flex-start;
  }

  .speakeasy-media-player .speakeasy-button {
    margin: 0 10px;
  }
}
