/* Diagram */

g.note.transparent:hover {
    opacity: 1;
}

g.note {
    fill: white;
    stroke-width: 1px;
    stroke: black;
}

g.note.selected>circle {
    opacity: 1;
    stroke-dasharray: 4, 4;
    stroke-width: 3px;
    stroke: black;
}

g.note.hidden {
    opacity: 0;
}

g.note.transparent {
    opacity: 0.3;
}

g.note.visible {
    opacity: 1;
    fill: white;
}

g.note.blue {
    fill: steelblue;
}

g.note.blue>text {
    stroke: white;
    fill: white;
}

g.note.black {
    fill: black;
}

g.note.black>text {
    stroke: white;
    fill: white;
}

g.note.red {
    fill: indianred;
}

g.note.red>text {
    stroke: white;
    fill: white;
}

g.note.green {
    fill: teal;
}

g.note.green>text {
    stroke: white;
    fill: white;
}

path.string {
    stroke: black;
    fill: none;
}

path.frets {
    stroke: black;
    stroke-width: 1px;
    fill: none;
}

g.note>text {
    stroke: black;
    stroke-width: 0px;
    fill: black;
    text-anchor: middle;
    dominant-baseline: middle;
    font-size: 18px;
}

#editable-div {
    text-align: center;
    font-size: 18px;
}

#fretboard-diagram-creator {
    padding-top: 10px;
    /* border: 1px solid; */
}

div.menu {
    text-align: center;
    /* text-align: center; */
    
}

text.marker {
    text-anchor: middle;
    font-size: 16px;
    fill: black;
}


/* Controls */

/* Actions on nodes */

#color-selector {
    /* background-color: lightgray; */
    margin: auto;
    padding-bottom: 10px;
    width: 280px;
    display: flex;
    justify-content: space-between;
}

button.color {
    width: 44px;
}

button {
    height: 25px;
}

button.color:hover {
    transform: scale(1.1);
}

.color.blue {
    background-color: steelblue;
}

.color.black {
    background-color: black;
}

.color.green {
    background-color: teal;
}

.color.red {
    background-color: indianred;
}

.color.white {
    background-color: white;
}

/* Global actions */

#global-actions {
    margin: auto;
    width: 430px;
    display: flex;
    justify-content: space-between;
}

/* figure {
    text-align: center;
} */

@supports (width: 100vw) {
    figure.half-full {
        max-width: 100vw;
        width: 1200px;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -600px;
        margin-right: -600px;
    }
    @media only screen and (max-width: 1200px) {
        figure.half-full {
            max-width: 100vw;
            width: 1000px;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -500px;
            margin-right: -500px;
            overflow-y: auto;
        }
    }
    @media only screen and (max-width: 1000px) {
        figure.half-full {
            max-width: 100vw;
            width: 100%;
            left: 0;
            right: 0;
            margin: 0;
            overflow-y: auto;
        }
    }
}

.num-input {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.error {
    font-size: 18px;
    text-anchor: middle;
}