#trans_control {
    text-align: center;
    display: flex;
    justify-content: flex-end;
    column-gap: 10px;
}

.trans_control {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.transposition {
    grid-template-columns: 30px 20px 30px;
    grid-template-rows: 20px auto;
    grid-template-areas:
        "t_label t_label t_label"
        "down number up";
    height: 60px;
    display: grid;
    align-content: space-evenly;
    align-items: center;
    text-align: center;
}

.trans_button {
    font-size: 20px;
    font-weight: bold;
    padding: 2px 8px;
    width: 30px;
}

.trans {
    font-family: Arial, Helvetica, sans-serif;
}

.header,
.header-right {
    gap: 10px;
}

/* chords */

.chord {
    position: relative;
}

.chord_word {
    white-space: pre;
}

.chord .innerchord {
    position: absolute;
    top: -1.4em;
    font-weight: bold;
}

/* text formatting */
.verse,
.chorus {
    line-height: 200%;
    text-align: left;

    break-inside: avoid-column;
    max-width: 480px;
    padding-left: 5px;
    padding-top: 20px;
    margin-bottom: 20px;
}

.chorus {
    border-left: 3px solid var(--text1);
}

.chorus::first-line {
    border-left: none;
}

#song_name,
#author {
    line-height: 100%;
    margin-top: 15px;
    margin-bottom: 10px;
}

#author {
    font-style: italic;
}

#capo {
    text-align: left;
    margin-left: 10%;
}

.song {
    text-align: center;
}

.songtext {
    font-family: Arial;
    display: flex;
    justify-content: center;
    margin-left: 20px;
    padding-right: 30px;
}

.song_container {
    column-width: 500px;
}

@media (min-width: 1600px) {
    .song_container {
        column-count: 3;
    }

    .song_container:not(:has(> :nth-child(7))) {
        column-count: 2;
    }
}

@media (max-width: 1600px) {
    .song_container {
        column-count: 2;
    }
}

/* reduce column count to 1 if the screen is too narrow */
@media (max-width: 1100px) {
    .song_container {
        column-count: 1;
    }
}

/* reduce number of columns to 1 if there are less than 3 verses */
.song_container:not(:has(> :nth-child(3))) {
    column-count: 1;
}

.header-right {
    z-index: 20;
}

.dropdown-menu {
    position: fixed;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 30px;
    overflow: hidden;
    width: 270px;
    height: 70px;
    box-shadow: 0px 0px 0px #999999;
    background-color: var(--background0);
    top: 0;
    right: 0;
    z-index: -1;
    transition: 0.2s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.dropdown-menu .dropdown-content {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    top: 0px;
    transition: 0.2s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.dropdown-menu-open {
    height: 150px;
    box-shadow: 1px 1px 10px #999999;
}

.dropdown-menu-open .dropdown-content {
    top: 80px;
}

.active {
    display: block;
}

#hide {
    position: fixed;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 9;
    background-color: #00000000;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
}

#hide.active {
    display: block;
}

#random_mode {
    width: 80px;
    text-wrap: wrap;
    height: 40px;
    text-align: center;
    border-radius: 4px;
    border: 2px solid var(--text1);
}

#random_selection {
    width: 80px;
    display: flex;
    padding-top: 6px;
    margin-left: 5px;
}

#random_selection img {
    position: absolute;
    top: 0px;
    left: -3px;
    background: #ffffff;
}