.node {
    position: absolute;
    padding: 0px 10px 0px 10px;
    background: rgb(203,203,203);
    border-radius: 10px;
    display: table;
    min-width: 5.5em;
    -webkit-user-select: none;
    user-select: none;
    width: auto;
    border: 3px solid rgb(8,56,78);
    z-index: 1001;
    min-height: 3.5em;
    min-width: 100px;
}
.node form {
    margin-top: 5px;
}
.input-container {
    position: absolute;
    top: 1.5em;
    left: -12px;
    height: auto;
    width: 55%;
    padding-top: 2px;
    padding-bottom: 0px;
    padding-left: 6px;
    margin-bottom: 5px;
    overflow-x: auto;
    padding-left: 4px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    color: rgb(8,56,78);
}
.output-container {
    float: right;
    position: relative;
    right: -18px;
    top: -3px;
    padding-top: 1.5em;
    height: auto;
    margin-left: -10px;
    padding-top: 1px;
    padding-bottom: 3px;
    padding-left: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    color: rgb(8,56,78);
}
.inportContainer {
    padding-top: 24px;
}
.labelAndInputContainer {
    position: absolute;
    left: 48px;
}
.labelAndInputContainer .inport-checkbox {
    position: relative;
    left: 5px;
    top: 1px;
    width: 21px;
    height: 21px;
}
.node .input-button, .node  .output-button {
    display: block;
    background: rgb(255,255,255);
    color: rgb(8,56,78);
    height: 24px;
    width: 60px;
    font-size: 9px;
    margin-bottom: 4px;
}
body .node .inport-button {
    display: block;
    background: rgba(0, 0, 0, 0);
    color: rgb(255, 255, 255);
    height: 0px;
    width: 0px;
    margin-left: 0px;
    font-size: 8px;
    margin-bottom: 0px;
    position: relative;
    top: -2px;
}

.inport-button img {
    width: 30px;
}
.node button, #infoDiv button {
    font-size: 0.75em;
    cursor: pointer;
    color: white;
    border-radius: 10px;
    border: 0;
}
.deviceLabel {
    display: inline-block;
    font-size: 1.25em;
    text-align: center;
    width: 100%;
}
.info-button {
    background: transparent;
    position: absolute;
    width: 17px;
    height: 17px;
    top: 0;
    left: 5px;
}
.delete-button {
    width: 17px;
    height: 17px;
    position: absolute;
    background-color: transparent;
    top: 0;
    right: 5px;
}
.delete-button img, .info-button img {
    width: 20px;
    position: relative;
    left: -7px;
    height: 20px;
    top: -2px;
}
#closeInfoButton {
    border-radius: 10px;
    color: white;
    border: 0;
    position: absolute;
    top: 0.5em;
    right: 0.5em;
}
.delete-button, .info-button {
    margin-top: 3px;
}
html {
    overscroll-behavior: none;
}
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background: rgb(8,56,78)
}
#workspace {
    background-color: rgb(8,56,78);
    position: relative;
    overflow: auto;
    height: 100%;
    width: 100%;
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 4em;
    margin-left: 1em;
}
.delete-button {
    float: right;
    width: 17px;
}
.info-button {
    float: right;
    width: 17px;
}
.aLabelClass {
    color: white;
    font-size: 0.8em;
}
.navbarButton {
    position: fixed;
    width: 7em;
    top: 15px;
    z-index: 1011;
    padding: 3px 20px;
    border-radius: 10px;
    border: 3px solid white;
    background: rgb(8,56,78);
    color: white;
    font-size: 1em;
    cursor: pointer;
    min-height: 20px;
}
.navbarButton:not(.startAudioButton):not(.waxButton):hover, #exampleFiles:hover {
    background: white;
    color: rgb(8,56,78);
}
.mobileMenuToggleButton, .mobileMenuLockButton {
    display: none;
}
body .sliderMin, body .sliderMax, body .rootNote {
    width: 3.5em;
    margin-right: 10px;
}
#mobileMenu {
    color: rgb(8,56,78);
    position: fixed;
    top: 12vh;
    left: 10%;
    width: 80%;
    height: auto;
    z-index: 1010;
}
.mobileMenuButton {
    text-align: center;
    z-index: 1001;
    font-size: 48px;
    padding: 10px 0px;
    cursor: pointer;
}
.mobileMenuButton:nth-child(odd) {
    background: white;
}
.mobileMenuButton:nth-child(even) {
    background: rgb(101,255,229);
}
.mobileMenuButton:first-child {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}
.mobileMenuButton:nth-last-child(1) {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}
#deviceListHeader, #exampleListHeader {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    font-weight: bold;
    padding-left: 10px;
    padding-top: 10px;
    color: rgb(8, 56, 78);
    position: absolute;
    top: 0px;
}

#ui-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 1188px;
    height: 4em;
    background:rgb(8,56,78);
    z-index: 1010;
}

.endpointCircle {
    z-index: 1000;
}

#progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: lightgray;
}

#progress-bar::-webkit-progress-value {
    background-color: rgb(8, 56, 78);
}

#progress-bar::-moz-progress-bar {
    background-color: rgb(8, 56, 78);
}

#progress-container span {
    position: fixed;
    bottom: 2vh;
    width: 80%;
    text-align: center;
    left: 10%;
    color: white;
}

@media screen and (min-width: 600px) and (max-width: 1120px) {
    body .shareStateButton {
        top: calc(14px + 40px);
        left: calc(36px + 8em * 1);
    }
    body .collabButton {
        top: calc(14px + 40px);
        left: calc(36px);
    }
    body .viewAllDevices {
        top: calc(14px + 40px);
        left: calc(36px + 8em * 2);
    }
    body .deviceListModal {
        left: calc(13px + 8em * 2);
        top: calc(14px + 80px);
    }
    body .exampleFilesButton {
        top: calc(14px + 40px);
        left: calc(36px + 8em * 3);
    }
    body #exampleFiles {
        left: calc(-33px + 8em * 3);
        top: calc(14px + 80px);
    }
    body .helpButton {
        top: calc(14px + 40px);
        left: calc(36px + 8em * 4);
    }

    body #ui-background {
        height: 6em;
        width: calc(36px + 10em * 4);
    }
    body #workspace {
        margin-top: 6em;
    }
}
@media screen and (max-width: 600px) {
    body .waxButton {
        position: fixed;
        top: 1.15vh;
        left: 11vw;
        width: 20vw;
        height: 8vh;
        font-size: 7vw;
        border-radius: 4vw;
        padding: 0;
        min-height: 0px;
    }
    
    body .startAudioButton {
        position: fixed;
        top: 1vh;
        left: 32vw;
        width: 20vw;
        height: 8vh;
        font-size: 4vw;
        padding: 0;
        border-radius: 4vw;
        min-height: 0px;
    }
    
    body #ui-container .mobileMenuToggleButton {
        position: fixed;
        top: 1vh;
        left: 54vw;
        width: 20vw;
        height: 8vh;
        display: block;
        background: rgb(8,56,78);
        color: white;
        border: 1vw solid white;
        font-size: 4vw;
        border-radius: 4vw;
        padding: 0;
        min-height: 0px;
    }

    body #ui-container .mobileMenuLockButton {
        position: fixed;
        top: 1vh;
        left: 76vw;
        width: 20vw;
        height: 8vh;
        display: block;
        background: rgb(8,56,78);
        color: white;
        border: 1vw solid white;
        font-size: 4vw;
        border-radius: 4vw;
        padding: 0;
        min-height: 0px;
    }

    body #infoDiv, body .permissionDiv {
        width: 80%;
    }
    body .navbarButton:not(.startAudioButton,.waxButton) {
        display: none;
    }
    #mobileMenu {
        display: none;
    }
    body .deviceListModal {
        top: 12vh;
        padding: 0;
        left: 10%;
        right: 10%;
    }
    body .deviceListModal::before {
        height: 0px;
        background-color: white;
    }
    body #deviceListHeader, body #exampleListHeader {
        display: block;
    }
    .deviceListModalContent {
        border-radius: 10px;
        margin-top: 48px;
    }
    .deviceListItem {
        padding-left: 10px;
    }
    .deviceListItem:nth-child(odd) {
        background: white;
    }
    .deviceListItem:nth-child(even) {
        background: rgb(101,255,229);
    }
    body #exampleFiles {
        left: 10%;
        right: 10%;
        top: 12vh;
        z-index: 1010;
        padding: 0;
    }
    body #exampleFiles a {
        padding-left: 10px;
    }
    body .exampleFilesDiv::before {
        height: 0px;
    }
    body #exampleFiles a:nth-child(odd) {
        background: white;
    }
    body #exampleFiles a:nth-child(even) {
        background: rgb(101,255,229);
    }
    body #exampleFiles a:last-child {
        border-radius: 0px 0px 10px 10px;
    }
    body #exampleFiles a:first-of-type {
        margin-top: 48px;
    }
    body #logo {
        left: 1vw;
        width: 5vh;
        height: 5vh;
        top: 2.5vh;
    }

    body #ui-background {
        height: 10vh;
    }
    body #workspace {
        margin-top: 10vh;
    }
}
@media screen and (min-width: 601px) {
    #mobileMenu {
        display: none !important;
    }
}
.waxButton {
    position: fixed;
    left: -10px;
    top: 9px;
    color: white;
    z-index: 1011;
    font-size: 2em;
    background: none;
    border: 0;
    font-weight: bold;
    cursor: auto;
}
.startAudioButton {
    left: calc(36px + 8em * 1);
    color: white;
    border: 3px solid rgb(255,0,94);
    background: rgb(255,0,94);
}
.lockButton {
    left: calc(36px + 8em * 2);
}
.saveStateButton {
    left: calc(36px + 8em * 3);
}
.reloadStateButton {
    left: calc(36px + 8em * 4);
}
.shareStateButton {
    left: calc(36px + 8em * 5);
}
.collabButton {
    left: calc(36px + 8em * 6);
}
.viewAllDevices {
    left: calc(36px + 8em * 7);
}
.exampleFilesButton {
    left: calc(36px + 8em * 8);
}
.helpButton {
    left: calc(36px + 8em * 9);
}
.exampleFilesDiv::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 3px;
    height: 10px;
    background-color: white;
}
#exampleFiles {
    position: fixed;
    top: calc(14px + 40px);
    left: calc(-32px + 8em * 8);
    z-index: 1010;
    background: white;
    padding: 2em;
    border-radius: 10px;
}
#exampleFiles a, .deviceListModal a {
    color: rgb(8, 56, 78);
    padding: 5px;
    display: block;
}
.deviceListModal {
    position: fixed;
    left: calc(12px + 8em * 7);
    top: calc(14px + 40px);
    border: 1px solid black;
    z-index: 1010;
    display: none;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    max-height: 80vh;
}

.deviceListModalContent {
    overflow: auto;
    max-height: 60vh;
}

.deviceListModal::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    width: 3px;
    height: 11px;
    background-color: white;
}

.deviceList {
    list-style-type: none;
    margin: 0;
    padding-left: 0;
    justify-content: center;
}

.deviceListItem {
    color: rgb(8, 56, 78);
    text-decoration: underline;
    cursor: pointer;
}
.allDevicesButton {
    position: absolute;
    left: 12em;
}
.deviceDropdown {
    display: none;
}
.speakerChannelSelectorInput {
    width: 3em;
    margin-bottom: 6px;
    float: right;
    position: relative;
    top: 5px;
    left: 34px;
}
.speakerChannelSelectorLabel {
    float: right;
    position: relative;
    right: 56px;
    top: 9px;
    font-size: 10px;
}
.deviceInportLabel {
    display: none;
    width: 8em;
    font-size: 0.75em;
}
.deviceInport {
    width: 38px;
    font-size: 10px;
    margin-left: 9px;
    float: right;
    height: 22px;
}
.awesompleteContainer {
    width: 10em;
    padding: 0.5em 1em;
    border-radius: 10px;
    background: linear-gradient(to right, #f2f2f2, #c4c4c4);
    z-index: 1004 !important;
}
.allDevicesButton {
    position: absolute;
    left: 13em;
}
.awesomplete input {
    width: 100%;
}
.awesomplete .awesomplete-highlight {
    background-color: #bde4ff;
}

mark {
    background-color:lightblue !important;
    padding:0;
    margin:0;
}
.selectedNode {
    border: 3px solid white;
    z-index: 1009;
}
#audioInputDevicesDropdown {
    position: absolute;
    top: 100px;
}
.deviceSelectText {
    font-style: italic;
    margin-bottom: 4px;
    position: relative;
    top:-2px;
}
.audioInputDeviceSelect {
    width: 170px;
}
.audioFileName {
    font-size: 0.8em;
    margin-top: 4px;
    margin-left: 11px;
    margin-bottom: 0;
    display: inline-block;
    position: absolute;
    bottom: 4px;
    left: 60px;
    max-width: 110px;
    overflow: hidden;
}
#infoDiv {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8f9fa;
    padding: 1em;
    border-radius: 10px;
    text-align: center;
    display: none;
    font-size: 1.5em;
    z-index: 1011;
}
#infoDiv a {
    color: rgb(8,56,78);
    font-weight: bold;
}
#viewAllDevices {
    cursor: pointer;
    position: fixed;
    padding: 10px 20px;
    bottom: 10px;
    left: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #f2f2f2, #c4c4c4);
    border: none;
}
.growl-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: #ab2222;
    color: white;
    border-radius: 5px;
    z-index: 1005;
    opacity: 0;
    animation: fade-in-out 4s forwards;
}
@keyframes fade-in-out {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}
.jtk-endpoint {
    cursor: pointer;
}

.output-button {
    cursor: pointer;  
}
.toggle-button {
    background-color: grey;
    height: 10px;
    width: 75px;
    padding: 0px 0;
    position: relative;
    left: 13px;
    top: 54px;
    min-height: 75px;
    max-height: 75px;
    border-radius: 10px !important;
    text-align: center;
}
.toggle-off {
    background-color: grey;
}
body .toggle-on {
    background-color: white;
    color: rgb(8,56,78);
}
.button-ui {
    background-color: grey;
    height: 10px;
    width: 75px;
    padding: 0px 0;
    position: relative;
    left: 13px;
    top: 54px;
    min-height: 75px;
    max-height: 75px;
    border-radius: 43px !important;
    text-align: center;
}
#logo {
    position: fixed;
    height: 33px;
    height: 33px;
    top: 14px;
    left: 14px;
    z-index: 1012;
}
.jtk-hover path {
    cursor: pointer;
}

.jtk-group-collapsed > .node {
    display:none;
} 

.endpointCircle {
    background: rgba(0,0,0,0);
}
.endpointCircle circle {
    fill: rgba(0,0,0,0);
    stroke: rgba(0,0,0,0);
}
body .CodeMirror {
    height: 6em;
}
#comment {
    position: absolute;
    left: -36px;
    top: 0px;
}
#slider {
    width: 146px;
    margin-right: 63px;
    position: relative;
    top: -6px;
    -webkit-appearance: none;
    appearance: none;
    height: 30px;
    background: #ddd;
}

#slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: rgb(8,56,78);
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
}

#slider::-moz-range-thumb {
    width: 30px;
    background: rgb(8,56,78);
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
}

#slider::-ms-thumb {
    width: 30px;
    background: rgb(8,56,78);
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
}

.printvalue {
    position: relative;
    top: -31px;
    display: inline-block;
    font-size: 1em;
    text-align: center;
    width: 100%;
    z-index: -1;
}
.audioFileLoaderButton {
    margin-top: 10px;
    position: absolute;
    display: inline;
    color: white;
    bottom: 4px;
    background-color: rgb(8, 56, 78);
}
.permissionDiv {
    position: fixed;
    top: 50%;
    left: 50%;
    height: 173px;
    padding: 1em;
    transform: translate(-50%, -50%);
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5em;
    z-index: 1011;
}
.permissionButton {
    display: block;
    border-radius: 10px;
    font-size: 20px;
    position: absolute;
    left: 0;
    width: 90%;
    margin-top: 8px;
    margin-left: 5%;
    margin-bottom: 5%;
    padding: 7px;
    height: 64%;
    cursor: pointer;
    background: lightgrey;
}
.touchpad {
    width: 200px;
    height: 200px;
    border: 1px solid black;
    background: grey;
    position: relative;
}
.touchpadIndicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgb(8, 56, 78);
    position: absolute;
    pointer-events: none;
    transform: translate(-50%, -50%);
}
.jtk-connector {
    cursor: pointer;
}

.scrollArrowIndicator {
    position: absolute;
    bottom: 10px;
    right: 0;
    transform: translateX(-50%);
    font-size: 24px;
    color: rgb(8, 56, 78);
    display: none;
    pointer-events: none;
}
.sequencer-checkbox {
    height: 30px;
    padding: 0;
    margin: 0;
    width: 30px;
    position: relative;
    left: 5px;
    top: -2px;
}

.sequencer-slider {
    width: 200px;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    height: 35px;
    margin: 0;
    padding: 0;
    background: #ddd;
    display: inline-block;
    border: 1px solid rgb(203,203,203);
    /* prevent mobile touches that don't end up moving 
    the slider thumb from causing any other events 
    in the workspace */
    touch-action: none;
}

.sequencer-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: rgb(8,56,78);
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
}

.sequencer-slider::-moz-range-thumb {
    width: 30px;
    background: rgb(8,56,78);
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
}

.sequencer-slider::-ms-thumb {
    width: 30px;
    background: rgb(8,56,78);
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
}

.sequencer-container {
    width: 249px;
    position: relative;
    left: 46px;
    line-height: 0;
}

.participant-cursor {
    animation: cursor-pulse 1s infinite;
    z-index: 9999;
}

@keyframes cursor-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.participant-highlight {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.collab-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.collab-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.collab-modal h2 {
    margin-top: 0;
}

.collab-create-room,
.collab-join-room {
    margin-bottom: 20px;
}

.collab-modal button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.collab-modal button:hover {
    background-color: #0056b3;
}

.collab-modal-close {
    margin-top: 20px;
    background-color: #dc3545;
}

.collab-modal-close:hover {
    background-color: #a71d2a;
}

.collab-modal input {
    height: 2em;
}

.participant-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 10000;
    white-space: nowrap;
}