/* styles.css */
body {
  font-family:'Montserrat';
}
.title {
  text-align: center;
  font-family: 'Quicksand';
  font-weight: bold;
  padding: 20px;
  font-size: 40px;
  letter-spacing: 2px;
}
.container {
  background: #333;
  padding: 20px;
  color: #fff;
  font-size: 25px;
}
.choose {
  text-align: center;
  width: 50%;
  margin: 0 auto;
}
.chord-notes {
  display: none;
}
.piano-container {
  width: 95%;
  margin: 0 auto;
}
#key-select {
  font-size: 20px;
  padding: 5px;
  font-family: 'Montserrat';
  font-weight: 700;
}
.piano {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow keys to wrap to the next line */
  width: 100%; /* Adjust width to accommodate three octaves */
  height: 200px;
  margin: 20px auto;
  position: relative;
}

.key {
  flex: 1;
  border: 1px solid #000;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Align text at the bottom */
  font-size: 11px;
  font-weight:500;
  padding-bottom: 5px; /* Add padding at the bottom for text */
}

.white {
  background: #fff;
  height: 100%;
  z-index: 1;
}

.black {
  background: #000;
  color: #fff; /* White text for black keys */
  height: 60%;
  width: 3%; /* Reduced width for black keys */
  position: absolute;
  top: 0;
  z-index: 2;
}

/* Adjust the positioning of black keys for the first octave */
.black[data-note="Db"][data-octave="1"] { left: 3%; }
.black[data-note="Eb"][data-octave="1"] { left: 8%; }
.black[data-note="Gb"][data-octave="1"] { left: 17.5%; }
.black[data-note="Ab"][data-octave="1"] { left: 22.2%; }
.black[data-note="Bb"][data-octave="1"] { left: 27%; }

/* Adjust the positioning of black keys for the second octave */
.black[data-note="Db"][data-octave="2"] { left: 36.5%; }
.black[data-note="Eb"][data-octave="2"] { left: 41.1%; }
.black[data-note="Gb"][data-octave="2"] { left: 50.6%; }
.black[data-note="Ab"][data-octave="2"] { left: 55.5%; }
.black[data-note="Bb"][data-octave="2"] { left: 60.1%; }

/* Adjust the positioning of black keys for the third octave */
.black[data-note="Db"][data-octave="3"] { left: 69.7%; }
.black[data-note="Eb"][data-octave="3"] { left: 74.5%; }
.black[data-note="Gb"][data-octave="3"] { left: 84%; }
.black[data-note="Ab"][data-octave="3"] { left: 88.8%; }
.black[data-note="Bb"][data-octave="3"] { left: 93.5%; }

/* CSS for highlighted keys */
.highlighted {
  background-color: red !important;
}
#chord-list {
  display: flex;
  background: #eee;
  flex-wrap: wrap;
  justify-content: center;
}

.chord {
  width: 50%; /* Adjust width as needed for 3 items per row */
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.chord h3 {
  text-align: center;
}

@media (max-width: 1400px) {
  .chord {
    width: 100%; /* 2 items per row */
    
  }
}

@media (max-width: 850px) {
  .chord {
    width: 100%; }/* 1 item per row */
 
    }
  }
@media (max-width: 673px) {
  .key {
    font-size:9px;
     }
  .piano {height:150px}
  }