@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

* {
    box-sizing: border-box;
}

.waveform {
    position: relative;
    padding: 4rem 0;
}

.waveform__canvas {
    width: 100%;
    height: 40rem;
}

.toolbar {
    text-align: center;
}

.button-rec {
    transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
    position: relative;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    /* margin: 0 1rem; */
    padding: 0;
    background: #ffffff;
    border-radius: 50%;
    border: none;
    outline: none;
    color: rgba(0, 0, 0, 0.5);
    font-size: 2.5rem;
    cursor: pointer;
}

.button--record::before {
    animation: spin 4s linear infinite;
    transition: opacity 0.4s ease-in-out;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2rem;
    height: 2rem;
    /* margin: -0.4rem; */
    /* padding: -0.4rem; */
    background: transparent;
    opacity: 0;
    border-radius: 50%;
    border: 0.2rem solid rgba(255, 255, 255, 0.8);
    border-top-color: rgba(46, 116, 143, 0);
}

.button--record.button--active {
    background: #ED6A5F;
    color: #ffffff;
}

.button--record.button--active::before {
    opacity: 1;
}

.button--play {
    width: 2.5rem;
    height: 2.55rem;
    font-size: 2rem;
    vertical-align: inherit;
}

.button--play.button--active {
    background: #49F1D5;
    color: #ffffff;
}

.button--disabled {
    opacity: 0.2;
    pointer-events: none;
    cursor: not-allowed;
}

.audio {
    width: 0;
    height: 0;
    opacity: 0;
    visibility: 0;
}

.message {
    transition: opacity 0.4s ease-in-out;
    padding: 1rem 2rem;
    background: #ED6A5F;
    opacity: 0;
    font-size: 1.6rem;
    font-family: Helvetica, Arial, sans-serif;
    color: #ffffff;
    line-height: 1.5;
}

.message--visible {
    opacity: 1;
}

.button--record i {
    font-size: 1rem;
    position: absolute;
    left: 33%;
    top: 25%;
}

.recorder {
    padding-top: 5px;
    padding-left: 15px;
}