* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
.wrapper {
  padding: 15px 35px 15px 35px;
  border-radius: 20px;  
}
.wrapper header {
  display: flex;
  color: #B2B2B2;
  align-items: center;
  justify-content: space-between;  
  padding:15px;
}
header .columnbox {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; 
  align-items: center;
  padding: 35px 40px;
  background-color:#252424;
  border-radius: 20px;
  width:100%;
}
header .columnbox h2{
	padding-top:5px;
	color: #FFD700;
}

.columnboxpiano {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 15px 0 0 0;
  background-color: #252424;
  border-radius: 20px;
  width: 100%;
  box-sizing: border-box;
  gap: 10px; /* Optional spacing between columns */
}

.left-column, .right-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: white; /* For visibility */
  box-sizing: border-box;
}



.wrapper .control {
  display: flex;
  color: #252424;
  align-items: center;
  justify-content: space-between;  
  padding:15px;
}
.control .column {
  display: flex;
  align-items: center;
}
.control span {
  font-weight: 500;
  margin-right: 15px;
  font-size: 1.19rem;
}
.control input {
  outline: none;
  border-radius: 30px;
}
.volume-slider input {
  accent-color: #fff;
}
.keys-checkbox input {
  height: 30px;
  width: 60px;
  cursor: pointer;
  appearance: none;
  position: relative;
  background: #4B4B4B
}
.keys-checkbox input::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8c8c8c;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}
.keys-checkbox input:checked::before {
  left: 35px;
  background: #fff;
}
.piano-keys {
  display: flex;
  list-style: none;
  margin-top: 40px;
  padding:20px;  
}
ul.piano-keys  {  
  list-style-type: none !important;
}
.piano-keys .key {
  cursor: pointer;
  user-select: none;
  position: relative;
  text-transform: uppercase;
}
.piano-keys .black {
  z-index: 2;
  width: 44px;
  height: 140px;
  margin: 0 -22px 0 -22px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(#333, #000);
}
.piano-keys .black.active {
  box-shadow: inset -5px -10px 10px rgba(255,255,255,0.1);
  background:linear-gradient(to bottom, #000, #434343);
}
.piano-keys .white {
  height: 230px;
  width: 70px;
  border-radius: 8px;
  border: 1px solid #000;
  background: linear-gradient(#fff 96%, #eee 4%);
}
.piano-keys .white.active {
  box-shadow: inset -5px 5px 20px rgba(0,0,0,0.2);
  background:linear-gradient(to bottom, #fff 0%, #eee 100%);
}
.piano-keys .key span {
  position: absolute;
  bottom: 20px;
  width: 100%;  
  font-size: 1.13rem;
  text-align: center;
}
.piano-keys .key.hide span {
  display: none;
}
.piano-keys .black span {
  bottom: 13px;
  color: #888888;
}

.chord-option select {
    width: 150px;
    padding: 10px;
    margin-left: 10px;    
    line-height: 1;
    border-radius: 5px;
    background-color: #252424;
    color: #eee;
    font-size: 14px;
    -webkit-appearance: none;
    box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, .6);
    outline: none;
}

.mark {
	height: 30px;
	width: 20px;	
	border-radius: 50%;
}

@media screen and (max-width: 815px) {
  .wrapper {
    padding: 5px;	
  }
  header {
    flex-direction: column;
  }
  header :where(h2, .column) {
    margin-bottom: 13px;
  }
  .volume-slider input {
    max-width: 100px;
  }
  .piano-keys {
    margin-top: 20px;	
  }
  .piano-keys .key:where(:nth-child(16), :nth-child(17)) {
    display: none;
  }
  .piano-keys .black {
    height: 100px;
    width: 44px;
    margin: 0 -20px 0 -20px;
  }
  .piano-keys .white {
    height: 180px;
    width: 70px;
  }
}

@media screen and (max-width: 615px) {
  .piano-keys .key:nth-child(13),
  .piano-keys .key:nth-child(14),
  .piano-keys .key:nth-child(15),
  .piano-keys .key:nth-child(16),
  .piano-keys .key :nth-child(17) {
    display: none;
  }
  .piano-keys .white {
    width: 50px;
  }
}
/*Volume slider **********************************************************/
.volume-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.volume-slider span {
  font-weight: bold;
  color: #333;
  min-width: 60px;
}

.volume-slider input[type="range"] {
  -webkit-appearance: none;
  width: 150px;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  transition: background 0.3s;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #0bbaFB;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.volume-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #0bbaFB;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
/* Show HIde key Toggle css *********************************************/
.keys-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-family: sans-serif;
}

/* Hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Switch base */
.switch {
  position: relative;
  display: inline-block;
  width: 65px;
  height: 26px;
}

/* Slider background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; /* Blue by default (unchecked = active) */
  transition: 0.4s;
  border-radius: 26px;
}

/* Slider circle */
.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* When checked, change to inactive (gray) */
.switch input:checked + .slider {
  background-color: #0BBAFB;
}

/* Move circle right when checked */
.switch input:checked + .slider::before {
  transform: translateX(24px);
}

/* Optional rounded ends */
.slider.round {
  border-radius: 26px;
}

.slider.round::before {
  border-radius: 50%;
}
/* Chord Option ***************************************************************************/
select {
  background-color: #252424; /* dark background */
  color: #FFD700; /* golden text */
  border: 2px solid #00FFFF; /* cyan border matching toggle */
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  outline: none;
  transition: background-color 0.3s, color 0.3s;
  width: 190px; /* consistent width */
}

select option {
  background-color: #252424;
  color: #FFD700;
  font-weight: normal;
}

select:hover, select:focus {
  background-color: #1a1a1a;
  color: #00FFFF; /* highlight on focus/hover */
  border-color: #FFD700; /* gold border on hover */
  cursor: pointer;
}
