body {
    font-family: Arial, sans-serif;
    background: #f3f3f6;
    padding: 30px;
    color: #222;
}


/* ========================= */
/* This one untuk the header */
/* ========================= */

.site-header {
    margin-bottom: 25px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 25px;

    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.header-title h1 {
    margin: 0;
    font-size: 30px;
    color: #333;
}

.header-title p {
    margin: 5px 0 0;
    color: #666;
    font-size: 15px;
}

.github-button {
    padding: 10px 18px;

    background: #333;
    color: #fff;

    text-decoration: none;
    border-radius: 6px;

    font-weight: bold;

    transition: 0.2s;
}

.github-button:hover {
    background: #555;
}

/* =================================== */
/* This one untuk the fretboard itself */
/* =================================== */

table {
    border-collapse: collapse;
    margin: auto;
}

th,
td {
    width: 80px;
    height: 70px;
    border: 3px solid #555;
    text-align: center;
    vertical-align: middle;
    font-size: 18px;
}

thead th {
    background: #4a4a4a;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.string-label {
    width: 90px;
    background: #d9d9d9;
    font-size: 20px;
    font-weight: bold;
}

.string-label .open-string-select {
    font-size: 20px;
    font-weight: bold;
}

.marker {
    color: #666;
    font-size: 28px;
    line-height: 1;
}

.double-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 24px;
    line-height: 0.8;
}


/* =====================================*/
/* Specifically the fretboard from 1-12 */
/* =====================================*/

table {
    background: #f5f5f5;
}

th,
td {
    background: #f5f5f5;
}

thead th {
    background: #4a4a4a;
    color: #fff;
}

.string-label {
    background: #d9d9d9;
}


/* ================================================= */
/* This one untuk the fretboard SECTION punya styles */
/* ================================================= */

.fretboard-section {
    max-width: 1200px;
    margin: 0 auto;
}

.fretboard-section h2 {
    margin-bottom: 5px;
    text-align: center;
    color: #333;
}

.section-description {
    margin-top: 0;
    margin-bottom: 20px;

    text-align: center;

    color: #666;
    font-size: 14px;
}



/* ============================================ */
/* This one untuk the highlighting of the frets */
/* =============================================*/

.scale-highlight {
    position: relative;
    isolation: isolate;
}

.scale-highlight::before {
    content: "";
    position: absolute;

    width: 42px;
    height: 42px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
    background-color: var(--highlight-color);
    border-radius: 50%;
    z-index: -1;
}


/* ====================================================================== */
/* This one yang display notes within a scale under the highlight section */
/* ====================================================================== */

.scale-output {
    width: fit-content;
    min-width: 350px;

    margin: 30px auto;

    padding: 20px 30px;

    background: #ffffff;

    border: 1px solid #ddd;
    border-radius: 10px;

    text-align: center;
}

.scale-output h2 {
    margin: 0;
    color: #333;
}

.scale-output-description {
    margin: 6px 0 18px;

    color: #777;
    font-size: 14px;
}

.scale-notes-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.scale-note {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: var(--note-color);

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;

    color: #333;

    cursor: pointer;

    transition:
        transform 0.15s,
        box-shadow 0.15s;
}

.scale-note:hover {
    transform: scale(1.08);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2);
}



/* =========================== */
/* Wrapper for the Scale Notes */
/* =========================== */

.scale-note-wrapper {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* ========================= */
/* Popup for the Scale Notes */
/* ========================= */

.note-color-popup {
    position: absolute;

    top: 52px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    padding: 12px;

    min-width: 110px;

    background: #ffffff;

    border: 1px solid #ccc;
    border-radius: 8px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.25);
}

.note-color-popup-title {
    font-size: 13px;
    font-weight: bold;

    color: #333;
}

.note-color-popup input[type="color"] {
    width: 55px;
    height: 35px;

    padding: 0;

    border: none;

    cursor: pointer;
}

#note-color-value {
    font-size: 11px;

    color: #777;
}
/* ==================================== */
/* This one untuk fret 0 / open strings */
/* =====================================*/


.open-string-select {
    width: 70px;
    height: 38px;

    background: #d9d9d9;
    border: none;

    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;

    text-align: center;
    cursor: pointer;
}


/* ===================================== */
/* This one untuk the the control groups */
/* ======================================*/


.controls {
    width: fit-content;
    margin: 30px auto 0;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.control-row {
    display: flex;
    gap: 25px;
}


/* ================================ */
/* This one untuk the Toggle Switch */
/* ================================ */


.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #bdbdbd;
    border-radius: 26px;

    transition: .25s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: .25s;
}

.toggle input:checked + .slider {
    background: #4CAF50;
}

.toggle input:checked + .slider::before {
    transform: translateX(24px);
}


/* ====================================== */
/* Technology / Cloud Engineering Section */
/* ====================================== */

.technology-section {
    max-width: 1200px;
    margin: 0 auto 30px;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 14px 20px;

    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.technology-label {
    font-weight: bold;
    color: #444;
    white-space: nowrap;
}

.technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.technology-list span {
    padding: 5px 10px;

    background: #f0f0f0;
    border-radius: 5px;

    font-size: 13px;
    color: #555;
}



/* ============================ */
/* Ni untuk Footer punya styles */
/* ============================ */

.site-footer {
    max-width: 1200px;
    margin: 35px auto 0;
    padding: 25px 0;
    border-top: 1px solid #d0d0d0;
    color: #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-content strong {
    color: #333;
    font-size: 16px;
}

.footer-content p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 25px;
    text-align: center;
    font-size: 12px;
    color: #777;
}

/* ============================= */
/* Single Colour for Scale Notes */
/* ============================= */

#scale-highlight-color {
    width: 35px;
    height: 28px;

    padding: 0;

    border: 1px solid #aaa;
    border-radius: 4px;

    cursor: pointer;

    background: transparent;
}