:root {
    --maincol: #540D6E;
    --writingcol: white;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Playfair', serif;
    font-size: 18pt;
}

.wrapper {
    position: relative;
    width: 1080px;
    left: 50%;
    margin-left: -580px;
}

.colors {
    display: inline-block;
    width: 80px;
    height: 490px;
    vertical-align: top;
}

.colors > * {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    margin: 20px;
    background-clip: content-box;
    box-sizing: border-box;
}

.selected-col, .colors > *:hover {
    padding: 2px;
    border: 2px solid black;
}

.main {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    margin: 20px 0 20px;
    font-size: 0;
    box-shadow: 10px 10px 50px -15px rgba(0, 0, 0, .4) inset;
    padding: 50px;
    width: 1000px;
    height: 450px;
    background-color: var(--maincol);
    box-sizing: border-box;
    user-select: none;
    overflow: hidden;
}

.unit {
    height: 100%;
    stroke-width: 2px;
    stroke: var(--writingcol);
    fill: var(--writingcol);
    overflow: visible;
    filter: drop-shadow( 4px 4px 4px rgba(0, 0, 0, .2));
    margin-bottom: 3%;
}

.unit > path {
    scale: 0.09;
}

.instructions {
    width: 100%;
    color: var(--writingcol);
    font-size: 42pt;
    text-align: center;
    margin: auto;
}

.space-bar {
    border: 2px solid var(--writingcol);
    border-radius: 10px;
    font-family: monospace;
    padding: 12px 60px;
    margin: 0 5px;
    font-size: 14pt;
    vertical-align: middle;
}

.options {
    width: 1000px;
    margin: auto;
}

#accidentals, #presets {
    border: none;
    text-align: right;
    outline: none;
}

#noOfNotes {
    height: 18pt;
    width: 26pt;
    border: none;
    border-bottom: 1px solid black;
    outline: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 0;
    height: 0;
    background: var(--maincol);
    box-shadow: -200px 0 0 200px var(--maincol);
}

.slider {
    appearance: none;
    height: 23px;
    width: 240px;
    background: #d3d3d3;
    display: block;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    margin-bottom: 2px;
}

#curve {
    width: 240px;
    transform-origin: top left;
    transform: rotateZ(-90deg) translateX(-240px);
    margin-bottom: -58px;
} 

#curve-labels {
    display: flex;
    flex-direction: row;
    width: 298px;
    justify-content: space-around;
}

#curve-labels > * {
    font-size: 10pt;
    vertical-align: top;
    line-height: 1;
    letter-spacing: -2px;
    text-align: center;
    flex-basis: 0;
    flex: 1;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type=radio] {
    accent-color: var(--maincol);
    margin-left: 10px;
}


@media (width <= 1160px) {
    .wrapper {
        margin-left: -50%;
    }

    .main {
        width: 100%;
        aspect-ratio: 100 / 45;
        height: auto;
    }

    .instructions {
        font-size: 5.18vw;
    }

    .space-bar {
        font-size: 1.73vw;
        display: inline-block;
        width: 6%;
    }

    .colors {
        width: 100%;
        height: fit-content;

    }

    .colors > * {
        display: inline-block;
        margin-left: 30px;
        margin-right: 0;
    }

    .options {
        width: 100%;
    }
}