body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

#play-area-container {
    position: relative;
    background-color: #f0f0f0;
    overflow: hidden;
}

#play-area {
    width: 100%;
    height: calc(100vh - 56px); /* Adjusted height */
    display: block;
}

#sine-wave-display {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 300px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.8);
}

#side-panel {
    height: calc(100vh - 56px);
    overflow-y: auto;
    transition: transform 0.3s ease;
}

#side-panel.collapsed {
    transform: translateX(-100%);
}

#play-area-container {
    height: calc(100vh - 56px); /* Adjusted height */
}

#creation-list {
    max-height: 200px;
    overflow-y: auto;
}

.control-group {
    margin-bottom: 10px;
}

#element-controls .color-palette {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#element-controls .color-swatch {
    width: 20px;
    height: 20px;
    margin: 2px;
    cursor: pointer;
    border: 1px solid #ccc;
}

#element-controls label {
    display: block;
    margin-top: 10px;
}

#element-controls input[type="range"] {
    width: 100%;
}

@media (max-width: 768px) {
    #side-panel {
        position: absolute;
        z-index: 1000;
        width: 70%;
        height: calc(100vh - 56px);
        left: 0;
        top: 56px;
        background-color: #f8f9fa;
    }

    #play-area-container {
        width: 100%;
    }

    #play-area {
        width: 100%;
    }

    #side-panel.collapsed {
        transform: translateX(-100%);
    }

    /* Adjust toolbox size for mobile */
    #side-panel {
        width: 60%;
    }

    #element-controls label,
    #element-controls input,
    #element-controls span {
        font-size: 14px;
    }
}

.modal {
    display: none;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: block;
}

.modal-content {
    border-radius: 5px;
}

/* Cursor change for creation list items */
#creation-list li {
    cursor: pointer;
}

/* Undo, Redo, and Pause Button Styling */
#undo-button, #redo-button, #pause-button {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    margin-right: 5px;
}

#redo-button {
    left: 80px;
}

#pause-button {
    left: 150px;
}

/* Button Styles */
#home-button {
    background-color: white;
    color: black;
}

#welcome-button {
    background-color: white;
    color: black;
}
