.audio-record-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    position: relative;
}

.recorded-audio-player {
    display: none;
    border: 1px solid gray;
    border-radius: 40px;
    line-height: 0;
    position: relative;
    width: 100%;
    min-width: 300px;
}

.recorded-audio-player audio {
    height: 45px;
    width: 100%;
}

.recorded-audio-player-close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    line-height: 1;
    background-color: white;
    padding: 0px;
    border: 1px solid red;
    border-radius: 50%;
    font-size: 18px;
    color: red;
    font-weight: bold;
}

.recorded-audio-player-close-button:hover {
    background-color: white;
    border-color: red;
    border-width: 2px;
    color: red;
}

.do-audio-record-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: darkslateblue;
    overflow: hidden;
    width: 40px;
    height: 40px;
    padding: 0px;
}

.do-audio-record-button:hover, .do-audio-record-button:focus {
    background-color: rgb(83, 71, 163);
}

.do-audio-record-button:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.do-audio-record-button.recording {
    animation: pulse 1s infinite;
}

.do-audio-record-button.processing {
    background-color: lightgray;
    border: none;
}

.do-audio-record-button i {
    z-index: 20;
}

.audio-record-button-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.4);
    transition: width 1s linear;
    z-index: 10;
}

.stop-audio-record-button {
    display: none;
    font-size: 12px;
    margin-top: 5px;
    padding: 5px;
    background-color: white;
    border: 1px solid black;
    color: black;
}

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

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }

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