/* custom.css */

/* Define custom font */
@font-face {
    font-family: 'Icomoon';
    src: url('fonts/icomoon.eot'); /* IE9 Compat Modes */
    src: url('fonts/icomoon.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/icomoon.ttf') format('truetype'), /* Safari, Android, iOS */
         url('fonts/icomoon.woff') format('woff'), /* Modern Browsers */
         url('fonts/icomoon.svg#icomoon') format('svg'); /* Legacy iOS */
    font-weight: normal;
    font-style: normal;
}

/* Apply Poppins font to the entire body */
body, h1, h2, h3, h4, h5, h6, p, a, li, ul, ol, table, th, td {
    font-family: 'Poppins', 'Icomoon';
    /* font-size: clamp(1rem, 1.5vw + 1rem, 1.25rem) !important;  */
}


li,ul,p{
    font-size: clamp(1rem, 1.5vw + 1rem, 1.25rem) !important; 
}


/* Dark background for the header and menu */
.header, .menu {
    background-color: #000000;
    color: #ffffff;
    padding: 10px;
    text-align: center;
}

/* Center the list of buttons in the menu */
/* Center the list of buttons in the menu */
.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 10px;
}

/* Style for the chapter buttons */
.chapter-button {
    border: 2px solid #ffffff;
    padding: clamp(0.5rem, 1vw + 0.5rem, 1rem) clamp(1rem, 2vw + 1rem, 2rem);
    margin: 5px; /* Adjust margin for better spacing */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    flex: 0 0 clamp(80px, 10vw, 150px); /* Responsive width for all buttons */
    font-size: clamp(1rem, 1.5vw + 1rem, 1.25rem); /* Responsive font size */
}

/* Move the first two buttons above the rest */
.chapter-button:nth-child(1),
.chapter-button:nth-child(2){
    flex-basis: 35%; /* Make the first two buttons take up the full width */
    justify-content: center; /* Center the buttons */
    margin-bottom: 20px; /* Increase the gap between the two rows */
}

.chapter-button.interface {
    --button-color: #44bacd;
    color: var(--button-color);
}
/* Colors for each chapter button */
.chapter-button.technical-specifications {
    --button-color: #ffffff;
    color:var(--button-color);
}

.chapter-button.quick-start {
    --button-color: #44bacd;
    color: var(--button-color);
}

.chapter-button.matrix {
    --button-color: #ef6e6c;
    color: var(--button-color);
}

.chapter-button.mixer {
    --button-color: #ef6e6c;
    color: var(--button-color);
}

.chapter-button.sequencer {
    --button-color: #ffb759;
    color: var(--button-color);
}

.chapter-button.clip {
    --button-color: #ffb759;
    color: var(--button-color);
}

.chapter-button.note {
    --button-color: #ffb759;
    color: var(--button-color);
}

.chapter-button.lfo {
    --button-color: #eef881;
    color: var(--button-color);
}

.chapter-button.envelope {
    --button-color: #eef881;
    color: var(--button-color);
}

.chapter-button.daw {
    --button-color: #44cd9b;
    color: var(--button-color);
}

.chapter-button.song {
    --button-color: #44bacd;
    color: var(--button-color);
}
.chapter-button.settings {
    --button-color: #ffffff;
    color: var(--button-color);
}

/* Change background color of the content when a tab is clicked */
body.technical-specifications .content, .content.technical-specifications {
    background-color: #a3a3a3;
}

body.interface .content, .content.interface {
    background-color: #44bacd;
}

body.quick-start .content, .content.quick-start {
    background-color: #44bacd;
}

body.whats-new .content, .content.whats-new {
    background-color: #44bacd;
}

body.matrix .content, .content.matrix {
    background-color: #ef6e6c;
}

body.mixer .content, .content.mixer {
    background-color: #ef6e6c;
}

body.sequencer .content, .content.sequencer {
    background-color: #ffb759;
}

body.clip .content, .content.clip {
    background-color: #ffb759;
}

body.note .content, .content.note {
    background-color: #ffb759;
}

body.lfo .content, .content.lfo {
    background-color: #eef881;
}

body.envelope .content, .content.envelope {
    background-color: #eef881;
}

body.daw .content, .content.daw {
    background-color: #44cd9b;
}

body.song .content, .content.song {
    background-color: #44bacd;
}

body.settings .content, .content.settings {
    background-color: #a3a3a3;
}


.align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Hover effect for buttons */
.chapter-button:hover {
    background-color: var(--button-color);
    color: #000000;
}

/* General content styling */
.content {
    padding: clamp(0.5rem, 1vw + 0.5rem, 1rem) clamp(1.5rem, 2vw + 1rem, 3rem); /* Reduced top padding */
    text-align: justify; /* Justify text alignment */
    margin: 20px auto;
    max-width: 800px;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ffffff;
    padding: clamp(0.5rem, 1vw + 0.5rem, 1rem);
    text-align: left;
}

th {
    background-color: #333333;
    color: #ffffff;
}

/* Code block styling */
pre {
    background-color: #1e1e1e;
    padding: clamp(0.5rem, 1vw + 0.5rem, 1rem);
    border-radius: 4px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #1e1e1e;
    padding: 2px 4px;
    border-radius: 4px;
}

/* List styling */
ul, ol {
    margin: 20px 0;
    padding-left: 40px;
}

li {
    margin: 10px 0;
    font-size: clamp(1rem, 1.5vw + 1rem, 1.25rem); /* Responsive font size */
}

/* Remove the square that appears on the right of titles when clicked */
h1 > a.headerlink, h2 > a.headerlink, h3 > a.headerlink, h4 > a.headerlink, h5 > a.headerlink, h6 > a.headerlink {
    display: none;
}

/* Admonition styling */
.admonition.note {
    padding: 10px; /* Optional: Add some padding */
    border: 2px solid #000000; /* Optional: Add a border */
    border-radius: 5px; /* Optional: Add rounded corners */
    font-style: italic; /* Optional: Make the text italic */
}

.admonition.note .admonition-title {
    background-color: #000000; 
    color: #ffffff;
    padding: 5px; /* Optional: Add padding */
    border-radius: 5px; /* Optional: Add rounded corners */
    font-weight: bold;
    font-style: normal; /* Optional: Remove italic style */
}

/* Ensure the entire page background is consistent */
body {
    background-color: #000000;
    color: #000000;
    margin: 0;
    padding: 0;
}

/* Ensure the header and menu have a consistent black background */
.header, .menu {
    background-color: #000000;
    color: #ffffff;
}


.header h1 {
    margin: 0;
    margin-top: 155px; /* Add space between the logo and the title */
}

.logo {
    position: absolute;
    top: 20px; /* Adjust as needed */
    left: 100px; /* Adjust as needed */
    max-width: 155px; /* Adjust the max width as needed */
    min-width: 100px; /* Adjust the min width as needed */
    height: auto;
    width: auto;
    max-height: 155px; /* Adjust the max height as needed */
    min-height: 100px; /* Adjust the min height as needed */
    object-fit: contain;
}

.header .version {
    position: absolute;
    top: 30px; /* Adjust as needed */
    right: 100px; /* Adjust as needed */
    font-size: 1rem;
    font-weight: bold;
    max-width: 155px; /* Adjust the max width as needed */
    min-width: 100px; /* Adjust the min width as needed */
    height: auto;
    width: auto;
    max-height: 155px; /* Adjust the max height as needed */
    min-height: 100px; /* Adjust the min height as needed */
    object-fit: contain;
}

.chapter-button.whats-new {
    position: absolute;
    top: 90px; /* Center vertically relative to the version */
    right: 110px; /* Align with the version */
    transform: translateY(-50%); /* Center the button */
    padding: 5px 10px;
    background-color: #44bacd;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.6rem;
}

.chapter-button.download-pdf {
    position: absolute;
    top: 140px; /* Center vertically relative to the version */
    right: 72px; /* Align with the version */
    transform: translateY(-50%); /* Center the button */
    padding: 10px 20px;
    background-color: #44bacd;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}


.downloads-container {
    display: flex;
    justify-content: center; /* Center the button horizontally */
    margin-top: 20px; /* Add some space below the title */
}

.chapter-button.mac-update{
    background-color: #44bacd;
    margin-top: 20px;
    border: none;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.chapter-button.windows-update{
    background-color: #44bacd;
    margin-top: 20px;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.chapter-button.live-cs{
    background-color: #44bacd;
    margin-top: 20px;
    border: none;
    color: rgb(0, 0, 0);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.chapter-button.live-cs-11{
    background-color: #44bacd;
    margin-top: 20px;
    border: none;
    color: rgb(0, 0, 0);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.chapter-button.bitwig-cs{
    background-color: #44bacd;
    margin-top: 20px;
    border: none;
    color: rgb(0, 0, 0);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.chapter-button.usync{
    background-color: #44bacd;
    margin-top: 20px;
    border: none;
    color: rgb(0, 0, 0);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}


.chapter-button.downloads {
    position: absolute;
    top: 190px; /* Center vertically relative to the version */
    right: 86px; /* Align with the version */
    transform: translateY(-50%); /* Center the button */
    padding: 10px 20px;
    background-color: #44bacd;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    z-index: 1000; /* Ensure it is above other elements */
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay-content {
    background-color: #000000c1;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 20px;
    color: #ffffff;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
    font-size: 1rem;
}

/* Remove any default margins and padding from the body */
body {
    margin: 0;
    padding: 0;
}

/* Light mode styles */
body.light-mode {
    background-color: #ffffff;; /* Light background */
}

body.light-mode .header, 
body.light-mode .menu {
    background-color: #ffffff; /* Light header background */
    color: #000000; /* Dark header text */
}

body.light-mode .content {
    background-color: #ffffff; /* Light content background */
}

/* Light mode button colors */
body.light-mode .chapter-button.technical-specifications {
    background-color: #ffffff;
    color: #000000;
}

body.light-mode .chapter-button.quick-start {
    background-color: #44bacd;
    color: #000000;

}

body.light-mode .chapter-button.matrix {
    background-color: #ef6e6c;
    color: #000000;

}

body.light-mode .chapter-button.mixer {
    background-color: #ef6e6c;
    color: #000000;

}

body.light-mode .chapter-button.sequencer {
    background-color: #ffb759;
    color: #000000;

}

body.light-mode .chapter-button.clip {
    background-color: #ffb759;
    color: #000000;

}

body.light-mode .chapter-button.note {
    background-color: #ffb759;
    color: #000000;

}

body.light-mode .chapter-button.lfo {
    background-color: #eef881;
    color: #000000;

}

body.light-mode .chapter-button.envelope {
    background-color: #eef881;
    color: #000000;

}

body.light-mode .chapter-button.daw {
    background-color: #44cd9b;
    color: #000000;

}

body.light-mode .chapter-button.song {
    background-color: #44bacd;
    color: #000000;

}
body.light-mode .chapter-button.settings {
    background-color: #ffffff;
        color: #000000;
}



body.light-mode .chapter-button {
    border: 2px solid #000000;
}
/* Ensure the content area has a consistent background color */
.content {
    background-color: inherit;
}

.content h1 {
    text-align: center;
    color: #ffffff;
    background-color: #000000;
    padding: clamp(0.5rem, 1vw + 0.5rem, 1rem); /* Padding around the text */
    padding-bottom: clamp(1rem, 2vw + 1rem, 2rem); /* Extend background below the text */
    margin-top: clamp(0.5rem, 1vw + 0.5rem, 1rem); /* Same margin-top as padding */
    margin-left: clamp(-0.5rem, -1vw - 0.5rem, -1rem); /* Negative margin to extend background to the left */
    margin-right: clamp(-0.5rem, -1vw - 0.5rem, -1rem); /* Negative margin to extend background to the right */
    border-top-left-radius: 30px; /* Top left border radius */
    border-top-right-radius: 30px; /* Top right border radius */
    border-bottom-left-radius: 15px; /* Bottom left border radius */
    border-bottom-right-radius: 15px; /* Bottom right border radius */
    font-size: clamp(1.5rem, 2.5vw + 1rem, 2.5rem); /* Adjusted responsive font size */
    font-weight: bold; /* Make font bold */
}


/* Container for padding */
.container {
    padding: clamp(1rem, 2vw + 1rem, 2rem); /* Add padding around the container */
    margin: 0 auto; /* Center the container */
    max-width: 1200px; /* Set a maximum width for the container */
}

#scrollToTop {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 30px; /* 20px from the bottom */
    right: 120px; /* 50px from the right (moved more to the left) */
    z-index: 99; /* Make sure it is above other elements */
    border: 2px solid #ffffff; /* Added white border */
    outline: none; /* Remove outline */
    background-color: #000; /* Black background */
    color: white; /* White text */
    cursor: pointer; /* Pointer/hand icon */
    padding: 20px; /* Increased padding for a bigger button */
    border-radius: 10px; /* Rounded corners */
    font-size: 24px; /* Increased font size */
}

#scrollToTop:hover {
    background-color: #555; /* Add a dark-grey background on hover */
}

#toggleDarkLight {
    display: block; /* Visible by default */
    position: fixed; /* Fixed position */
    bottom: 30px; /* 20px from the bottom */
    left: 120px; /* 50px from the left */
    z-index: 99; /* Make sure it is above other elements */
    border: 2px solid #ffffff; /* White border */
    outline: none; /* Remove outline */
    background-color: #000; /* Black background */
    color: white; /* White text */
    cursor: pointer; /* Pointer/hand icon */
    padding: 20px; /* Padding for a bigger button */
    border-radius: 10px; /* Rounded corners */
    font-size: 17px; /* Font size */
}

#toggleDarkLight:hover {
    background-color: #555; /* Add a dark-grey background on hover */
}

.xref.std.std-term {
    position: relative;
    cursor: pointer;
    /* background-color: rgba(199, 199, 199, 0.3); */
    color: #000000;
    font-style: italic; /* Make the term words italic */
}

.std.std-ref {
    font-style: italic;
}

.xref.std.std-term:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0.9;
    pointer-events: none; /* Ensure the tooltip doesn't interfere with mouse events */
    max-width: 90vw; /* Ensure the tooltip doesn't exceed the viewport width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words to fit within the tooltip */
    overflow-wrap: break-word; /* Ensure long words break */
    text-align: center; /* Center align the text */
}

.glossary-term-container {
    display: flex;
    align-items: center;
    margin-bottom: 1em; /* Add space between terms */
}

.glossary-term-container dt {
    font-weight: bold; /* Make the title bold */
    color: #000000; /* Set the color of the title */
}

.glossary-term-container img.glossary-icon-inline {
    margin-right: 20px; /* Add space between the icon and the term */
    width: 20px; /* Adjust the size of the icon */
    height: auto; /* Maintain aspect ratio */
    /* background-color: rgba(199, 199, 199, 0.5); 0.5 is the opacity value */
}

.glossary-term-container .headerlink {
    display: none; /* Hide the anchor link */
}   

.glossary-icon-inline {
    vertical-align: middle; /* Align the icon vertically with the text */
    margin-right: 10px; /* Add some space between the icon and the term */
    width: 35px; /* Adjust the width of the icon */
    height: auto; /* Maintain the aspect ratio */
}

/*Hyperlink customisation*/
a {
    text-decoration: none;
    color: #000000;
}

/* Ensure visited links also appear black */
a:visited {
    color: #000000;
}

/* Ensure active links also appear black */
a:active {
    color: #000000;
}

/* Ensure hovered links also appear black */
a:hover {
    color: #000000;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .content {
        padding: clamp(0.5rem, 1vw + 0.5rem, 1rem) clamp(1rem, 2vw + 1rem, 2rem); /* Adjusted padding for smaller screens */
        margin: 10px;
    }

    .chapter-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .content h1 {
        font-size: 1.5em;
        padding: 8px;
        padding-bottom: 15px;
        margin-top: 5px; /* Adjusted margin-top for smaller screens */
    }
}

@media (max-width: 480px) {
    .content {
        padding: clamp(0.5rem, 1vw + 0.5rem, 1rem) clamp(1rem, 2vw + 1rem, 2rem); /* Adjusted padding for smallest screens */
        margin: 5px;
        text-align: justify; /* Keep text alignment to justify */
        hyphens: auto; /* Enable hyphenation to reduce gaps between words */
    }

    .content h1 {
        font-size: 1.2em;
        padding: 6px;
        padding-bottom: 10px;
        margin-top: 5px; /* Adjusted margin-top for smallest screens */
    }

    #toggleDarkLight {
        left: 50px; /* Adjust the position of the dark/light mode button */
    }

    #scrollToTop {
        right: 50px; /* Adjust the position of the scroll-to-top button */
    }

    .xref.std.std-term:hover::after {
        white-space: normal; /* Allow text to wrap on smaller screens */
        word-wrap: break-word; /* Break long words to fit within the tooltip */
        top: -30px; /* Adjust position for smaller screens */
        padding: 6px; /* Adjust padding for smaller screens */
        font-size: 0.8em; /* Adjust font size for smaller screens */
    }

    .chapter-button {
        padding: 6px 12px;
        font-size: 0.8em;
        flex-basis: 100%; /* Make all buttons stack vertically */
        margin-bottom: 10px; /* Add some space between buttons */
    }

    .chapter-button:nth-child(1),
    .chapter-button:nth-child(2){
        flex-basis: 100%; /* Make the first two buttons take up the full width */
        margin-bottom: 10px; /* Adjust the gap for the first two buttons */
    }

}

@media (max-width: 1020px) {
    .chapter-button {
        flex-basis: 30%; /* Make all buttons stack vertically */
        margin-bottom: 10px; /* Add some space between buttons */
    }

    .chapter-button:nth-child(1),
    .chapter-button:nth-child(2) {
        flex-basis: 30%; /* Make the first two buttons take up the full width */
        margin-bottom: 10px; /* Adjust the gap for the first two buttons */
    }

}

@media (max-width: 900px) {
    .chapter-button {
        flex-basis: 30%; /* Make all buttons stack vertically */
        margin-bottom: 10px; /* Add some space between buttons */
    }

    .chapter-button:nth-child(1),
    .chapter-button:nth-child(2) {
        flex-basis: 30%; /* Make the first two buttons take up the full width */
        margin-bottom: 10px; /* Adjust the gap for the first two buttons */
    }

}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-text {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fade-in-text.visible {
    opacity: 1;
}

@media (max-width: 900px) {
    .logo {
        position: static; /* Remove absolute positioning */
        margin: 0 auto; /* Center the logo */
        display: block; /* Ensure the logo is a block element */
    }

    .header .version {
        position: static; /* Remove absolute positioning */
        margin: 0 auto; /* Center the version */
        display: block; /* Ensure the version is a block element */
    }

    .chapter-button.whats-new {
        position: static; /* Remove absolute positioning */
        margin: 0 auto; /* Center the button */
        margin-top: -40px;
        margin-bottom: 25px; /* Add some space between the buttons */
        display: block; /* Ensure the button is a block element */
    }

    .chapter-button.download-pdf {
        position: static; /* Remove absolute positioning */
        margin: 0 auto; /* Center the button */
        
        display: block; /* Ensure the button is a block element */
    }

    .chapter-button.downloads {
        position: static; /* Remove absolute positioning */
        margin: 0 auto; /* Center the button */
        margin-top: 10px; /* Add some space between the buttons */
        display: block; /* Ensure the button is a block element */
    }

    .header h1 {
        margin-top: 20px; /* Adjust margin as needed */
    }

    .xref.std.std-term:hover::after {
        white-space: normal; /* Allow text to wrap on smaller screens */
        word-wrap: break-word; /* Break long words to fit within the tooltip */
        top: -40px; /* Adjust position for smaller screens */
        padding: 8px; /* Adjust padding for smaller screens */
        font-size: 0.9em; /* Adjust font size for smaller screens */
    }
}
