@font-face {
    font-family: 'DS-DIGII';
    src: url('./DS-DIGII.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



/* box model reset */
html,body {
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight:300;
    font-style: normal;
    background-color: rgb(38, 37, 65);
    color:white;
}

* {
    box-sizing: border-box;
}

.pages {
    display:flex;
    align-items: center;
}

.pages div {
    margin-left:20px;
}
.pages span {
    margin:0 3px;
}
.page {
    background-color: black;
    padding:2px;
}

.toprow {
    display:flex;
    justify-content:space-between;
}

.info {
    display:flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
}

.info div:nth-child(1) {
    display:flex;
    align-items: center;
    font-size:1.2em;
}

a, a:visited, a:active {
    color:white;
}

 .logo {
    color:rgba(255, 119, 0, 0.6);
 }

input,
select {
    padding: 2px;
    font-size: 1em;
    width: 60px;
}

#chordset {
    font-family: 'DS-DIGII', "Bitcount", sans-serif, system-ui;
    font-size: 1.2em;
    padding: 4px 8px;
    color:rgb(255, 52, 16);
    background-color: rgb(57, 3, 3);
    border:0;
    text-align: center;
    margin:0 20px;
    width:70px;
    box-shadow: 0 0 14px 3px rgba(255, 0, 0, 0.31) inset;
}

#genre {
    width:180px;
    font-family: 'DS-DIGII', "Bitcount", sans-serif, system-ui;
    overflow: hidden;
    font-size: 1.2em;
    padding: 4px 8px;
    color: rgb(255, 52, 16);
    background-color: rgb(57, 3, 3);
    border: 0;
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 0 14px 3px rgba(255, 0, 0, 0.31) inset;
}


select {
    cursor: pointer;
}

h2,h3 {
    margin:0;
    font-weight: normal;
    font-family: "Bitcount", sans-serif, system-ui;
}

button {
    padding: 6px 12px;
    font-size: 1em;
    font-family: "Bitcount", sans-serif, system-ui;
    background-color: #d85f1d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    color: #d85f1d;
    background-color: white;
}

/* Retro Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

label {
    color: #ccccccc6;
    font-size: 0.9em;
    font-weight: 400;
    font-family: "Bitcount", sans-serif, system-ui;
    letter-spacing: 1px;
    text-transform: uppercase;
}



.explanation {
    display:flex;
    margin: 80px auto;
    width: 880px;
    gap:20px;
    font-size:1.05em;
    align-items: flex-start;

    .howto {
        flex:1.2;
    }
    .chord-display {
        font-family: monospace;
        flex:0.8;
        border: 1px dashed white;
        border-radius: 10px;
        padding: 6px;
        div {
            padding:2px;
        }
        .chordname {
            color:rgba(211, 11, 11, 0.839);
            margin-left:20px;
        }
    }
    .chord-display > div:nth-child(odd) {
        background-color: #232b3a78;
    }
    .chord-display > div:nth-child(even) {
        background-color: #1a1f298a;
    }
}

.footer {
    margin-top:50px;
    color:rgba(216, 64, 219, 0.7);
    a {
        color: rgba(216, 64, 219, 0.7);
    }
}

#piano {
    background-image:url(bg.png);
    background-size:cover;
    width: 880px;
    height: 290px;
    margin: 80px auto;
    padding-left: 20px;
    padding-right:20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border-radius: 10px;
    background-color: rgb(49, 57, 60);
    color: white;
    position: relative;
    box-shadow: 0 0 3px 8px rgba(80, 80, 80, 0.05) inset, 0 24px 65px 0 rgba(38, 1, 52, 0.55);
}

.whitekeys {
    box-shadow: 0 -7px 0 0 rgba(0, 0, 0, 0.39);
    border-top: none;
    width: 840px;
    /* 21*40 */
    height: 180px;
    display: flex;
}

.blackkeys {
    width: 800px;
    height: 100px;
    display: flex;
    position: absolute;
    left: 40px;
}

.key {
    cursor: pointer;
    transition: background-color 0.4s;
}

.whitekeys .key {
    width: 40px;
    height: 175px;
    outline: 2px solid black;
    background-color: white;
    border-radius: 0 0 3px 3px;
    position: relative;
}

.whitekeys .key::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #333;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whitekeys .key.show-dot::after {
    opacity: 1;
}

/* pseudo elements */

.blackkeys .key {
    width: 20px;
    margin-left: 10px;
    margin-right: 10px;
    height: 100px;
    background-color: #2a2a2a;
    border-radius: 0 0 3px 3px;
    position: relative;
}

.blackkeys .key::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blackkeys .key.show-dot::after {
    opacity: 1;
}

.blackkeys .nokey {
    width: 40px;
    height: 100px;
}

.whitekeys .key.grey {
    background-color: lightgrey;
}

.activekey {
    background-color: lightgreen !important;
}

/* TOGGLES */


.toggle-label-left,
.toggle-label-right {
    min-width: 60px;
    text-align: center;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #444;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    top: 2px;
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
    border: 1px solid #999;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.toggle-input:checked+.toggle-slider {
    background: linear-gradient(145deg, #ff4500, #cc3300);
    border-color: #ff6600;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 8px rgba(255, 69, 0, 0.3);
}

.toggle-input:checked+.toggle-slider:before {
    transform: translateX(26px);
    background: linear-gradient(145deg, #ffff00, #ffcc00);
    border-color: #ffaa00;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        0 0 4px rgba(255, 255, 0, 0.4);
}

/* Keep ARP toggle with color changes */
#arpeggio:checked+.toggle-slider {
    background: linear-gradient(145deg, #ff4500, #cc3300);
    border-color: #ff6600;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 8px rgba(255, 69, 0, 0.3);
}

#arpeggio:checked+.toggle-slider:before {
    transform: translateX(26px);
    background: linear-gradient(145deg, #ffff00, #ffcc00);
    border-color: #ffaa00;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        0 0 4px rgba(255, 255, 0, 0.4);
}

/* Chords/Sound toggle - no color changes, just position */
#setchords:checked+.toggle-slider {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-color: #444;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

#setchords:checked+.toggle-slider:before {
    transform: translateX(26px);
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
    border-color: #999;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}