body {
    color: white;
    font-family: 'Iosevka Web';
}
body {
    --animation-time: 100ms;
    --next-chord-vertical-offset: 250px;
}

.container {
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, 0);
    max-width: 800px;
    background-image: url("../images/mueble.webp");
    background-repeat: repeat;
    background-position: top;
}

.btn-primary {
    background-color: #42b39d;
}
.center {
    text-align: center;
}
.top-space {
    height: 60px;
}
.invisible {
    visibility: hidden;
}
.none {
    display: none;
}
.controls {
    position: absolute;
    bottom: 0;
    margin-bottom: 1em;
    left: 15px;
    right: 15px;
}
.btn.transport {
    padding: 1em;
    margin-bottom: 8px;
    width: 100%;
}
.chords {
    width: 100%;
}

/* ----------------------- */
.chords .chord {
    display: grid;
}
.chords .chord .degree {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}
.chords .chord .name {
    display: none;
}
.chords .chord .triad {
    display: none;
}
.chords.show-name .chord {
    column-gap: 36px;
}
.chords.show-name .chord .degree {
    grid-column: 1 / span 1;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
}
.chords.show-name .chord .name {
    display: block;
    grid-column: 2 / span 1;
    grid-row: 1 / span 2;
    justify-self: start;
    align-self: center;
}
.chords.show-name.show-triad .chord .name {
    grid-row: 1 / span 1;
}
.chords.show-name.show-triad .chord .triad {
    display: block;
    grid-column: 2 / span 1;
    grid-row: 2 / span 2;
    justify-self: start;
}

@media (max-width: 500px) {
    .chords.show-name .chord .degree {
        grid-column: 1 / span 1;
        grid-row: 1 / span 1;
        justify-self: end;
        align-self: center;
    }
    .chords.show-name .chord .name {
        display: block;
        grid-column: 2 / span 1;
        grid-row: 1 / span 1;
        justify-self: start;
        align-self: center;
    }
    .chords.show-name.show-triad .chord .triad {
        display: block;
        grid-column: 1 / span 2;
        grid-row: 2 / span 1;
        justify-self: center;
    }

}

/* ----------------------- */

.chords .chord {
    font-size: 120px;
    width: 100%;
    text-wrap: none;
}
@media (max-width: 360px), (max-height: 600px) {
    .chords .chord {
        font-size: 80px;
    }
}
.chords .chord .name, .chords .chord .triad {
    font-size: 48px;
    padding-left: 20px;
}
.chords .current-chord {
    transition: transform var(--animation-time);
    transform: translate(-50%, 50px) scale(1);
    position: fixed;
    top: 0;
    left: 50%;
}
.chords .current-chord .name, .chords .current-chord .triad {
    transition: opacity var(--animation-time);
    opacity: 1;
}
.chords.hide-next .current-chord.reset .name, .chords.hide-next .current-chord.reset .triad {
    transition: none;
    opacity: 0;
}
.chords .current-chord.reset {
    transition: none;
    transform: translate(-50%, var(--next-chord-vertical-offset)) scale(0.5);
}
.chords .next-chord {
    transition: transform var(--animation-time);
    transform: translate(-50%, var(--next-chord-vertical-offset)) scale(0.5);
    position: fixed;
    top: 0;
    left: 50%;
}
.chords .next-chord.reset {
    transition: none;
    transform: translate(-50%, var(--next-chord-vertical-offset)) scale(0);
}
.chords.hide-next .next-chord .name, .chords.hide-next .next-chord .triad {
    visibility: hidden;
}
.chords .fade-chord {
    transition: transform var(--animation-time), opacity var(--animation-time);
    transform: translate(-50%, 0px) scale(0);
    opacity: 0;
    position: fixed;
    top: 0;
    left: 50%;
}
.chords .fade-chord.reset {
    transition: none;
    transform: translate(-50%, 50px) scale(1);
    opacity: 1;
}

.hidden {
    display: none;
}

#register-modal {
    display: none;
    z-index: 1000;
    position: absolute;
    max-width: 800px;
    top: 50%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    border: solid black 1px;
    border-radius: 4px;
    padding: 1em;
}
#registration-key.error {
    background-color: red;
}
#register-done {
    float: right;
}
.edit-custom-sequences, #register-btn {
    cursor: pointer;
}

#modal-backdrop {
    position: absolute;
    z-index: 999;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

.edit-custom-sequences {
    display: hidden;
}

#edit-custom-sequences-modal {
    display: none;
    z-index: 1000;
    position: absolute;
    max-width: 800px;
    top: 50%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    border: solid black 1px;
    border-radius: 4px;
    padding: 1em;
}

#edit-custom-sequences-modal .scrollable {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#custom-sequences {
    flex-grow: 100;
    overflow: scroll;
    border: solid black 1px;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px;
    white-space: pre-wrap;
}
#edit-custom-sequences-done {
    float: right;
}

.bouncy-ball {
    text-align: center;
    white-space: nowrap;
    width: 100%;
    font-size: 48px;
    margin-left: -24px;
}
.bouncy-ball .scroller {
    position: relative;
    left: 50%;
    transition: left var(--animation-time);
}
.bouncy-ball .chord {
    padding-right: 1em;
}
.bouncy-ball .chord.bounce {
    color: #ffc107;
}

