
/*** general ***/
html, body {
	background-color: #2a2e33;
	color: white;
	font-family: verdana, arial, sans-serif;
	font-size: 12px;
	
}
body,
body * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
        font-family: verdana, arial, sans-serif;
}

h1, h2, h3 {
    margin: 20px 0 10px 0;
}
ul {
    margin: 0 30px;
    padding-top: 10px;
}

a {
    color: white;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

a.button,
input.button {
    min-width: 120px;
    height: 30px;
    font-size: 14px;
    background-color: #465b75;
    color: white;
    border: 0;
    cursor: pointer;
    padding: 0px 8px;
}

a.button.no_bg,
input.button.no_bg {
    background-color: transparent;
}
a.button {
    display: inline-block;
    text-align: center;
    line-height: 30px;
}

a.button img {
  vertical-align: middle;
  margin-bottom: 3px;
  margin-right: 5px;
}
.file_content .button {
    margin-right: 5px;
}

/*** header ***/
header {
    height: 50px;
    background-color: #465b75;
    padding: 4px;
}
header a {
    display: inline-block;
    font-size: 14px;
    margin: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: white;
}
header a.right {
    float: right;
}
/***************/
header h1 {
    margin: 6px;
    display: inline-block;
}

/*** content ***/
div#content {
	min-height:300px;
        padding: 4px;
        
}
div#content p.red {
    color: red;
}
/***************/
form.table {
    padding: 20px;
}
form.table label {
    display: block;
    width: 200px;
    height: 32px;
    vertical-align: middle;
}
form.table label span {
    display: inline-block;
    width: 80px;
}
form.table label input {
    width: 120px;
    height: 20px;
    font-size: 14px;
}
input.button {
    width: 120px;
    height: 30px;
    font-size: 14px;
    background-color: #465b75;
    color: white;
    border: 0;
    cursor: pointer;
}
/***************/
table.table {
    background-color: #465b75;
    margin: 10px;
}
table.table th {
    background-color: black;
    text-align: left;
}
table.table th,
table.table td {
    padding: 2px 10px;
}
/***************/
div.song {
    padding: 2px;
}
div.song a {
    color: #eee;
}
div.song a.title {
    display: inline-block;
    min-width: 350px;
    padding: 6px 10px;
    vertical-align: middle;
}
div.song a.title .name {
    font-size: 14px;    
    color: white;
}
div.song a.title:hover .name {
    text-decoration: underline;
}
div.song a.title .interpret {
    font-size: 9px;    
}
div.song a.url,
div.song span.url { 
    display: inline-block;
    min-width: 26px; 
    padding-right: 4px;
    padding-left: 4px;
    margin-right: 16px;
    vertical-align: middle;   
}

div.song span.creator {
    margin-left: 20px;
}
div.song span.creator img {
    vertical-align: middle;
    margin-bottom: 5px;
}

div.song span.date {
    margin-left: 20px;
}

div.song span.votes {
    margin-left: 20px;
    color: yellow;
}

a.url img {
    width: 24px;
    opacity: 0.6;
}
a.url:hover img {
    opacity: 1;
}
/***************/
span.votebox {
    vertical-align: middle;   
    display: inline-block;
}
span.votebox span.average {
    margin-right: 10px;
}
span.votebox span.average img {
    width: 42px;
    vertical-align: middle;
}
span.votebox span.options a img {
    width: 36px;
    opacity: 0.4;
}
span.votebox:hover span.options a:hover img,
span.votebox span.options a.selected img {
    opacity: 1;
    box-shadow: 0 0 5px black;
    border-radius: 18px;
}

/***************/
div.file_tabs {
    height: 30px;
    border-bottom: 1px solid silver;
    margin-top: 20px; 
}
div.file_tabs .tab {
    display: inline-block;
    padding: 4px 12px;
    margin-left: 4px;
    background-color: #465b75;
    border-radius: 8px 8px 0 0;
    border: 1px solid silver;
    font-size: 16px;    
    height: 30px;
}
div.file_tabs .tab.selected {
    border-bottom-color:  #2a2e33;
    background-color: #2a2e33;
}
div.file_tabs .tab input {
    width: 140px;
    height: 24px;
    padding: 0 4px;
    border: 1px solid #465b75;
    font-size: 16px;
}
div.file_content {
    padding: 12px;
    border-bottom: 1px solid silver; 
}
div.file_content pre {
    
}
.monospace,
.monospace * {
    font-family: "Lucida Console", Monaco, monospace;
}
div.file_content textarea {
    width: 100%;
    min-height: 200px;
}

/*** debuglog ***/
#debuglog {
    background-color: black;
    color: silver;
    font-size: 11px;
    padding: 6px;
}

#debuglog p.error {
	color: red;
}
#debuglog p.warning {
	color: yellow;
}

.uservotes {
    display: inline-block;
    margin-right: 20px; 
}

.uservotes div {
    display: inline-block;
    width: 24px;
    height: 24px;
}
.uservotes.header div {
    height: 95px;
}
.uservotes.header div span {
    display: inline-block;
    transform: rotate(-90deg);
    height: 92px;
    width: 100px;
}
.uservotes div img {
    width: 24px;
    height: 24px;
}
#file_screen {
    border: 2px solid #465b75;
}
#file_screen #flexbox {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
}
#file_screen #flexbox pre {
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    /*border: 1px solid white;
    border-width: 0px 0px 1px 0px;*/
    margin: 6px 1px;
    padding: 2px;
}
#file_screen #flexbox pre {
    background-color: #23262b;
}

#file_screen .monospace a {
    color: inherit;
}

div.chord {
    width: 350px;
    height: 450px;
    background-color: white;
    background-image: url("../img/chords/chord_table.png");
    background-repeat: no-repeat;
    color: black;
    border-radius: 25px;
}
div.chord div.name {
    font-size: 34px;
    line-height: 70px;
    text-align: center;
    padding: 4px;
    font-weight: bold;
    margin-bottom: 16px; 
}
div.chord .row {
    height: 40px;
    margin: 24px 0px 30px 5px;    
}
div.chord .row .string_pos {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    box-sizing: border-box;
}
div.chord .row .string_pos.clean {
    border: 4px solid #1f1fff;
    border-radius: 20px;
}
div.chord .row .string_pos.no {
    background-image: url("../img/chords/no_string.png");
}
div.chord .row .string_pos.finger {
    position: relative;
    z-index: 2;
    border: 4px solid #1f1fff;
    border-radius: 20px;
    background-color: #3535ff;
    color: white;
    font-size: 28px;
    line-height: 30px;
    vertical-align: top;
    text-align: center;
    font-weight: bold;
}
div.chord .row .string_pos.same_finger {
    position: relative;
}
div.chord .row .string_pos.same_finger::before {
    background-color: #3535ff;
    width: 80px;
    height: 30px;
    position: absolute;
    left: -20px;
    top: 5px;
    content: " ";
}
div.chord .row .string_pos.finger.same_finger::before {
    z-index: -1;
    top: 1px;
    /*background-color: red;*/
    width: 28px;
    left: 26px;
}

#chord_overlay {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    top: 0;
    background: rgba(0,0,0,0.5);
    height: 100%;
    padding: 100px 20px 20px 20px;
}
#chord_overlay > div {
    margin: 2px;
}

#chords {
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
}
#chords .chord {
    margin: 5px;
}
div.chord div.start_fret {
    position: relative;
    height: 0;
}
div.chord div.start_fret i {
    position: absolute;
    right: 18px;
    top: 60px;
    color: #a20;
    font-size: 36px;
    line-height: 30px;
    font-weight: bold;
}

