.speech-modal .btn {
    border: none;
    padding: 0;
    border-radius: 100%;
    width: 100px;
    height: 100px;
    font-size: 3em;
    color: var(--dark-text-color);
    padding: 0;
    margin: 0;
    background: red;
    position: relative;
    z-index: 999;
    display: inline-block;
    line-height: 100px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
}

.speech-modal .modal-body{
    min-height: 40vh;
}

.speech-modal .microphone i{
    color: #FFFFFF !important;
}

.speech-modal .listening-container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.speech-modal .listening-text {
    font-size: 24px;
    margin-right: 8px;
}

.speech-modal .dot-container {
    display: inline-block;
    position: relative;
    width: 4rem;
    height: 30px;
}

.speech-modal .dot {
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
    position: absolute;
    animation: pulse 1.5s infinite;
    top: 11px;
}

.speech-modal .dot:nth-child(1) {
    left: 0;
    animation-delay: 0s;
}

.speech-modal .dot:nth-child(2) {
    left: 40%;
    animation-delay: 0.5s;
}

.speech-modal .dot:nth-child(3) {
    right: 0;
    animation-delay: 1s;
}

  @keyframes pulse {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.2);
    }

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

.speech-modal .pulse-ring {
    content: '';
    width: 100px;
    height: 100px;
    background-color: var(--opposite-dark-color);;
    border: 5px solid var(--opposite-dark-color);;
    border-radius: 50%;
    position: absolute;
    top: 0px;
    left: 0px;
    animation: pulsate infinite 1.5s;
}

@-webkit-keyframes pulsate {
    0% {
      -webkit-transform: scale(1, 1);
      opacity: 1;
    }

    100% {
      -webkit-transform: scale(1.3, 1.3);
      opacity: 0;
    }
}

.speech-modal .type2 {
    background-color: var(--opposite-dark-color);
}

.speech-modal .type2 .pulse-ring {
    background-color: transparent;
}
