@media only screen and (max-width: 600px){
  .piano {
    height: 120px !important;
  }
}

@media only screen and (max-width: 300px){
  .piano {
    height: 95px !important;
  }
}

#va8 {
    width: 100%;
}

.piano-search-container {
    width: 100%;
}

#sheet-music-container {
    width: 100%;
    height: 20%;;
}

.piano {
    width: 100%;
    height: 200px;
    max-width: 800px;
    display: flex;
    flex-direction: row;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.piano-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.no-border {
    border: none;
}

.key {
    border-right: 2px solid #aaa;
    transition: background-color 0.3s;;
}

.white {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.2) inset,
    0 1px 2px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, transform 0.3s;
    background: linear-gradient(to bottom, #fff, #d9d9d9);
}

.white:hover {
    background: linear-gradient(to bottom, #fff, #ccc, #fff);
    cursor: pointer;
}

.black {
    background: linear-gradient(to bottom, #000, #444);
    width: 6%;
    height: 65%;
    position: absolute;
    z-index: 2;
    border: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.8), 0 4px 4px rgba(255, 255, 255, 0.2);
    margin-bottom: 0.2vh;
}

.b1 {
    left: calc(14.28% - 3%);
}

.b2 {
    left: calc(28.56% - 3%);
}

.b3 {
    left: calc(57.12% - 3%);
}

.b4 {
    left: calc(71.4% - 3%);
}

.b5 {
    left: calc(85.68% - 3%);
}

.black .sharp, .black .flat {
    position: absolute;
    width: 100%;
    height: 50%;
    z-index: 2;
    transition: background-color 0.3s;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}

.black .sharp {
    top: 0;
    background: linear-gradient(to bottom, #000, #444);
    display: flex;
    align-items: center;
    justify-content: center;
}

.black .flat {
    bottom: 0;
    background: linear-gradient(to bottom, #000, #444);
    display: flex;
    align-items: center;
    justify-content: center;
}

.black .sharp:hover, .black .flat:hover {
    background: lightblue;
    cursor: pointer;
}

.extra {
    background: linear-gradient(to bottom, #ccc, #aaa);
    width: 7%;
    height: 55%;
    position: absolute;
    top: 0;
    z-index: 2;
    border: none;
    border-radius: 4px 4px 4px 4px;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.4);
}

.extra-left {
    left: 0;
}

.extra-right {
    left: calc(35.6%);
}

.extra-middle-left {
    left: calc(42.9%);
}

.extra-middle-right {
    left: calc(100% - 7%);
}

.extra .symbol {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
    top: 50%;
    transform: translateY(-50%);
}

.extra:hover {
    background: lightcyan;
    cursor: pointer;
}

.key-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 0;
    text-align: left;
    font-weight: normal;
    font-size: 1.2em;
    font-family: Arial, sans-serif;
    color: #000;
}

.key.clicked {
    transform: translateY(10px) !important;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.5%;
    margin-bottom: 1.5%;
}

#notes-display {
    font-size: 1.4em;
    width: 100%;
    background-color: #f2f2f2;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
}

.notes-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#notes-output {
    width: 100%;
    height: 3em;
    border: none;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1em;
    resize: none;
}

#notes-output:focus {
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.remove-note-button, #play-music-button, #clear-button, #toggle-data-list-button {
    background-color: #ca0000;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.7em !important;
    margin: 0.5% 1%;
    flex: 1;
}

.remove-note-button:hover,
#clear-button:hover,
#toggle-data-list-button:hover,
#play-music-button:hover {
    background-color: #ff3333;
}

.remove-note-button span {
    font-size: 20px;
}

#parsons-checkbox-form {
    padding-top: 10px;
}

label {
    font-size: 0.7em;
}

input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.data-list ul {
    list-style-type: none;
    padding: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.data-list li {
    margin: 5px 0;
    padding: 5px;
    font-size: 0.7em;
}

.data-list.hidden {
    display: none;
}

.data-list:not(.hidden) {
    display: block;
}

.data-list ul {
    list-style-type: none;
    padding: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
}

.data-list:not(.hidden) ul {
    opacity: 1;
    max-height: 100%;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
}

.left-arrow,
.right-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    display: inline-block;
    margin: 0 10px;
    cursor: pointer;
}

.right-arrow {
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ca0000;
}

.left-arrow {
    border-width: 15px 25px 15px 0;
    border-color: transparent #ca0000 transparent transparent;
}

.octave-button {
    margin-bottom: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.octave-display {
    font-size: 1.2em;
    font-family: sans-serif;
    margin: 0 10px;
}

#sheet-music-container > svg{
	
	width: 100% !important;
	height: auto !important;
	max-width: 1100px;
	display: inline;
}

