* {
    margin: 0;
    box-sizing: border-box;
}


/* Typography */

.recorder__stopwatch {
    font-family: 'Avenir Light', 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #000;
}

.recorder__controls--text {
    font-family: "DIN Next Light", "Barlow", sans-serif;
    font-weight: 300;
    font-size: 11px;
    text-align: center;
    color: #000;
}

.recorder__redo--btn {
    font-size: 13px;
}

.text__stop {
    color: #000;
}

.far {
    color: #fff;
}

.square {
    text-align: center;
}

.fa-stack {
    width: 2em !important;
}

.fa-play {
    font-size: 14px;
}

.fa-microphone {
    font-weight: 300;
}

.fa-redo {
    font-size: 20px;
    color: #fff;
}

i {
    vertical-align: middle;
}

.fa-stack {
    font-size: 1rem;
}

.fa-stack-1x {
    font-size: 1.5rem
}


/* recorder */

.recorder {
    display: flex;
    flex-direction: column;
    width: 330px;
    background-color: #fff;
    align-items: center;
}

.recorder__stopwatch {
    height: 40px;
    padding-top: 20px;
}

.recorder__controls {
    display: flex;
    width: 100%;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
}

.recorder__controls>*+* {
    margin-left: 20px;
}

.recorder__controls--record,
.recorder__controls--stop,
.recorder__controls--redo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recorder__controls--save {
    display: none;
}

.btn {
    margin-top: 7px;
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    transition-duration: 0.4s;
}

.btn:hover {
    cursor: pointer;
}

.recorder__controls--record--btn {
    background-color: #ff4040;
    color: #fff;
}

.svg-mic {
    width: 30px;
    fill: #fff;
}

.recorder__controls--stop--btn {
    background-color: #000;
    color: #fff;
}

.recorder__controls--redo--btn {
    background-color: #000;
    display: none;
}

.text__redo {
    display: none;
}

.recorder__controls--save--btn {
    display: flex;
    border: 1px solid black;
    font-size: 30px;
    justify-content: center;
    align-items: center;
}


/* audio player */

.recorder__player {
    height: 60px;
    width: 100%;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.recorder__player--audio {
    width: 95%;
    padding: 0;
    margin: 0;
    height: 20px;
}

.recorder__player--play--btn {
    background-color: transparent;
    border: none;
}

input[type="range"] {
    position: relative;
    -webkit-appearance: none;
    width: 48%;
    margin: 0;
    padding: 0;
    height: 5px;
    float: left;
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    background: linear-gradient(to right, rgba(0, 125, 181, 0.6) var(--buffered-width), rgba(0, 125, 181, 0.2) var(--buffered-width));
}

input[type="range"]::before {
    position: absolute;
    content: "";
    top: 8px;
    left: 0;
    width: var(--seek-before-width);
    height: 3px;
    background-color: #353535;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    position: relative;
    -webkit-appearance: none;
    box-sizing: content-box;
    border: 1px solid #c5c7c6;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    margin: -7px 0 0 0;
}

input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.2);
    background: #353535;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    background: linear-gradient(to right, rgba(0, 125, 181, 0.6) var(--buffered-width), rgba(0, 125, 181, 0.2) var(--buffered-width));
}

input[type="range"]::-moz-range-progress {
    background-color: #353535;
}

input[type="range"]::-moz-focus-outer {
    border: 0;
}

input[type="range"]::-moz-range-thumb {
    box-sizing: content-box;
    border: 1px solid #c5c7c6;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
}

input[type="range"]:active::-moz-range-thumb {
    transform: scale(1.2);
    background: #353535;
}

input[type="range"]::-ms-track {
    width: 100%;
    height: 3px;
    cursor: pointer;
    background: transparent;
    border: solid transparent;
    color: transparent;
}

input[type="range"]::-ms-fill-lower {
    background-color: #007db5;
}

input[type="range"]::-ms-fill-upper {
    background: linear-gradient(to right, rgba(0, 125, 181, 0.6) var(--buffered-width), rgba(0, 125, 181, 0.2) var(--buffered-width));
}

input[type="range"]::-ms-thumb {
    box-sizing: content-box;
    border: 1px solid #007db5;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
}

input[type="range"]:active::-ms-thumb {
    transform: scale(1.2);
    background: #007db5;
}


/* redo button */

.recorder__redo {
    height: 40px;
    margin-top: .25rem;
}

.recorder__redo--btn {
    background-color: transparent;
    border: none;
}


/* copy button */

.the__end {
    width: 330px;
    display: none;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    align-items: center;
    font-size: 12pt; /* Set all text within this box to 12pt */
    padding-top: 50px; /* Double the top padding */
}

.the__end p {
    margin-bottom: 16px; /* Adds space between "Copy and paste..." text and the URL */
}

#audioURL {
    text-align: center;
    color: red;
    font-size: 12pt; /* Set the red URL text to 12pt */
}

.copy__button {
    border: none;
    background-color: transparent;
    text-align: center;
    cursor: pointer;
}

.copy__icon {
    width: 24px;
    height: 24px;
}

.copy__text {
    font-size: 6pt;
    color: black;
}
