@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
* { box-sizing: border-box; }
body { background: linear-gradient(135deg, #0B3D2E 0%, #145c3f 100%); color: #FFFFFF; font-family: 'Poppins', Arial, sans-serif; text-align: center; min-height: 100vh; margin: 0; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; }
h1 { font-size: 42px; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.navlink { color: #fff; margin: 0 12px; text-decoration: none; font-size: 17px; font-weight: 600; padding: 8px 16px; border-radius: 999px; transition: background 0.25s ease, transform 0.2s ease; }
.navlink:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.navlink.on { background: rgba(255,255,255,0.2); }
.section { background-color: #FFFFFF; color: #0B3D2E; border-radius: 20px; padding: 30px; margin: 20px auto; max-width: 600px; width: 100%; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,0.25); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.section:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.3); }
.section h2 { margin-top:0; font-weight: 700; }
.keyboard { position: relative; display: flex; width: fit-content; margin: 30px auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3)); user-select: none; -webkit-user-select: none; }
.key { width: 42px; height: 150px; background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%); border: 1px solid #ccc; border-radius: 0 0 8px 8px; color: #0B3D2E; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s ease; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.key:hover { background: linear-gradient(180deg, #f5f5f5 0%, #e5e5e5 100%); }
.key:active { background: #d8d8d8; }
.blackkey { position: absolute; top: 0; width: 28px; height: 95px; background: linear-gradient(180deg, #333 0%, #000 100%); color: #fff; z-index: 2; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: 11px; font-weight: 600; border-radius: 0 0 6px 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.4); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.blackkey:active { background: #555; }
.key.active { background: linear-gradient(180deg, #8fd9b6 0%, #4fae82 100%); }
.blackkey.active { background: linear-gradient(180deg, #4fae82 0%, #2f7d5a 100%); }
.octave-control { margin: 10px 0 25px 0; display: flex; flex-direction: column; align-items: center; }
.octave-control label { margin-bottom: 10px; font-size: 16px; font-weight: 600; }
.octave-control input[type=range] { accent-color: #ffffff; width: 180px; }
.instrument-control { margin: 0 0 25px 0; display: flex; flex-direction: column; align-items: center; }
.instrument-control label { margin-bottom: 10px; font-size: 16px; font-weight: 600; }
.instrument-control select { font-family: 'Poppins', Arial, sans-serif; font-size: 15px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: none; background: #ffffff; color: #0B3D2E; cursor: pointer; }
.notebtn { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 7px; background: linear-gradient(135deg, #0B3D2E, #1d7a54); color: #fff; border-radius: 50%; cursor: pointer; font-weight: 600; font-size: 16px; border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.25); transition: transform 0.2s ease, box-shadow 0.2s ease; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.notebtn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 18px rgba(0,0,0,0.35); }
.notebtn.sharp { background: linear-gradient(135deg, #111, #333); }
.notebtn.sel { outline: 3px solid #e7c35a; }
.noterow { display: flex; justify-content: center; flex-wrap: wrap; }
#scaleInfo, #chordInfo { margin-top: 20px; min-height: 40px; }
p { line-height: 1.6; }
.chordgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 10px; }
.chordgrid div.ctype { font-weight: 700; }
#finderResult { margin-top: 20px; font-weight: 700; font-size: 18px; min-height: 30px; }
.clearbtn { margin-top: 10px; display: inline-block; padding: 8px 18px; border-radius: 999px; background: #0B3D2E; color: #fff; font-weight: 600; cursor: pointer; border: none; font-family: 'Poppins', Arial, sans-serif; }
@media (max-width: 480px) { .chordgrid { grid-template-columns: 1fr; } }
.search-hl { background: linear-gradient(180deg, #ffe08a 0%, #e7c35a 100%) !important; }
.blackkey.search-hl { background: linear-gradient(180deg, #b8860b 0%, #8a6508 100%) !important; }