body, input, select {
    font-size: 11px;
    font-family: 'Roboto Mono', monospace;
    color: #999;
    background-color: #333;
    margin: 0;
    padding: 0;
}

a {
    color: #FFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    position: relative;
    height: 120px;
    background-color: #999;
    background-image: url("../images/elk-48320_960_720.png");
    background-repeat: no-repeat;
    background-position: top -40px right 51px;
    padding: 0 15px 10px;
    background-size: 308px;
}

header h1 {
    position: absolute;
    bottom: 10px;
    margin: 0;
    font-family: 'Alice', serif;
    font-weight: normal;
    font-size: 38px;
    color: #333;
}

nav, section {
    margin: 10px 10px;
}

nav {
    /*clear: both;*/
    padding: 0 10px;
}

nav.info {
    float: right;
}

.btnNav.active {
    text-decoration: underline;
}

section {
    border: 1px solid #999;
    padding-bottom: 10px;
    display: none;
    margin-top: 20px;
    min-height: 300px;
}

section h2 {
    color: #333;
    background-color: #999;
    padding: 2px 3px 3px 6px;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

section h3 {
    color: #999;
}

p, section h3, section table, section > div {
    margin: 10px 10px 0;
}

p:last-child {
    margin-bottom: 10px;;
}

table {
    border-spacing: 0;
}

td {
    padding-left: 10px;
}

select, input, textarea {
    border: 1px solid #999;
    background: transparent;
    color: white;
}

option {
    background-color: #EEE;
    color: #333;
}

.name, .path, .value {
    color: white;
}

.dummyContent::after {
    display: block;
    color: #666;
    content:">> nothing to see here <<";
    text-align:center;
    line-height:100px;
}

div.errors {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 2px solid #b93333;
    color: white;
    background-color: #583232;
    display: none;
    clear: left;
}

td.errorsList {
    color: #ff4c4c;
}

.errors span {
    font-weight: bold;
}

.errors a {
    text-decoration: underline;
}

body > .errors {
    margin: 20px 10px;
}

#connectionError #hosted {
    display: none;
}

.tooltip {
    position: absolute;
    display: none;
    padding: 5px;
    margin: 15px 25px;
    border: 1px solid #999;
    background: #333;
    z-index: 99;
}

/* LOADING OVERLAY */

#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.5);
    display: none;
}

#loading p {
    font-family: 'Alice', serif;
    font-size: 4em;
    color: black;
    text-align: center;
    margin-top: 50vh; /* poussé de la moitié de hauteur de viewport */
    transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
}

/* ABOUT SECTION */

#about h2 {
    margin-bottom: 20px;
}

#about h3, #about p {
    width: 400px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

/* BATCH ATTENUATIONS EDITOR */

#batchAttEditor {
    /*overflow: hidden;*/
    min-height: 615px;
}

#displayOptions {
    float: left;
    margin-bottom: 15px;
    min-width: 770px;
}

#editors {
    float: right;
    margin-right: 0;
    max-width: 730px;
}

#attenuationsList {
    position: relative;
    /*overflow: hidden;*/
    top: 60px;
}

#attenuationsList.list {
    top: 0;
    clear: both;
}

.btn_showCurve, .btn_display, .btn_addStep, .btn_removeStep {
    padding: 0 2px;
}
.btn_showCurve[href="#VolumeDryUsage"] {
    background-color: #b93333;
}
.btn_showCurve[href="#VolumeWetGameUsage"] {
    background-color: #b1702e;
}
.btn_showCurve[href="#VolumeWetUserUsage"] {
    background-color: #6d4c2b;
}
.btn_showCurve[href="#LowPassFilterUsage"] {
    background-color: #397292;
}
.btn_showCurve[href="#HighPassFilterUsage"] {
    background-color: #58a8d6;
}
.btn_showCurve[href="#SpreadUsage"] {
    background-color: #8fca00;
}
.btn_showCurve[href="#FocusUsage"] {
    background-color: #5a8000;
}
.btn_display, .btn_addStep, .btn_removeStep {
    background-color: #737373;
}

.attenuationView {
    margin-right: 10px;
    width: 50%;
}

.attenuationView p.metadata {
    margin-top: 0;
}

/* attenuation metadata hidden by default */
.attenuationView .metadata {
    opacity: 0;
}

.attenuationView .metadata span {
    padding: 0 2px;
    background-color: #333;
}

/* always shown on 1st/last attenuation */
.attenuationView.first .metadata,
.attenuationView.last .metadata {
    opacity: 1.0;
}

/* always shown in simple list view */
#attenuationsList.list .attenuationView .metadata {
    opacity: 1.0;
}

/* always shown on hover too */
.attenuationView:hover .metadata {
    opacity: 1.0;
}

.attenuationView svg {
    margin-top: 10px;
    border: 1px solid #999;
    /*width: 50%;*/
    /*height: 235px;*/
    transform: scaleY(-1);
    background: rgba(128,128,128,0.05);
}

.attenuationView svg.uncommitted {
    opacity: 0.3;
}

.attenuationView:hover svg.uncommitted {
    opacity: 1.0;
}

.attenuationView svg polyline, .attenuationView svg path {
    stroke: orange;
    stroke-width: 3px;
    fill: transparent;
}

.attenuationView svg path.VolumeDryUsage {
    stroke: #b93333;
}
.attenuationView svg path.VolumeWetGameUsage {
    stroke: #b1702e;
}
.attenuationView svg path.VolumeWetUserUsage {
    stroke: #6d4c2b;
}
.attenuationView svg path.LowPassFilterUsage {
    stroke: #397292;
}
.attenuationView svg path.HighPassFilterUsage {
    stroke: #58a8d6;
}
.attenuationView svg path.SpreadUsage {
    stroke: #8fca00;
}
.attenuationView svg path.FocusUsage {
    stroke: #5a8000;
}

.attenuationView svg circle {
    stroke: #333;
    fill: #999;
    cursor: pointer;
}

#pointTooltip .value {
    text-align: right;
}

/* settings editors */

#editors > div, #editors > a {
    margin-right: 10px;
}

#interpolationStepsEditor, #interpolationShapesEditor {
    float: right;
    border: 1px solid #999;
    /*display: none;*/
    z-index: 99;
}

.step, .point {
    margin-right: 10px;
    margin-bottom: 2px;
}

.step input, .point select {
    text-align: right;
}

/* settings editors: interpolation steps editor */

.step input {
    border: none;
    margin-right: 5px;
    width: 20px;
}

.step .btn_addStep, .step .btn_removeStep {
    margin-left: 5px;
}

/* settings editors: interpolation shapes editor */

.point select {
    background-repeat: no-repeat;
    background-size: 18px;
    background-position-x: 5px;
    background-position-y: -2px;
}

.point select {
    width: 125px;
}

option {
    background-color: #EEE;
    color: #333;
}

.point select.easeInCubic {
    background-image: url("../images/easing/easeInCubic.svg");
}

.point select.easeInOutCubic {
    background-image: url("../images/easing/easeInOutCubic.svg");
}

.point select.easeInOutQuad {
    background-image: url("../images/easing/easeInOutQuad.svg");
}

.point select.easeInOutQuart {
    background-image: url("../images/easing/easeInOutQuart.svg");
}

.point select.easeInOutQuint {
    background-image: url("../images/easing/easeInOutQuint.svg");
}

.point select.easeInQuad {
    background-image: url("../images/easing/easeInQuad.svg");
}

.point select.easeInQuart {
    background-image: url("../images/easing/easeInQuart.svg");
}

.point select.easeInQuint {
    background-image: url("../images/easing/easeInQuint.svg");
}

.point select.easeOutCubic {
    background-image: url("../images/easing/easeOutCubic.svg");
}

.point select.easeOutQuad {
    background-image: url("../images/easing/easeOutQuad.svg");
}

.point select.easeOutQuart {
    background-image: url("../images/easing/easeOutQuart.svg");
}

.point select.easeOutQuint {
    background-image: url("../images/easing/easeOutQuint.svg");
}

.point select.linear {
    background-image: url("../images/easing/linear.svg");
}

h3#curveType {
    color: white;
}

h3#curveType.VolumeDryUsage {
    background-color: #b93333;
}
h3#curveType.VolumeWetGameUsage {
    background-color: #b1702e;
}
h3#curveType.VolumeWetUserUsage {
    background-color: #6d4c2b;
}
h3#curveType.LowPassFilterUsage {
    background-color: #397292;
}
h3#curveType.HighPassFilterUsage {
    background-color: #58a8d6;
}
h3#curveType.SpreadUsage {
    background-color: #8fca00;
}
h3#curveType.FocusUsage {
    background-color: #5a8000;
}

#btn_commit {
    float: right;
    font-size: 20px;
    padding: 5px 10px;
    background-color: #b93333;
}

#btn_commit.disabled {
    pointer-events: none;
    opacity: 0.5;
}

#btn_commit.enabled {
    pointer-events: auto;
}

#btn_commit.enabled:hover {
    color: #b93333;
    background-color: white;
    text-decoration: none;
}

/* SAMPLER KEYMAPPER */

.sample {
    position: relative;
    clear: both;
    margin-top: 4px;
    margin-bottom: 4px;
    height: 16px;
    background-color: #3e3e3e;
}

.sample .range {
    position: absolute;
    background-color: #666;
    color: white;
    overflow: visible;
}

.sample .range span {
    padding-left: 3px;
}

.sample:hover .range {
    background-color: #cc9951;
}

.pianoKeyboard .key.white.inRange, .pianoKeyboard .key.black.inRange {
    background-color: #ffc066;
}

.pianoKeyboard .key.white.root, .pianoKeyboard .key.black.root {
    background-color: #ffee66;
}


/* NOTES REVIEW */

table.notes td.notes span.todo {
    color: #FFF;
    background-color: #b93333;
}

/* CREATOR */

.creatorSection {
    margin-left: 0;
    float: left;
}

#creator textarea#names {
  min-width: 493px;
  min-height: 200px;
}

/* NESTER */

table.nestedObjects {
    margin-top: 0px;
    margin-bottom: 10px;
}