html,
body {
  margin: 0;
  padding: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  transform: scale(1);
  transform-origin: top left;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.voice-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
}

#widgetContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}

.voice-mic {
  position: relative;
  width: 80px;
  height: 80px;
  background: #4bff7e;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  border: none;
}

.voice-mic * {
  pointer-events: none;
}

@media (hover: hover) {
  .voice-mic:hover {
    background: #0DF24D;
  }
  .voice-mic:active {
    background: #0BD544;
  }
}

.voice-mic::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
}

.voice-mic.recording::before {
  opacity: 1;
}

#voiceRecording {
  opacity: 0;
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  will-change: transform;
  transition: opacity 0.15s ease-out;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(75, 255, 126, 0) 80%,
    #4bff7e 90%
  );
  filter: blur(1px);
}

.voice-mic.recording {
  background: #0BD544;
}

.voice-mic.recording #voiceRecording {
  opacity: 0.4;
}

.voice-mic img {
  width: 48px;
  height: 48px;
  display: block;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  pointer-events: none;
}

.voice-mic.recording #micIcon {
  filter: brightness(0) invert(1);
}
