body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background-color: black;
    color: white;
}

#initialScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loadingMiniature {
    max-width: 200px;
    margin-bottom: 40px;
}

#loadButton {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#loadButton:hover {
    background-color: #45a049;
}

#loadingMessage {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

#loadingContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 400px;
    display: none;
}

#loadingBar {
    width: 100%;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

#loadingProgress {
    width: 0%;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.5s ease-in-out;
}

#loadingPercentage {
    margin-top: 10px;
    font-size: 16px;
    color: white;
}

#canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

#patchPanel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    display: none;
    max-width: 80%;
    width: 400px;
    max-height: 80%;
    overflow-y: auto;
}

#patchPanel h2 {
    margin-top: 0;
    color: white;
    text-align: center;
}

.patch-item {
    margin-bottom: 10px;
}

.value-positive {
    color: #4CAF50;
}

.value-negative {
    color: #f44336;
}

#clock {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
    display: none;
}

#audioControls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    z-index: 10;
}

#muteButton {
    margin-bottom: 10px;
    padding: 5px 10px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 5px;
}

#volumeBoxes {
    display: flex;
    flex-direction: row-reverse;
}

.volumeBox {
    width: 5px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-left: 2px;
    cursor: pointer;
}

.volumeBox.active {
    background-color: white;
}

@media (max-width: 768px) {
    #patchPanel {
        width: 90%;
        font-size: 14px;
    }

    #clock {
        font-size: 12px;
    }

    #audioControls {
        transform: scale(0.8);
        transform-origin: bottom right;
    }

    #loadButton {
        font-size: 14px;
        padding: 8px 16px;
    }

    #loadingBar {
        width: 100px;
    }
}

@media (min-width: 769px) {
    #loadingBar {
        width: 200px;
    }
}
#copyright {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
    color: #999;
    z-index: 10;
}

#copyright a {
    color: #999;
    text-decoration: none;
}

#copyright a:hover {
    text-decoration: underline;
}