* {
  font-size: 15px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

body {
  width: 80%;
  margin: 5px auto;
}
h3 {
  text-align: center;
  font-size: 17px;
  margin-top: 0;
  margin-bottom: 0;
}
button {
  border: none;
  background: none;
  padding: 0;
}

button:hover,
a:hover {
  cursor: pointer;
  opacity: 0.6;
}

img {
  width: 100%;
}

.nav {
  text-align: right;
  display: flex;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

#languangeSelect {
  margin: 1rem 0;
  padding: 3px;
}

.content {
  border-radius: 5px;
  padding: 1rem;
  box-shadow: 0 1px 4px 0 rgb(0 0 0 / 37%);
}

.top {
  text-align: right;
}

#close {
  width: 2.1rem;
  display: none;
  position: absolute;
  right: -5px;
  top: -10px;
}

.transcript {
  min-height: 10rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.transcript textarea {
  width: 97%;
  min-height: inherit;
  border: none;
  resize: none;
  outline: none;
  line-height: 1.6;
}

.main-controls {
  display: flex;
  justify-content: space-between;
}
.main-controls-left {
  display: flex;
}
.main-controls-left button {
  margin-right: 0.5rem;
}

.audio {
  height: 1.8rem;
  margin-right: 1rem;
}

#start {
  width: 2rem;
}

#copy,
#voice {
  width: 1.75rem;
}

#copy,
#voice {
  display: none;
}

#voice:disabled {
  cursor: initial;
  opacity: 0.6;
}

#stop {
  position: relative;
  display: none;
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid;
  border-radius: 20px;
  transform: scale(1);
}
#stop::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  top: 6px;
  left: 5px;
  background: currentColor;
}

.download {
  margin-top: 1rem;
  text-align: right;
}

#script,
#audio {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  opacity: 1;
  transition: opacity 0.5s;
}

#script {
  background-color: #00bcd4;
}

#audio {
  background-color: #03a9f4;
}

.animated {
  animation-delay: 1s;
  animation: 1600ms pulsate infinite alternate ease-in-out;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
