:root {
    --hl-color:#FADB3D;
    --color2:  #D1CE6D;
    --color3:  #3796C7;
    --color4:  #C7C22C;
}

body {
    margin: 0;
    text-align: center;
    background-color: #505050;
    font-family: 'PT Sans', sans-serif;
    color: white;
}

/* 
   Module Styles
*/

/* TODO remove this element, just debug */
#new-mod-button {
    position: absolute;
}

.module {
    position: absolute;
    z-index: 9;
    background-color: black;
    border: 4px solid white;
    border-radius: 0px;
    color: white;
    text-align: center;
    cursor: move;
    width: 2.9em;
    height: 2.9em;
}
.module:hover {
    border-color: var(--hl-color);
}

.module-header {
    padding: 10px;
    cursor: move;
    z-index: 10;
    background-color: grey;
    color: #fff;
    border-radius: inherit;
}

.inlet-wrapper {
    position: absolute;
    z-index: 100;
    left: -0.35em;
    width: 20px;
    height: 100%;
    background-color: transparent;
}

.inlet {
    position: relative;
    margin-top: 30%;
    cursor: pointer;
    height: 0.35em;
    width: 0.35em;
    background-color: grey;
    border-radius: 50%;
    border: 3px solid transparent;
}
.inlet:nth-child(1) {
    margin-top: 0px;
/* 
      this makes for better spacing in general, 
      and when there are 3 inlets
*/
}

.inlet:hover {
    border: 3px solid red;
}

.outlet-wrapper {
    position: absolute;
    z-index: 100;
    left: calc(100% - 0.3em);
    width: 20px;
    background-color: transparent;
}

.outlet {
    cursor: pointer;
    margin-top: 30%;
    height: 0.35em;
    width: 0.35em;
    background-color: grey;
    border-radius: 50%;
    z-index: 11;
    border: 3px solid transparent;
}
.outlet:nth-child(1) {
    margin-top: 0px;
/* 
      this makes for better spacing in general, 
      and when there are 3 inlets
*/
}

.outlet:hover {
    border: 3px solid blue;
}

/* remove input/number spinner 
https://css-tricks.com/snippets/css/turn-off-number-input-spinners/

TODO make this work of FF
*/
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

input[type=number] {
    boder: 0;
    outline: 0;
    border-color: transparent;
}
.module input[type=number] {
    color: white;
    background-color: black;
    font-size: 16px;
    font-family: inherit;
    padding-left: 5px;
    padding-right: -5px;
    position: absolute;
    top: 0px;
    left: 0px;
    width: calc( 2.9em - 6px - 5px );
    height: calc( 2.9em - 6px );
}


/* 
   document styling
*/

#module-canvas {
    height: 32em;
}

#patch-cord-canvas {
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1000;
    
}

.patch-cord {
    z-index: 99;
}

.patch-cord:hover {
    stroke: var(--hl-color);
    stroke-width: 8;
    transition: 0.1s;
}

#screen {
    z-index: -1;
    position: absolute;
    top: 1.5em;
    left: 1.5em;

    top: 0px;
    left: 0px;
}

.modal {
    display: none;
    position: fixed; 
    z-index: 10; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

#recording-menu {
    background-color: black;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    height: 50%;
    border: 10px solid white;
    text-align: left;
}

.menu-item {
    margin: 10px;
}
.menu-item:after {
    content: "\a0";
    display: block;
    margin: 10px 0;
    line-height: 1px;
    border-top: 1px dashed #FFF;

}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}



.midi-input {
    color: black !important;
    background: repeating-linear-gradient(
	#ccc,
	#ccc 10px,
	#eee 10px,
	#eee 20px
    );
}
