/* page: verses */
body {
	background-color: #263238;
}

main > section {
    position: relative;
	background: #ECEFF1;
	min-height: 100%;
}

main > section > header {
	position: relative;
	padding: 8px 16px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
	margin-bottom: 8px;
}

main > section > header img {
	width: 18px;
	height: 18px;
}

main > section > header + a {
	padding-bottom: 16px;
}

/*section > header, ul.verse-list {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}*/

.controls {
	position: relative;
	min-height: 42px;
	padding: 0 8px 0 20px;
	margin-bottom: 8px;
	white-space: nowrap;
}

.controls > * {
	margin: 0;
}

#selection-actions {
	display: inline-block;
}

.controls > a {
	display: inline-block;
	height: 42px;
	text-decoration: none;
}

.controls img {
	width: 24px;
	height: 24px;
	opacity: 0.54;
}

#sort {
	position: absolute;
	height: 36px;
	right: 16px;
}

#action-labels {
	position: absolute;
	height: 36px;
	right: 16px; /*52px;*/
	top: 0px;
}

#action-print {
	position: absolute;
	height: 36px;
	right: 52px; /*88px;*/
	top: 0px;
}

.checkboxes {
	position: absolute;
	top: 0px;
	right: 0px;
	height: 36px;
}

.checkboxes > label {
	display: inline-block;
	height: 36px;
	margin-right: 8px;
	margin-left: 16px;
}

.number {
	position: absolute;
	top: 0px;
	left: 50%;
	margin-left: -48px;
	width: 96px;
	height: 100%;
	text-align: center;
}

.number > label {
	display: inline;
}

.dropdown {
	display: none;
	position: fixed;	
	white-space: nowrap;
}

#sort-dropdown,
#source-dropdown {
	top: 48px;
	right: 16px;	
}

#publish-dropdown {
	top: 48px;
	left: 42px;	
}
 
.dropdown a {
	display: block;
	height: 48px;
	font-size: 15px;
	padding: 0 16px;
}

.imagedialog {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    white-space: nowrap;
    width: 240px;
    padding: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    background: #ffffff;
    z-index: 14;
}

.imagedialog img {
    cursor: pointer;
}

.imagedialog > .preview {
    display: block;
    max-width: 100%;
    min-height: 120px;
    max-height: 240px; 
}

.imagedialog > input {
    padding: 0;
    margin: 0;
}

.gallery {
    width: 100%;
    overflow-x: auto;
}

.gallery > img {
    height: 64px;
}

.list-scroller {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 56px;
    bottom: 0px;
    padding: 0px 16px;
    overflow-y: auto;
}

.list-scroller > :only-child {
    display: none;
}

#new-verse > .verse.expanded {
    position: absolute;
    margin: 16px 8px 16px 16px;
}

#new-verse > .verse.expanded .passage {
    min-height: 64px;
}


.verse {
	top: 0px;
	left: 0px;
    right: 0px;
	background: #ffffff;
	overflow: auto;
	position: relative;
	overflow: hidden;
	z-index: 0;
	box-shadow: 
		0 1px 3px rgba(0, 0, 0, 0.12), 
		0 1px 2px rgba(0, 0, 0, 0.24);
	transition-property: all;
	transition-duration: 0.2s;
	transition-timing-function: ease;
}

.verse.expanded {
	left: -8px;
    margin-right: -16px;
	margin-top:16px;
	margin-bottom: 16px;
	z-index: 1;
	box-shadow: 
	  	0 10px 20px rgba(0,0,0,0.19), 
	  	0 6px 6px rgba(0,0,0,0.23);
}



/* context menu */

.verse > .context-menu {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	display: none;
	background-color: #fff;
	transition: all 0.4s ease;
}

.verse.editable {
	z-index: 11;
}

.verse.editable > .context-menu {
	z-index: 12;
}


.verse.expanded > .context-menu {
	display: inline-block;
}

.verse.expanded:not(.editable):not(.light) .source {
	display: none;
}

#lookup, #sel-source {
	display: inline-block;
	float: right;
}

#lookup, #sel-source,
.context-menu > a  {
	position: relative;
	width: 48px;
	height: 48px;
}

#lookup:hover, #sel-source:hover,
.context-menu > a:hover {
	background-color: #ECEFF1;
}

.fab > img, #lookup > img, #sel-source > img,
.context-menu > a > img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
} 



/* icon space */

.no-icon > .verse > .icon-space {
	display: none;
}

#selection-actions:before,
.iframedialog > footer:before,
.learn-verse > footer:before,
.number:before,
.middle-elem:before,
.checkboxes > label:before,
.controls > a:before,
.verse > .icon-space:before,
.verse > .actions > a:before {
	/* create a full-height inline block pseudo=element */
	content: ' ';
	display: inline-block;
	vertical-align: middle; /* vertical alignment of the inline element */
	height: 100%;
	margin-right: -0.25em;
}

.verse > .icon-space {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 60px;
	padding-left: 20px;
	height: 60px;
	cursor: pointer;
}

.panel-bar > a.disabled,
.verse > .icon-space.disabled {
	opacity: 0.54;
	cursor: auto;
}

.verse > .icon-space > input[type="checkbox"] ~ label {
	display: none;
}

.verse:not(.editable) > .icon-space > input[type="checkbox"]:checked ~ label,
.verse:not(.editable) > .icon-space:hover > input[type="checkbox"] ~ label,
.verse:not(.editable) > .icon-space.hover > input[type="checkbox"] ~ label {
    display: inline-block;
}

.verse > .icon-space > .indicator {
	height: 20px;
	width: 20px;
	vertical-align: middle;
	border-style: solid;
	border-width: 2px;
	border-radius: 2px;
	display: inline-block;
	color: rgb(255, 255, 255);
	color: rgba(255, 255, 255, 0.7);
	font-size: 10px;
	line-height: 18px;
	text-align: center;
	font-weight: 500;
}

.verse:not(.editable) > .icon-space > input[type="checkbox"]:checked ~ .indicator,
.verse:not(.editable) > .icon-space:hover > input[type="checkbox"] ~ .indicator,
.verse:not(.editable) > .icon-space.hover > input[type="checkbox"] ~ .indicator {
    display: none;
}

.verse > .icon-space > .image {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 36px;
	height: 36px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.verse:not(.editable) > .icon-space > input[type="checkbox"]:checked ~ .image,
.verse:not(.editable) > .icon-space:hover > input[type="checkbox"] ~ .image,
.verse:not(.editable) > .icon-space.hover > input[type="checkbox"] ~ .image {
    top: 30px;
    left: 30px;
    width: 0px;
    height: 0px;
    opacity: 0;
}




/* text space */

[contenteditable=true]:focus { 
	outline: 0px solid transparent; 
}

[contenteditable=true]:empty::after {
  content: attr(placeholder);
  opacity: 0.54;
  display: block; /* For Firefox */
}

.verse > .text-space {
	position: relative;
	margin-left: 60px;
	min-height: 60px;
	padding-bottom: 18px;
}

.no-icon > .verse > .text-space {
	margin-left: 16px;
}

.no-icon .context-menu  {
	display: none;
}

.verse > .text-space > header > * {
	vertical-align: middle;
	margin: 0;
}

.verse > .text-space > header {
	padding: 12px 8px 0 0;
	margin-bottom: 2px;
}

.verse > .text-space img {
	opacity: 0.54;
}

#lookup img {
	opacity: 1.0;
}

.verse > .text-space > footer {
	position: absolute;
	bottom: 0;
	right: 0;
	white-space: nowrap;
	overflow: hidden;
}

.without-labels .labels > span:not(.deck-label) {
	display: none;
}

.verse > .text-space > p {
	margin: 0;
	padding: 0 8px 0 0;
}

.verse .reference,
.verse .topic {
	display: inline-block;
	min-width: 100px;
}

.verse > .text-space > .passage {
	width: 100%;
	line-height: 1.4;
	/* transition */
	max-height: 0px;
	opacity:  0.0;
	overflow: hidden;
	transition: all 0.2s ease;
}

.verse.expanded  > .text-space > .passage {
	padding: 8px 8px 8px 0;
	max-height: 50vh;
	opacity: 1.0;
    overflow-y: auto;
}

.verse h3 {
	font-weight: normal;
	margin: 0;
	display: inline;
}

.verse h3 > a {
	color: #5b62b3; /* indigo flat dark */
	text-decoration: none;
}

.verse .source {
	float: right;
	transition: opacity 0.4s ease;
}


.verse .topic {
	color: #777;
}

.verse footer span {
	background-color: #ECEFF1;
	padding: 1px 8px;
	margin-left: 8px;
	font-weight: 300;
	font-size: 12px;
	color: #777;
	color: rgba(0, 0, 0, 0.54);
}

.verse > .actions {
	position: relative;
	width: 100%;
	height: 0;
	background-color: rgba(153, 153, 153, 0.1);
	transition: all 0.2s ease;
}

.verse.expanded > .actions {
	height: 48px;
}

.verse > .actions > a {
	position: absolute;
	display: inline-block;
	height: 100%;
	text-align: center;
	border-top: 1px solid rgba(153, 153, 153, 0.2);
}

.verse > .actions > a > img {
	display: inline-block;
	height: 24px;
	width: 24px;
}

.verse > .actions > a.save,
.verse > .actions > a.commit {
	left: 0;
	right: 0;
}

.verse > .actions > a.wrong {
	left: 0;
	right: 50%;
}
.verse > .actions > a.correct {
	left: 50%;
	right: 0;	
	border-left: 1px solid rgba(153, 153, 153, 0.2);
}

.verse > .actions > a.save {
	background-color: #ECEFF1  /* blue grey 200 */ 
}

.verse > .actions > a.commit,
.verse > .actions > a.wrong {
	background-color: #6778c8   /* indigo */
}

.verse > .actions > a.correct {
	background-color: #eba118   /* amber */
}

.verse > .actions > a:active::after {
    content: '\A';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(38,50,56,0.1);
}

.verse[data-owner]:not([data-owner=""]) .unlinked {
	display: none;	
}

.verse[data-owner=""] .linked {
	display: none;	
}

.learn-verse {
	position: relative;
	top: 0px;
	display: flex;
	flex-direction: column;
	z-index: 10;
	background: #263238;
	overflow: hidden;
}

.learn-verse > header,
.learn-verse > .pitch,
.learn-verse > footer {
	position: relative;
}

.learn-verse > header {
	height: 56px;
	width: 100%;
	z-index: 11;
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .26);
	color: #FFF;
	padding: 4px 16px;
}

.learn-verse > header[data-color="-1"] {
	background-color: #37474F; /* blue gray 800 */
	border-color: #37474F;	
}

.learn-verse > header > .title {
	margin-bottom: 0;
}

.learn-verse > header > .subtitle {
	margin-top: 0;
}

.learn-verse > header > a {
    position: absolute;
    top: 0px;
    right: 0px;
    height: 56px;
    width: 56px;
}

.learn-verse > header > a > img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pitch {
	flex: 1;
	padding: 0px 16px;
	margin: 0;
	width: 100%;
	overflow-y: auto;
	background-color: #fff;
}

.pitch > p {
	position: relative;
	width: 100%;
	font-size: 18px;
	font-weight: 300;
	line-height: 12px;
}

.pitch > p > span {
	display: inline-block;
	border-bottom: solid 6px rgba(0, 0, 0, 0);
	padding-bottom: 0px;
	vertical-align: top;	
	margin-bottom: 12px;
}

.pitch > p > span.ul {
	border-bottom: solid 6px rgba(103, 120, 200, 0.3);
}

.pitch > p > span.tp {
	color: transparent;
}

.pitch > p > span.fl::first-letter {
	color: #212121;
}

.learn-verse > footer {
	height: 56px;
	width: 100%;
	background-color: #263238; /* blue gray 900 */
	text-align: center;
}

.panel-bar {
	position: absolute;
	top: 50%;
	transform: translate(0%, -50%);
	width: 100%;
	height: 100%;
}

.panel-bar.btn {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: stretch;
}

.panel-bar.pzl {
	white-space: nowrap;
	overflow-x: auto;
}

.panel-bar > a {
	display: inline-block; /* also in lrn.js */
	color: #fff;
	font-size: 15px;
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer */
   	-khtml-user-select: none; /* KHTML browsers (e.g. Konqueror) */
  	-webkit-user-select: none; /* Chrome, Safari, and Opera */
  	-webkit-touch-callout: none; /* Disable Android and iOS callouts*/
}

.panel-bar.btn > a {
	font-weight: 500;
	text-transform: uppercase;
	flex-grow: 1;
}

.panel-bar.pzl > a {
	padding-left: 8px;
	padding-right: 8px;
	margin-left: 1px;
	min-width: 56px;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.1)
}

#output.wrong,
.panel-bar.pzl > a.wrong:active {
	background-color: #6778c8; /* indigo flat */
}

#output.correct,
.panel-bar.pzl > a.correct:active {
	background-color: #eba118; /* amber flat */
}


.panel-bar > a:before {
	/* create a full-height inline block pseudo=element */
	content: ' ';
	display: inline-block;
	vertical-align: middle;
	height: 56px;
}

#typing-bar > a {
	position: absolute;
	min-width: 56px;
}

#hint {
	left: 0;
}

#lines {
	left: 56px;
}

#del {
	right: 0;
}

a#output {
	left: 50%;
	transform: translate(-50%, 0%);
	border-radius: 8px;
	font-size: 22px;
}

#typing-bar > input {
	position: absolute;
	left: -60px;
	bottom: 16px;
	transform: translate(-50%, 0%);
	margin: 0;
	width: 56px;
	height: 16px;
	color: yellow;
	background-color: transparent;
	border:none;
}

#typing-bar > input:focus {
	border:none;
	outline-style: none 
}

.panel-bar.btn > a.flex-small {
	flex: 0.5 0.5 56px;
}

#typing-bar > a:hover:not(.disabled):not(#output),
.panel-bar.btn > a:hover:not(.disabled),
.learn-verse > header > a:hover {
	background-color: rgba(255, 255, 255, 0.1)
}

.panel-bar.pzl > a:hover {
	background-color: rgba(255, 255, 255, 0.2)
}

a {
    -webkit-tap-highlight-color: rgba(103,120,200, 0.4);
}


.panel-bar.btn > a:active:not(.disabled) {
	background-color: rgba(255, 255, 255, 0.2)
}

.panel-bar.btn > a.disabled {
	opacity: 0.54;
	cursor: auto;
}

#hints {
	font-weight: bold;
}

.panel-bar > a > span {
	display: inline-block; /* for proper line breaking */
	padding: 0 4px;
}

/* indeterminate progress line */
.progress-slider{
  position: absolute;
  width: 100%;
  height: 4px;
  overflow-x: hidden;
  z-index: 13;
}

.progress-slider > .line{
  position:absolute;
  opacity: 0.4;
  background:#6778c8;
  width:150%;
  height:4px;
}

.progress-slider > .subline{
  position:absolute;
  background:#6778c8;
  height:4px; 
}
.progress-slider > .inc{
animation: increase 2s infinite;
}
.progress-slider > .dec{
animation: decrease 2s 0.5s infinite;
}

@keyframes increase {
 from { left: -5%; width: 5%; }
 to { left: 130%; width: 100%;}
}
@keyframes decrease {
 from { left: -80%; width: 80%; }
 to { left: 110%; width: 10%;}
}





