.page-topnav {
    line-height: 1.5em;
    text-align: center;

    @media print {
        display: none;
    }

    &::after {
        content: "";
        clear: both;
        display: table;
    }

    a {
        margin: 0 0.1em;
        padding: 0.2em;
        border: 1px solid transparent;
        border-radius: 0.2em;
        color: inherit;
        text-decoration: none;
        font-size: inherit;

        background-color: inherit;

        &.selected {
            border-color: var(--dimmed-color);
        }
    }

    .transpose-display {
        /* Prevent flickering whether exists a transpose value */
        display: inline-block;
        min-width: 2em;
        text-align: right;
    }

    .dropdown {
        position: relative;
        display: inline-block;
        font-family: var(--font-family);
    }

    .dropdown>div {
        visibility: collapse;
        position: absolute;
        z-index: 1;
        background-color: var(--content-background-color);
        border: .1em solid var(--border-color);
        border-radius: .5em;
        padding: .5em;
        font-size: .9em;
        text-align: left;
    }

    .dropdown:hover>div {
        visibility: visible;
    }

    .print-options {
        table {
            width: 15em;
        }

        td {
            vertical-align: top;
        }
    }

    .song-note.tooltip .tooltiptext {
        width: 10em;
        right: 0;
        text-align: left;
        font-size: .9em;

        input {
            margin-top: 1em;
        }
        .note-text {
            white-space: pre-wrap;
        }
    }
}

#song-titles {
    .hide-part-title & {
        display: none;
    }
}

h1 {
    text-align: center;
    margin-bottom: 0;
    font-size: 1.2em;
}

h2 {
    font-size: 1em;
    margin-top: 0;
    text-align: center;
    color: var(--dimmed-color);
    line-height: reset;

    .composers {
        font-size: 0.75em;

        span {
            white-space: nowrap;
        }

        a {
            color: inherit;
            white-space: nowrap;
        }
    }
}

.metronome-setting {
    border: 1px solid var(--border-color);
    border-radius: .2em;
    position: absolute;
    right: 1em;
    margin-top: 1em;
    padding: .2em;
    background-color: var(--content-background-color);

    table {
        display: inline-block;
    }

    input {
        width: 3em;
        text-align: right;
    }
}

.metronome-container {
    color: var(--content-foreground-color);
    font-size: 0.8em;
    display: block;
    text-align: right;
    padding: 0.2em;

    .hide-part-chords & {
        visibility: hidden;
    }

    .transpose-display {
        display: none;

        @media print {
            display: inline;
        }
    }

    @media print {
        padding: 0;
        background-color: inherit !important;
        border: none !important;
        text-align: right;
    }

    .beep-button,
    .play-button {
        width: 2em;
        border: 1px solid var(--dimmed-color);
        text-align: center;
        padding: .2em;

        @media print {
            display: none;
        }
    }

    .bars {
        .bar {
            text-align: center;
            display: inline-block;
            width: 1.5em;
            height: 1.5em;
            background-color: var(--very-dimmed-color);
            border: 1px solid var(--dimmed-color);
            color: var(--dimmed-color);
            border-radius: .5em;

            @media print {
                display: none;
            }

            &[active=true] {
                background-color: var(--content-foreground-color);
                color: var(--content-background-color);
                border-color: var(--content-background-color);
            }
        }
    }
}

.lyrics-chords-container {
    display: block;
    column-count: 4;
    column-gap: 1em;
    column-rule: 1pt solid var(--border-color);
    column-width: 12em;

    .hide-part-lyrics & {
        column-count: 1;
    }
}

lyrics {
    .lyrics-block {
        break-inside: avoid;
    }

    .lyrics-verse {
        margin-bottom: 0.8em;
    }

    .verse-type {
        font-size: .66em;
    }

    p {
        text-indent: -1em;
        margin: 0 0 0 1em;
    }

    .hide-part-lyrics & {
        display: none;
    }
}

#chords {
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;

    .hide-part-chords & {
        display: none;
    }
}

a.next-song {
    display: block;
    text-align: center;
    color: inherit;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }

    .hide-part-chords & {
        display: none;
    }
}

#song-note,
.footnote {
    margin-top: 1em;
    text-align: center;
    font-size: 0.8em;
}

#song-note {
    .hide-part-note & {
        display: none;
    }

    font-style: italic;
    border: 1px solid var(--border-color);
    border-radius: .5em;
    padding: .5em;
}

.footnote {
    display: none;

    @media print {
        display: block;
    }
}

.recordings {
    margin-top: 1em;

    @media print {
        display: none;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    iframe,
    .external img {
        border: 1px solid var(--dimmed-color);
        width: 300px;
        height: 168px;
    }

    .external {
        img {
            [theme="dark"] & {
                opacity: 0.5;
            }
        }

        .recording-play {
            position: absolute;
            font-size: 168px;
            width: 302px;
            height: 170px;
            margin-left: -302px;
            text-align: center;
            vertical-align: middle;
            background-color: var(--dimmed-color);
            opacity: .3;
        }

        &:hover .recording-play {
            color: var(--strong-emphasis-color);
        }
    }
}

#sheet-container {
    max-width: 40em;
    margin: 0 auto;

    .hide-part-sheets & {
        display: none;
    }
}

.abcjs-highlight {
    fill: var(--strong-emphasis-color);
}

.abcjs-cursor {
    stroke: var(--strong-emphasis-color);
}

.abcjs-inline-audio {
    background-color: var(--navigation-background);
}

@media print {
    .abcjs-inline-audio {
        visibility: collapse;
    }
}

sheet text tspan {
    font-family: var(--font-family);
}

/* Begin prevent CLS */
div.main-container {
    display: none;
}
body {
    font-size: 16pt;
}
/* End prevent CLS */
