body {
  background: white;
}

.box {
  position: absolute;
  top: 50%;
  left: 50%;
}

.object {
  display: flex;
  flex: 0 1 100%;
  justify-content: center;
  align-items: center;
  align-content: stretch;
}

.outline {
  display: none;
}

.recording .outline {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 8px solid #b5a4a4;
  animation: pulse 3s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  position: absolute;
}

.button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #50cddd;
  box-shadow: 0px 0px 80px #0084f9;
  position: absolute;
}

.recording .button {
  background: #dd5050;
  box-shadow: 0px 0px 80px #f90000;
}

.mainContainer {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-icon {
  color: #A261F5;
  font-size: 25px;
  cursor: pointer;
}

.searchContainer {
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 22px;
  padding: 12px 22px;
  width: 75%;
}

.searchInput {
  padding-right: 10px;
  border-radius: 0;
  border: 0;
  color: gray;
  width: 100%;
  outline: none;
  font-size: 18px;
  font-weight: 500;
}

@keyframes pulse {
  0% {
    transform: scale(0);
    opacity: 0;
    border: 65px solid #000000;
  }

  50% {
    border: solid #ffffff;
    opacity: 0.8;
  }

  90% {
    transform: scale(3.2);
    opacity: 0.2;
    border: 3px solid #000000;
  }

  100% {
    transform: scale(3.3);
    opacity: 0;
    border: 1px solid #ffffff;
  }
}

#delayed {
  animation-delay: 1.5s;
}

#circlein {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #6bd6e1;
  box-shadow: 0px -2px 15px #e0ff94;
  position: absolute;
}

.recording #circlein {
  background: #e16b6b;
  box-shadow: 0px -2px 15px #e0ff94;
}

.mic-icon {
  height: 60px;
  position: absolute;
  margin: 21px;
}

.captions {
  font: 3.2rem/1.25 Verdana, Geneva, Tahoma, sans-serif;
  /* font-family: ; */
  text-transform: uppercase;
  text-align: center;
  font-weight: 400;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translate(-50%, 0);
}

.captions span {
  display: inline-block;
  line-height: 4rem;
  padding: 1rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
}

/* ============ */

.voice-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.voice-modal {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  text-align: center;
  font-family: "Roboto", sans-serif;
}

.hidden {
  display: none;
}

.voice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voice-header h5 {
  font-size: 22px;
  font-weight: 500;
  margin: 0px;
}

.close-btn {
  font-size: 25px;
  font-weight: 500;
  cursor: pointer;
}

.voice-status-text {
  margin-top: 20px;
  font-weight: bold;
}

.voice-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.voice-footer button {
  background: white !important;
  color: #6c2fbb !important;
  border: 1px solid #6c2fbb !important;
  padding: 9px 15px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
}




.voice-icon {
  color: #A261F5;
  font-size: 22px;
  cursor: pointer;
}

.recording-mic {
  width: 150px;
  height: 150px;
  background-color: rgba(108, 47, 187, 0.1);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto 30px auto;
  position: relative;
  z-index: 1;
}

.recording-mic::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(108, 47, 187, 0.1);
  border-radius: 100%;
  z-index: -1;
  transform: scale(0);
  animation: wave-animation 1.1s infinite;
}

.voice-status-text {
  font-size: 20px;
  color: #ce6060;
  font-weight: 700;
  margin-top: 50px;
}

@keyframes wave-animation {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1.4);
  }

  75% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.recording-mic i {
  font-size: 50px;
  color: #6c2fbb;
}

/* ============ transcription ============ */
.add-box {
  aspect-ratio: 16/9;
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 100%;
  border: 2px solid #6c2fbb;
  border-radius: 16px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  max-height: 220px;
  margin-top: 30px;
}

.add-box h5 {
  color: #6c2fbb;
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}

.transcription {
  font-size: 30px;
  text-align: center;
  color: #7e49c3;
  margin: 0;
}