#looper-container {
    display: none;
}

#looper-container.open {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    /*border: 4px solid var(--background-accent-2-color);*/
    /*color: #09af09;*/
}

#rec-time, #ms-rec-time {
    font-weight: bold;
    font-size: 23px;
    display: none;
}

#post-recording-controls {
    display: none;
    column-gap: 25px;
    row-gap: 13px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
#file-name-container{
    display: none;
}
#file-name-container span{
    font-weight: 500;
    margin-right: 15px;
}
#file-name {
    border: 1px solid var(--background-accent-5-color);
    padding: 5px 10px;
    border-radius: 30px;
    background-color: var(--background-accent-4-color);
}

#wait-on-beats {
    font-weight: bold;
}


#rec-btn, #play-btn {
    width: 90px;
    height: 90px;
    cursor: pointer;
    /*border: 2px solid transparent;*/
    border-radius: 99px;

    transition: transform 0.3s ease; /* Add transition for smooth movement */
}

#rec-btn:not(.disabled):hover, #play-btn:hover {
    /*border: 2px solid #4CAF50;*/
    /*background-color: rgba(76, 175, 80, 0.5);*/
    transform: translateY(-3px);
}

#rec-btn.rec-start {
    padding: 5px;
}

#rec-btn.rec-stop.disabled {
    filter: brightness(0) saturate(100%) invert(68%) sepia(0%) saturate(760%) hue-rotate(241deg) brightness(92%) contrast(84%);
    cursor: not-allowed;
}

#rec-btn.rec-stop {
    /*padding: 10px;*/
    width: 80px;
    height: 80px;
    filter: brightness(0) saturate(100%) invert(15%) sepia(92%) saturate(3774%) hue-rotate(354deg) brightness(85%) contrast(119%);
}

#play-btn {
    width: 50px;
    height: 50px;
    display: none;
}

button:disabled {
    background: var(--background-accent-1-color);
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.countdown {
    text-align: center;
    font-size: 1.5rem;
    margin: 1rem 0;
    display: none;
}

#waveform {
    display: none;
    height: 120px;
    width: 100%;
    background: var(--background-accent-1-color);
    border-radius: 8px;
}

.wavesurfer-marker {
    width: 1px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 1;
}

#tempo {
    font-size: 40px;
}

#tempo, #beats-per-bar {
    text-align: center;
}

#beats-per-bar {
    font-size: 30px;
}

.bpm, .bpb-label {
    font-size: 12px;
    text-align: center;
}

#tempo-controls, #beats-per-bar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row;
    flex-wrap: wrap;
}

#tempo-controls button, #beats-per-bar-controls button {
    padding: 6px;
    border: none;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    margin: 5px;
    background-color: #2a4949;
    background-color: #1e4f4f;
    background: var(--background-accent-5-color);
    color: #e9e9e9;
    cursor: pointer;
}

#tempo-container, #beats-per-bar-container {
    margin: 0 15px;
    user-select: none;
    cursor: pointer;
}

#tempo-indicator-container {
    display: none;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tempo-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--background-accent-5-color);
    background-color: var(--background-accent-3-color);
    transition: background-color 0.1s ease;
}

.tempo-dot.active {
    background-color: var(--subdued-text-color);
}

.tempo-dot-first.active {
    background-color: #09af09;
}

#save-success-message {
    color: #09af09;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}


/*If screen smaller as 641px*/
@media (max-width: 641px) {
    #looper-container {
        /*padding: 30px 5px;*/
    }
}
