/* Ensure the iframe content fits properly */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Disable scrolling within the iframe content */
    width: 100%; /* Ensure the content spans the full width */
    height: auto; /* Ensure the content spans the full height */
    box-sizing: border-box; /* Include padding and borders in the width/height calculation */
}

body {
    font-family: 'Futura', Arial, sans-serif;
    background-color: #f5f5f5; /* Slightly darker background */
    border-radius: 10px; /* Round off the corners */
    padding: 10px; /* Add padding inside the iframe */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25); /* Add a subtle shadow */
    overflow: hidden; /* Prevent content from spilling out of rounded corners */
}

#rnbo-root {
    width: 100%; /* Ensure the content spans the full width of the iframe */
    max-width: 100%; /* Prevent the content from exceeding the iframe's width */
    margin: 0 auto; /* Center the content horizontally */
    box-sizing: border-box; /* Include padding and borders in the width calculation */
    height: auto;
}

#background {
    position: absolute;
    z-index: -1;
}

h2, em {
    width: 100%;
}

#rnbo-root {
    margin: auto;
    height: auto;
    max-width: 540px;
}

#rnbo-clickable-keyboard {
    display: none;
}

#rnbo-clickable-keyboard > div {
    margin: 2px;
    border: solid black 1px;
    min-height: 50px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#rnbo-clickable-keyboard > div.clicked {
    background: #222222;
    color: #dddddd;
}

#rnbo-parameter-sliders {
    display: flex;
    flex-direction: column;
}

/* Style for the Parameters header */
#rnbo-parameter-sliders h2 {
    font-size: 18px; /* Reduce the font size */
    margin-bottom: 10px; /* Add spacing below the header */
    text-align: center; /* Center the header text */
}

/* Style for parameter sliders container */
#rnbo-parameter-sliders > div {
    display: flex;
    align-items: center; /* Vertically align items */
    gap: 10px; /* Add consistent spacing between elements */
}

/* Style for labels */
#rnbo-parameter-sliders > div > label {
    text-align: right; /* Align text to the right */
    display: inline-block; /* Ensure labels respect the width set dynamically */
}

#rnbo-parameter-sliders > div > input:first-of-type {
    flex-grow: 1;
}

/* Style for all number boxes in the parameter sliders */
#rnbo-parameter-sliders > div > input[type="text"] {
    width: 50px; /* Adjust width to fit five numbers and a decimal point */
    padding: 5px; /* Add some padding for better usability */
    font-size: 14px; /* Adjust font size for readability */
    text-align: right; /* Align text to the right for numbers */
    box-sizing: border-box; /* Include padding and border in the width */
    background-color: #f5f5f5; /* Apply the new background color */
    border: 1px solid #ccc; /* Add a border for better visibility */
    border-radius: 5px; /* Round the corners */
}

#rnbo-inports,
#rnbo-console,
#rnbo-presets {
    display: none;
}

#patcher-title {
    display: none;
}

/* Toggle styles */
.toggle {
    cursor: pointer;
    background-color: #f5f5f5; /* Apply the new background color */
    padding: 10px; /* Add padding for better spacing */
    border: 1px solid #ccc; /* Add a border for better visibility */
    border-radius: 5px; /* Round the corners */
    margin-top: 10px; /* Add spacing above the toggle */
}

.toggle-content {
    display: none;
    padding: 10px; /* Add padding for better spacing */
    border: 1px solid #ccc; /* Add a border for better visibility */
    border-radius: 5px; /* Round the corners */
    margin-top: 5px; /* Add spacing above the content */
    background-color: #f5f5f5; /* Apply the new background color */
}

/* Style for all sliders */
.param-slider {
    width: 200px; /* Set a fixed width for all sliders */
    height: 8px; /* Adjust the height of the slider */
    background: #ddd; /* Background color for the slider track */
    border-radius: 5px; /* Rounded corners for the slider track */
    outline: none; /* Remove the default outline */
    -webkit-appearance: none; /* Remove default styling in WebKit browsers */
    margin-left: 10px; /* Add spacing between the slider and the text */
    margin-right: 10px; /* Add spacing between the slider and the number box */
}

/* Style for the slider thumb */
.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none; /* Remove default styling for the thumb */
    appearance: none;
    width: 16px; /* Width of the thumb */
    height: 16px; /* Height of the thumb */
    background: #555; /* Color of the thumb */
    border-radius: 50%; /* Make the thumb circular */
    cursor: pointer; /* Change the cursor to a pointer */
}

.param-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
}

/* Style for parameter labels */
.param-label {
    width: 100px; /* Default width for desktop */
    text-align: left; /* Ensure text is aligned to the left */
    display: inline-block; /* Ensure labels respect the fixed width */
    padding-left: 5px; /* Optional: Add padding for better spacing */
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .param-label {
        width: 120px; /* Wider labels for mobile */
    }
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr.subtle-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

