.body { font-family: "Work Sans", sans-serif; background-color: #f9f9f9; /* Light background */ color: #333; /* Dark text */ padding: 1rem; line-height: 1.5; } #chord-container { display: flex; flex-wrap: wrap; gap: 1.5rem; } .chord-card { border: 1px solid #ccc; /* Light border */ border-radius: 8px; padding: 1rem; background-color: #fff; /* White card background */ width: max-content; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */ } .chord-card h2 { margin-top: 0; font-size: 1.2rem; color: #222; /* Darker heading text */ } .fretboard { display: flex; flex-direction: column; align-items: flex-start; /* Align items to the start to prevent extra width */ gap: 0px; margin-left: .5rem; border: .1px solid #000000; /* Light fretboard border */ background-color: #c53737d1; /* Light fretboard background */ position: relative; width: fit-content; /* Fit content to prevent extra width */ } .fretboard .fret { background-color: #ffffff!important; /* Light fret background */ } .fret-row { display: flex; flex-direction: row; justify-content: flex-start; /* Align frets to the start */ align-items: stretch; gap: 0px; } .fret { width: 2.1rem; height: 1.6rem; box-sizing: border-box; border: .5px solid #000000; border-left: 2px solid #ffffff; border-right: 2px solid #000000; display: flex; align-items: center; justify-content: center; font-size: 1rem; text-align: center; line-height: 1.6rem; font-weight: bold; background-color: #fff; color: #fff; /* Set to same as background for invisibility */ position: relative; /* Needed for dot positioning */ } .fret[data-dot]::after { content: ''; width: 0.55rem; height: 0.55rem; background-color: #1dc9fe; border: 1px solid #0a02a4; border-radius: 50%; display: block; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .fret:empty { background-color: #fff; /* White empty fret */ } .alternatives { margin-top: 1rem; } .alternatives h3 { color: #555; /* Slightly darker alternative heading */ font-size: 1rem; margin-bottom: 0.5rem; } .alternatives-container { display: flex; gap: 2rem; flex-wrap: wrap; } .alternative-fretboard { margin-inline: 1.8rem; } .alternative-fretboard .fret { width: 1.8rem; height: 1.3rem; } .fret.barre { /* remove background and border color overrides */ } .fret.barre::before { content: none; /* remove overlay effect */ } .fret.barre::after { background-color: transparent; border: 1px solid #360148; z-index: 1; } .barre-line { position: absolute; background-color: #000; border-radius: 5rem; pointer-events: none; z-index: 2; width: 1rem; left: 0; margin: 0; display: flex; justify-content: center; align-items: center; font-size: 0.7rem; color: white; font-family: sans-serif; font-weight: bold; transform: translateX(calc(50% - 1.1rem)); /* Nudge barre line to center, adjust as needed */ } .fret[muted] { color: #000; font-weight: bold; font-size: 1rem; display: flex; align-items: center; justify-content: center; }