/*
 * Designer Modal & My Patches Modal
 */

 /* Designer modal */
.designer * {
    box-sizing: border-box;
    text-align: left;
}

.designer {
    height: 75%;
    width: 90%;
    overflow-y: auto;
    margin-top: 60px;
    zoom: 0.9;
}


#top-row {
    width: 100%;
    left: 0;
    top: 0;
    position: absolute;
}

#top-row select {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.75);
    background-color: #fff2;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin: 3px;
    font-family: var(--main-font);
    text-align: center;
    white-space: nowrap;
    flex: 1;
    line-height: 25px;
    box-sizing: border-box;
    display: flex;
    position: relative;
    min-width: 110px;
    text-indent: 34%;
    margin-left: 100px;
    height: 30px;
    cursor: pointer;
    max-width: 160px;
}


#top-row select:hover {
    background-color: rgba(255, 255, 255, 0.25);;
}


/*
#top-row select option {
    line-height: 150%;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: normal;
    color: #3C4E60;
    outline: none;
    border: none;
    padding: 5px 20px 5px 10px;
    white-space: nowrap;
    position: relative;
    text-align: left;
}

#top-row option:hover {
    background: rgba(0, 0, 0, 0.15);
}
*/

.instrument-option {
    line-height: 150%;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: normal;
    color: #3C4E60;
    outline: none;
    border: none;
    padding: 5px 20px 5px 10px;
    white-space: nowrap;
    position: relative;
    text-align: left;
}

.instrument-option:hover {
    background: rgba(0, 0, 0, 0.15);
}

#save-cancel-buttons {
    margin-left: auto;
    width: 33%;
}

#save-cancel-buttons * {
    color: white;
    float: right;
    text-align: center;
    font-family: var(--main-font);
    padding: 2px 15px;
    margin: 5px;
    margin-left: 15px;
    min-width: 6em;
}

.designer #save-button {
    background-color: green;
}
.designer #save-button:disabled {
    background-color: grey;
}
.designer #cancel-button {
    background-color: var(--error-color);
}

.designer #save-button:hover {
    opacity: 0.8;
}
.designer #cancel-button:hover {
    opacity: 0.8;
}

.fm-node input {
    margin-right: 20px;
}

.route {
    margin: 20px;
}

.route select {
    margin-right: 20px;
}

.designer-row {
    width: 100%;
    padding-top: 30px;
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    height: 100%;
    align-items: center;
}

#node-params {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 32px;
    height: 397px;
    overflow: auto;
}

#node-params label {
    margin-right: 15px;
    font-size: 15px;
    display: inline-block;
}

#node-params-info-wrapper {
    position: relative;
    width: 100%;
    padding: 10px;
    background-color: #333344;
    min-height: 41.33px;
}

.node-params-info {
    position: relative;
    text-align: center;
    top: 0;
}

.node-params-info>div {
    color: white;
    font-size: medium;
    display: inline;
    margin-right: 10px;
}

.node-params-info .label {
    font-size: smaller;
}



#node-params input {
    display: inline-block;
}

#node-params input[type=range] {
    width: 100%;
}

.node-param input[type=number] {
    width: 30%;
}

#node-params .node-param {
    margin-bottom: 15px;
}

.designer .right-column {
    position: relative;
    min-width: 274px;
    width: 274px;
    background-color: #eee;
}

.designer .button-row {
    display: flex;
}

.designer .button-row button {
    width: 90px;
    height: 30px;
    margin: 8px;
}

#designer {
    background-image: linear-gradient(to bottom right, white, #f1f1f1);
}

.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.modal-dialog {
    background-color: #333;
    flex: 1;
    position: relative;
    user-select: none;
    padding: 30px;
}

.designer .close-button {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
    outline: none;
    border: none;
    background-color: transparent;
    border-radius: 50%;
    font-size: 16px;
    color: white;
}

.designer .close-button:hover {
    background-color: #fff3;
}

.designer .dialog-canvas {
    margin: 50px 20px 0px 20px;
}

.designer .left-column {
    overflow: scroll;
    float: left;
    min-width: 200px;
}

.designer .panel {
    display: inline-block;
    margin-right: 10px;
    /* min-width: 200px; */
    max-height: 480px;
    overflow-x: auto;
    margin-top: 50px;
    flex-grow: 1;
}

/* .panel * {
font-family: sans-serif;
} */

.new-node-button {
    text-align: left;
    background-color: #eee;
    padding-left: 5px;
    height: 75px;
    border-bottom: 1px solid black;
    transition: 0.1s;
    font-size: small;
    cursor: pointer;
}

.new-node-button>.description {
    position: relative;
    top: 0px;
    left: 0px;
    color: #555;
    line-height: initial;
    padding-bottom: 8px;
    font-size: smaller;
}

.new-node-button.source {
    background-color: rgb(219, 219, 253);
}

.new-node-button.modulation {
    background-color: rgb(252, 243, 205);
}

.new-node-button.transformation {
    background-color: rgb(205, 252, 216);
}

.new-node-button:hover {
    background-color: #fff;
    transition: 0.1s;
}

#delete-node-button {
    position: absolute;
    font-size: medium;
    bottom: 0;
    border-radius: 0;
    width: 100%;
    height: 41px;
    right: 0px;
    border: none;
    background-color: var(--error-color);
    color: white;
    font-family: var(--main-font);
    opacity: 0.75;
    display: none;
    text-align: center;
    margin: 0;
}

#delete-node-button:hover {
    opacity: 1.0;
}

#new-node-menu-label {
    font-size: 15px;
    background-color: #333344;
    color: white;
    text-align: center;
    /* padding: 10px; */
    position: sticky;
    /* is this compatible? */
    top: 0;
}

.visualizations {
    position: relative;
    min-width: 700px;
    overflow: hidden;
    text-align: center;
}

#patch-info {
    margin-top: 10px;
    width: 600px;
    color: white;
    font-size: medium;
    font-family: sans-serif;
}

#patch-instrument- {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.75);
    background-color: #fff2;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
    width: 45px;
    height: 28px;
    border-radius: 4px;
    margin: 3px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
    max-width: 175px;
}

#info-control {
    padding: 10px;
    background-color: #333344;
}

/* THESE STYLES ADDED FOR THE FORM AT THE BOTTOM */

.patch-datastore {
    position: relative;
    border-top: 1px solid black;
}

.patch-editor {
    position: absolute;
    width: 45vw;
    top: 15px;
    /*  right: 15px; */
    border: 1px solid black;
    background-color: #efefef;
    padding: 1.5em;
    border-radius: 15px;
    float: left;
}

.patch-editor label {
    display: block;
    font-family: sans-serif;
    margin-top: 1em;
}

.patch-editor input {
    width: 98%;
    height: 2em;
}

.patch-editor textarea {
    width: 98%;
    height: 15em;
}

#user-patches, #public-patches {
    height: 250px;
    overflow: auto;
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

#user-patches>li, #public-patches>li {
    background-color: green;
    height: 50px;
}

#user-patches-wrapper {
    margin: 10px;
    background-color: #efefef;
    width: 45vw;
    float: right;
}

.user-patches-label {
    font-size: medium;
    background-color: #333344;
    color: white;
    padding: 10px;
}

.user-patch-button-content {
    margin: auto;
}

.user-patch-button {
    border-radius: 0px;
    width: 100%;
    border: none;
    border-bottom: 1px solid black;
    text-align: left;
    height: 100%;
    font-size: medium;
    padding: 0px;
    margin: 0px;
}

.user-patch-button:hover {
    background-color: white;
}

.user-patch-id {
    float: left;
    background-color: rgb(190, 216, 229);
    padding: 0px 10px 0px 10px;
    height: 100%;
    width: 10%;
    text-align: center;
    font-size: medium;
    margin-right: 10px;
}

#add-patch {
    width: 100%;
    border-radius: 0px;
    font-size: medium;
    background-color: rgb(206, 251, 217);
}
<<<<<<< HEAD



/* My Patches Modal */
.my-patches {

    width: 70%;
    min-width: 500px;
}

.patch-button {
    min-height: 50px;
    padding-left: 10px;
    display: flex;
    background-color: white;
}

.patch-button:hover {
    background-color: #ddd;
}

.column-label {
    position: sticky;
    display: block;
    position: -webkit-sticky;
    top: 0;
    cursor: default;
}
.column-label:hover {
    background-color: white;
}

#current-patch-wrapper {
    padding: 25px 0 25px 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 0 8px grey;
    border-radius: 10px;
    margin-top: 10px;
}

#current-patch-wrapper #label  {
    float: left;
    display: inline-flex;
    width: 100%;
    font-size: small;
    padding-left: 10px;
    line-height: 1;
}

#current-patch-wrapper #patch-name {
    font-size: 24pt;
}

#bottom-row {
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
}
.patch-column {
    flex: 1;
    max-height: 350px;
    overflow: scroll;
    overflow-x: auto;
    min-width: 325px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 0 8px grey;
}
#patch-name {
    font-size: small;
    text-align: left;
}
#patch-name:hover {
    text-decoration-style: solid black;
}
span.patch-voice-span:hover {
    border-bottom: 2px solid black;
}
.patch-voice-span {
    cursor: default;
}

#patch-actions {
    margin-left: auto;
    order: 2;
    padding-right: 10px;
    min-width: 210px;
    text-align: end;
}

.gadget-icon-name {
    display: flex;
    margin-right: auto;
    width: 33%;
}

#patch-voice.gadget-name {
    background-color: #fff2;
    border: 1px solid #fff6;
    top: 0; 
    margin-top: auto;
    font-family: var(--main-font);
    color: rgba(255, 255, 255, 0.75);
    font-weight: normal;
    border-radius: 4px;
    height: 30px;
    margin-left: 3px;
    min-width: 120px;
}

#patch-voice.gadget-name:hover {
    font-weight: bold;
}

#patch-voice.gadget-name:focus {
    color: rgba(255, 255, 255, 0.75);
    font-weight: bold;
}

.designer .gadget-icon {
    padding: 10px 20px;
}

.designer .gadget-icon.guitar {
    background-color: var(--guitar-color);
    background-image: url('../images/instruments/bass.svg');
}
.designer .gadget-icon.bass {
    background-color: var(--bass-color);
    background-image: url('../images/instruments/bass.svg');
}
.designer .gadget-icon.marimba  {
    background-color: var(--marimba-color);
    background-image: url('../images/instruments/marimba.svg');
}
.designer .gadget-icon.piano  {
    background-color: var(--piano-color);
    background-image: url('../images/instruments/synth.svg');
}
.designer .gadget-icon.drums {
    background-color: var(--drum-color);
    background-image: url('../images/instruments/drumkit.svg');
}

.patch-action-button {}

.patch-action-button.start-from, 
.patch-action-button.clone, 
.patch-action-button.edit {
    padding: 0px 5px;
    margin: 2px;
    background-color: transparent;
    border: 1px solid #888;
    font-family: var(--main-font);
}

.patch-action-button.start-from:hover,
.patch-action-button.clone:hover,
.patch-action-button.edit:hover {
    box-shadow: 0px 0px 8px grey;
    background-color: #ccc;
}

.patch-action-button.clone, 
.patch-action-button.edit,
.patch-action-button.delete {
    width: 56px;
}



.patch-action-button.delete {
    padding: 0px 5px;
    margin: 2px;
    background-color: transparent;
    border: 1px solid var(--error-color);;
    font-family: var(--main-font);
}

.patch-action-button.delete:hover {
    box-shadow: 0px 0px 8px grey;
    background-color: #ccc;
}

#actions-wrapper {
    flex-grow: 1;
    width: 100%;
}

#new-track-btn {
    font-family: var(--main-font);
    background-color: var(--active-color);
    color: white;
    padding: 2px 15px;
    margin: 5px;
    min-width: 6em;
    float: right;
}

#new-track-btn:hover {
    opacity: 0.8;
}

#close-btn {
    font-family: var(--main-font);
    background-color: var(--error-color);
    color: white;
    padding: 2px 15px;
    margin: 5px;
    min-width: 6em;
    float: right;
}

#close-btn:hover {
    opacity: 0.8;
}

/* Break vertical "Add Node" menu to horizontal */

@media (max-width: 1270px) {

    .left-column.panel {
        display: inline-flex;
        flex-direction: column;
        overflow-y: auto;
    }


    #new-node-menu {
        display: inline-flex; 
    }

    .new-node-button {
        padding-top: 10px;
        line-height: initial;
        height: 130px;
        border-bottom: 0px solid black;
        border-right: 1px solid black
    }

    .new-node-button>.description { 
        width: 85px;
        padding: 0;
    }

    .visualizations {
        margin-top: 25px;
    }

    #new-node-menu-label {
        left: 0;
    }

    .designer-row {
        margin-bottom: 20px;
        height: unset;
    }

    .designer {
        height: 92%;
        zoom: 1.0;
        margin-top: 30px;
    }
}

/* Break horizontal "My Patches" menu to vertical */

@media (max-width: 1000px) { 
    .patch-column {
        max-height: 200px;
    }

    .designer {
        margin-top: 30px;
    }
}
