body {
    font-family: Tahoma, serif;
    padding: 0 10%;
    box-sizing: border-box;
}

h1 {
    margin-bottom: .5em;
}

.container {
    position: relative;
    width: 100%;
    height: 5em;
    background-color: orange;
    overflow: hidden;
    font-size: 2em;
    border-radius: .5em;
    margin-bottom: .75em;
}

.pointer {
    position: absolute;
    width: 3px;
    height: 100%;
    left: 50%;
    background-color: red;
}

.chords {
    display: flex;
    margin-left: 50%;
    position: absolute;
}

.chord {
    width: 7em;
    height: 3em;
    border: 1px solid darkorange;
}

.chord-name {
    display: flex;
    padding: .25em;
}

.strumming {
    display: flex;
    width: calc(100% - .5em);
    padding: 0 .25em;
}

.strum {
    font-size: .33em;
    flex-basis: 25%;
}

.index {
    list-style-type: none;
    margin: 0;
    padding: .25em 0;
    display: flex;
    border-bottom: 1px solid red;
}

.index li {
    flex: 3;
    font-size: .5em;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.index li.active {
    color: red;
    font-weight: bold;
    text-decoration: underline;
}

.index li:hover {
    color: cornflowerblue;
    cursor: pointer;
}

.progress-bar {
    background-color: cornflowerblue;
    width: 100%;
    height: .75em;
    position: absolute;
    bottom: 0;
    border-radius: 0 0 .5em .5em;
}

.progress-bar .progress {
    background-color: #0c3483;
    width: 0;
    border-radius: 0 0 0 .5em;
    height: 100%;
    pointer-events: none;
}

.position {
    position: absolute;
    bottom: .2em;
    text-align: center;
    width: 100%;
    font-size: .5em;
    color: wheat;
    pointer-events: none;
}

input[type='range'] {
    position: absolute;
    width: 1px;
    left: -5px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.rangeslider {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    position: relative;
    height: 1em;
    font-size: .5em;
    margin: 0 2em;
    display: block;
    border-radius: 1em;
    background-color: #efefef;
    border: 1px solid #bcbcbc;
}

.rangeslider-handle {
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
    display: inline-block;
    position: absolute;
    text-align: center;
    top: -1em;
    margin-left: -2em;
    user-select: none;
    line-height: 3em;
    min-width: 3em;
    width: 3em;
    height: 3em;
    z-index: 3;
    box-shadow: 0 0 8px rgba(0, 0, 0, .3);
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwLjAiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC4xIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g) #fff;
}

.rangeslider-fill {
    top: 0;
    height: 1em;
    background: #0f0;
    position: absolute;
    display: block;
    border-radius: 1em;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1em;
    width: 100%;
    margin-bottom: .75em;
    position: relative;
    z-index: 1;
}

.auto-fill-searcher {
    width: 20em;
    height: 2em;
    position: relative;
}

.auto-fill-searcher > input.search {
    width: calc(100% - 1em);
    height: 100%;
    padding-left: 1em;
    border: 1px solid;
    text-transform: lowercase;
}

.auto-fill-searcher > .chevron {
    position: absolute;
    top: 0;
    right: .5em;
    line-height: 2em;
    text-align: center;
    cursor: pointer;
    user-select: none;
    color: #999;
}

.auto-fill-searcher > .chevron > i {
    font-style: normal;
}

.auto-fill-searcher > .results {
    position: absolute;
    left: 0;
    width: inherit;
    max-height: 15em;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    border: 1px solid;
    background-color: #ffffff;
}

.auto-fill-searcher .item {
    position: relative;
    display: inline-block;
    top: 0;
    left: 0;
    padding: 0 .5em;
    width: calc(100% - 1em);
    border: none;
    line-height: 1.5em;
    cursor: pointer;
    white-space: nowrap;
}

.item:hover {
    background: #39f;
}

input {
    margin: 0;
    border: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
    white-space: normal;
    background: none;
    line-height: 1;
}

input:focus {
    outline: 0;
}

input,
textarea {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

input {
    border-radius: 0;
    -webkit-appearance: none;
}

input[type="search"] {
    -webkit-appearance: none;
}

.notes {
    margin-top: 2em;
}

#chord-tooltip {
    display: none;
    position: fixed;
    z-index: 100;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: .3em;
    padding: .3em;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    pointer-events: auto;
}

.chord-diagram {
    display: block;
}

#video-links {
    margin-top: .75em;
}

#video-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .4em;
    margin-bottom: .5em;
}

#video-player {
    margin-bottom: .5em;
}

#video-player iframe {
    display: block;
    max-width: 100%;
    border: none;
}

.video-link {
    font-size: .8em;
    padding: .2em .5em;
    border: 1px solid #aaa;
    border-radius: .25em;
    background: none;
    cursor: pointer;
    color: #333;
}

.video-link:hover {
    background: #eef;
    border-color: cornflowerblue;
}

.video-link.active {
    background: cornflowerblue;
    border-color: #336;
    color: #fff;
}

.offset-display {
    display: inline-block;
    min-width: 3em;
    text-align: center;
    font-size: .85em;
    vertical-align: middle;
}
