@import url(https://fonts.googleapis.com/css?family=Roboto:400,400i&subset=latin-ext);
html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	overflow: auto;
}

body {
	background: #ECEFF1;
	color: rgba(0, 0, 0, 0.87);
	font-family: Roboto, Helvetica, Tahoma, sans-serif;
	margin: 0;
	padding: 0;
}

.message {
	background: white;
	width: fit-content;
	min-width: 360px;
	max-width: 100vw;
	box-sizing: border-box;
	overflow-x: auto;
	margin: 100px auto 16px;
	padding: 32px 24px;
	border-radius: 3px;
}

.message h2 {
	color: #ffa100;
	color: var(--theme-color);
	font-weight: bold;
	font-size: 16px;
	margin: 0 0 8px;
}

.message h1 {
	font-size: 22px;
	font-weight: 300;
	color: rgba(0, 0, 0, 0.6);
	margin: 0 0 16px;
}

.message p {
	line-height: 140%;
	margin: 16px 0 24px;
	font-size: 14px;
}

.message button,
button {
	display: inline-block;
	text-align: center;
	background: #039be5;
	text-transform: uppercase;
	text-decoration: none;
	color: white;
	padding: 4px;
	border-radius: 4px;
	text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.125);
	vertical-align: middle;
}

button:focus, input[type=text]:focus, input[type=search]:focus {
    outline: none;
}

button:focus {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.36), 0 1px 2px rgba(0, 0, 0, 0.72) !important;
}

input[type=text]:focus, input[type=search]:focus {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.message,
.message button,
button {
	border: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

button:active {
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.12), 0 0px 1px rgba(0, 0, 0, 0.24);
    transform: translateY(1px);
}

input[type=search] {
	font-size: 20px;
	vertical-align: middle;
	border: 1px solid #ccc;
	border-radius: 10px;
	padding: 4px;
	box-sizing: border-box;
}

/* Start of LGCE */

div.lgcEditor:focus {
  outline: none;
  box-shadow: 0 3px 3px rgba(0,0,0,0.5), 0 0 3px rgba(0,0,0,0.5);
}

div.lgcEditor {
  box-shadow: 0 3px 3px rgba(0,0,0,0.25), 0 0 3px rgba(0,0,0,0.25);
  border-radius: 5px;
  padding: 8px;
  box-sizing: border-box;
  font-family: 'DejaVu Sans Mono', Consolas, monospace;
  white-space: pre;
}

div.lgcEditor div.chords {
  color: red;
  background-color: rgba(255,0,0,0.0625);
}

div.lgcEditor div.chords::selection {
  background-color: red;
  color: white;
}

div.lgcEditor div.achords {
  color: purple;
  background-color: rgba(255,0,255,0.0625);
}

div.lgcEditor div.achords::selection {
  background-color: purple;
  color: white;
}


/* End of LGCE */

div.lgcEditor {
    font-size: 12px;
    overflow-x: auto;
}

.editorPanel { display: none; }

.editor .editorPanel { display: revert; }

.headerButtons li.editorPanel { display: none; }

.editor .headerButtons li.editorPanel { display: inline-block; }

.notAdmin .adminPanel { display: none !important; }

.editButton .on,
.editing .editButton .off { display: none; }
.editing .editButton .on { display: inline; }

.onlyWhenEditing { display: none !important; }

.editing .onlyWhenEditing { display: inline-block !important; }

.editing .hasUnalignedChords + * .unalignedChordWarning {
    opacity: 1;
}

.metaEditor {
    display: none;
}

.editing .metaEditor {
    display: block;
}

.editing .unalignedChordWarning {
    display: block;
}

.unalignedChordWarning {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    margin: 4px auto;
    padding: 4px;
    background-color: #863;
    color: #fff;
    font-size: 10pt;
    width: 320px;
    border-radius: 7px;
    text-shadow: 0 1px black;
}

.unalignedChordWarning dl {
    margin: 0;
    padding: 2px 4px;
}

.unalignedChordWarning dt {
    font-weight: bold;
}

.editing .songText {
    padding: 4px;
}

.editing .songText, .lgcEditor {
    height: calc(32vh - 24px);
    overflow-y: auto;
}

.editorPanel label {
    display: block;
    width: 320px;
}

.editorPanel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changeAllChordsButton i {
    text-shadow: 0 -3px 3px rgba(255,0,0,0.5), 0 3px 3px rgba(255,0,255,0.5);
}

.editorPanel label > span {
    display: inline-block;
    width: 80px;
    text-align: right;
    box-sizing: border-box;
    padding-right: 4px;
}

#load {
	color: rgba(0, 0, 0, 0.4);
	text-align: center;
	font-size: 13px;
}

body.loggedIn #loginMessage {
	display: none;
}

.template {
	display: none;
}

.songText {
	white-space: pre;
	line-height: 1.4em !important;
}

.songText > span {
    position: relative;
    display: block;
}

.songText .anchor {
    position: relative;
    display: inline-block;
    width: 1px;
    height: 1em;
    margin-right: -1px;
    user-select: none;
    vertical-align: top;
}

.editing .anchor:hover {
    box-shadow: 0 0 1px 1px rgba(255,0,255,0.5) inset;
}

.hideChords .songText .text {
    white-space: nowrap;
}

.wrapLines.hideChords .songText .text {
    white-space: normal;
}

.wrapLines .songText .text {
    display: block;
    white-space: pre-wrap;
    text-indent: -10px;
    padding-left: 10px;
}

.wrapLines .editing .songText .text {
    text-indent: 0;
    padding-left: 0;
    white-space: pre;
}

.wrapLines .toggleWrapButton .off,
.toggleWrapButton .on {
    display: inline-block;
}

.wrapLines .toggleWrapButton .on,
.toggleWrapButton .off {
    display: none;
}

button.logInoutButton {
    cursor: pointer;
}

.loggedIn .logInOutButton span {
    margin-right: 4px;
}

.loggedIn .logInOutButton .on {
    display: inline-block;
}

.loggedOut .logInOutButton .off {
    display: inline-block;
}

.logInOutButton .on,
.logInOutButton .off {
    display: none;
}

.floatingChord {
    position: absolute;
}

.chord, .alignedChord, .floatingChord {
	color: red;
	display: block;
	user-select: none;
}

.editing .chord {
    background-color: rgba(255, 0, 0, 0.125);
}

.editing .floatingChord {
    background-color: rgba(255, 0, 255, 0.125);
    outline: 1px solid rgba(255, 0, 255, 0.125);
    color: #f0f;
}

.alignedChord {
    visibility: hidden;
}

.chord .whitespace {
	background-color: transparent;
	text-decoration: line-through;
	text-decoration-color: #ccc;
	text-decoration-style: dotted;
}

.whitespace {
	background-color: #eee;
}

.hideChords .whitespace {
    background-color: transparent;
}

#logoutButton {
	position: absolute;
	top: 4px;
	right: 4px;
}

.songView {
  position: relative;
}

.songView .publicSongToolbar {
  display: flex;
  position: absolute;
  right: 8px;
  bottom: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0.25;
}

.publicSongToolbar button {
  background: transparent;
  border: none;
  color: #000;
  box-shadow: none;
}

.lockButton .on {
  display: none;
}

.lockButton.locked .on {
  display: inline;
}

.lockButton.locked .off {
  display: none;
}

.songMatchView .songIndex,
.songMatchView .songTitle {
	font-size: 16px;
}

.songMatchView .songTitle,
.songMatchView .songText {
	padding-left: 56px;
}

.songMatchView:active {
    background: rgba(0,0,0,0.011);
}

.songMatchView:focus {
    outline: none;
    background: rgba(0,0,0,0.12);
}

.songMatchView {
    padding: 8px 4px;
    box-shadow: none;
    margin: 8px 0;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    background: transparent !important;
}

.songMatchView .songIndex {
    float: left;
    background: #ffa100;
	background: var(--theme-color);
    color: #fff;
    color: var(--theme-text);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    text-shadow: 0px 1px 1px rgba(0,0,0,0.25);
    box-shadow: 0px 2px 1px rgba(0,0,0,0.125);
}

.songMatchView .songText {
    font-style: italic;
    margin: 0;
    white-space: normal;
}

.songMatchView .songText span + span::before {
    content: ' \2026  ';
    display: inline;
}

.hideChords .chord, .hideChords .alignedChord, .hideChords .floatingChord {
    display: none;
}

.hideChords .editing .chord, .hideChords .editing .alignedChord, .hideChords .editing .floatingChord {
    display: block;
}

.hideChords .toggleChordsButton .off,
.toggleChordsButton .on {
    display: inline;
}

.hideChords .toggleChordsButton .on,
.toggleChordsButton .off {
    display: none;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    line-height: 100vh;
    vertical-align: middle;
    text-align: center;
}

.loading span {
    vertical-align: middle;
    line-height: 120%;
    color: #444;
}

.showLoading .loadAnim, .loading span {
    padding-top: 72px;
    background: url(spinner.svg) no-repeat 50% 0% / auto 64px;
}

.loaded .loading {
    display: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, #ffd080 -100%, #ffa100 100%) #ffa100;
    background: linear-gradient(to bottom, var(--theme-highlight) -100%, var(--theme-color) 100%) var(--theme-color);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
	z-index: 10;
	color: white;
	color: var(--theme-text);
}

header label {
    line-height: 48px;
    font-size: 48px;
    padding: 0 7px;
    text-shadow: 0px 1px 1px rgba(0,0,0,0.5);
}

ol.songToolbar {
    list-style: none;
    padding: 0;
}

ol.songToolbar li button {
    margin: 4px;
}

.headerButtons {
    list-style: none;
    padding: 0 4px 0 0;
    position: absolute;
    top: 0;
    right: 0;
    right: calc(100% - 100vw);
    bottom: 0;
    margin: 0;
}

.headerButtons li, ol.songToolbar li {
    display: inline-block;
    height: 48px;
    line-height: 48px;
}

.headerButtons button {
    background: transparent;
    box-shadow: none;
}

.headerButtons button i.material-icons {
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.collapseButton + input[type=checkbox] { display: none; }

.collapseButton + input[type=checkbox] + * { transform: translateX(-110%); }

.collapseButton + input[type=checkbox]:checked + * { transform: translateX(0); }

ol.menu {
    display: flex;
    transition: transform 0.2s ease-in-out;
    list-style: none;
    margin: 0;
    padding: 0;
    position: fixed;
    left: 0;
    top: 48px;
    max-height: calc(100vh - 48px);
    width: 400px;
    flex-direction: column;
    background: white;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
	color: rgba(0, 0, 0, 0.87);
}

ol.menu li { padding: 4px 0; text-align: center; }

ol.menu .matches { overflow: auto; overflow-x: hidden; }

ol.menu li.matchesContainer {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
    border-radius: 0 0 3px;
}

@media (min-width: 1230px) {
    ol.menu {
        transform: translateX(0) !important;
    }
}

@media (max-width: 600px) {
	body,
	.message {
		margin-top: 0;
		max-width: 100%;
		background: white;
		box-shadow: none;
	}
	body {
		border-top: 48px solid #ffa100;
		border-top-color: var(--theme-color);
	}
}

@media (max-width: 400px) {
    ol.menu { width: 320px }
    input[type=search] { width: 240px; }
}

:root {
    --theme-color: #ffa100;
    --theme-highlight: #ffd080;
    --theme-text: #fff;
}
