/* #e84855, #d6e5e3, #9fd8cb, #517664, #1a181b <----- I LOVE COOLORS.CO*/

html,
body {
    margin: 0;
    height: 100%;
    font-family: "Geo", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #d6e5e3;
}
body {
    display: flex;
    flex-direction: column;
    min-height:100vh;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
}

h1 {
    font-size: 5em;
    margin: 0 0 0 0.35em;
    text-align: center;
}

.control {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 2em;
}

.chord-sequencer {
    display: grid;
    grid-template-columns: repeat(4, 48px);
    grid-auto-rows: 48px;
    gap: 2em;
    margin: 1em;
}
.chord-sequencer .cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.chord-row {
    display: contents;
}

.chordbox {
    width: 4em;
    height: 18px;
}

input[type="radio"] {
    width: 2.4em;
    height: 2.4em;
}

.melody-sequencer {
    display: grid;
    /* grid-template-rows: repeat(12, 32px); */
    grid-template-columns: 60px repeat(var(--melody-column-count), 32px);
    gap: 0;
    margin: 0;
    max-height: 40em;
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    box-sizing: border-box;
    border: 2px solid #ccc;
}

.melody-sequencer .chord-cell {
    grid-column: span 4;
    background: #e9e9e9;
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #666;
    border-bottom: 2px solid #333;
}

.layout-container {
    display: grid;
    grid-template-columns: 200px 180px minmax(0,1fr);
    width: 100%;
    flex: 1;
    align-items: start;
    box-sizing: border-box;
    align-items: start;
    justify-content: center;
    flex-direction: row;
}

.left-edge-panel {
    /* display: flex; */
    align-items:center;
    justify-content: flex-start;
    width: 200px;
    background-color: #1a181b;
    flex-direction: column;
    padding: 1em;
    height: 100%;
    box-sizing: border-box;
}

.left-panel {
    background-color: #D6E5E3;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width:10em;
    overflow-y: auto;
    overflow-x: hidden;
}

.left-panel h2 {
    margin: 0.75em 0 0;
    font-size: 1.4em;
    color: #1a181b;
}

.left-panel .control {
    margin: 1em;
}

.track {
    width: 80%;
    padding: 0.5em;
    margin: 0.5em 0;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.track.active {
    background: #517664;
    color: white;
    border-color: #517664;
}

.right-panel {
    display: flex;
    flex-grow: 1;
    align-items: stretch;
    justify-content: flex-start;
    min-width:480px;
    box-sizing: border-box;
    flex-direction: column;
}

.chordbox {
    width: 80%;
    height: 18px;
    font-size: 14px;
    text-align: center;
}

.melody-sequencer .cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0px;
}

input[type="radio"].melodybox {
    appearance: none;
    -webkit-appearance: none;
    width:100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    border: none;
    outline: none;
}

input[type='range'] {
    accent-color:#517664;
}

input[type="radio"].melodybox:checked {
    background: #E84855;
}

.melody-sequencer .natural-row {
    background: #e9e9e9;
}

.melodybox {
    margin: 0;
}

.melody-sequencer .melody-label {
    position: sticky;
    left: 0;
    font-size: 1.3em;
    z-index: 2;
    background: #f7f7f7;
}

.melody-sequencer .melody-divider {
    border-right: 2px solid #666;
}

select {
    padding: 0.5em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 0;
    background: white;
    cursor: pointer;
}

.play {
    margin: 1em auto;
    padding: 0.5em 2em;
    font-size: 1.2em;
    border: none;
    border-radius: 4px;
    background-color: #517664;
    color: white;
    cursor: pointer;
}

#bpm {
    margin: 1em auto;
    margin-top: 0;
    padding: 0.5em 1em;
    font-size: 1.2em;
    border: none;
    border-radius: 4px;
    background-color: #517664;
    color: white;
    cursor: pointer;
}

#bpm-label {
    margin: 1em auto;
    margin-bottom: 0;
    font-size: 1.6em;
    margin-right: 0.5em;
    color: #517664;
}

hr {
    width: 80%;
    border: none;
    border-top: 1px solid #ccc;
    margin: 2em auto;
}

header {
    background-color: #1a181b;
    color: white;
    width: 100%;
    padding: 1em 0;
    margin-bottom: 0em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.header-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 1em;
    font-size: 1.2em;
}

.header-links a {
    color: white;
    text-decoration: none;
}
