:root {
  --color-title: #3498db; /* Azul */
  --color-page-background: #f4f4f4;

  --color-green-main: #4caf50; /* El verde principal, se usa por ejemplo para el botón CLEAR y es el color de las teclas presionadas */
  --color-green-main-hover: #45a049;
  --color-green-main-border: #388E3C;
  --color-green-main-highlight: #2ce632;
  --color-green-blackKeys: #095F30; /* El verde más oscuro para las teclas negras y otros usos*/
  --color-green-blackKeys-hover: #084b26;
  --color-green-blackKeys-highlight: #13914c; /* El verde más oscuro para las teclas negras y otros usos*/
  --color-green-strong: #0daf63; /* Un verde más fuerte, se usa por ejemplo para bordes */
  --color-green-soft: #dbffe4; /* Verde muy suave, por ejemplo para el fondo de un botón */
  --color-green-soft-hover: #b9eec2;
  --color-green-footer: #2f6e31;

  --color-purple-main: #2c115f;
  --color-purple-main-hover: #170735;
  --color-purple-strong: #3c0baf;
  --color-purple-secondary: #543d7a;
  --color-purple-light: #a57eff;
  --color-purple-soft-a: #f2ecff;
  --color-purple-soft-b: #ece4fc;
  --color-purple-soft-hover: #dfd2fc;
  --color-purple-footer: #260d53;

  --color-red-strong: #af0d0d;

  --color-white-hover: #e0e0e0;
  --color-white-labels: #eeeeee;

  --color-grey-labels-a: #777777;
  --color-grey-labels-b: #888888;  
  --color-grey-borderButton: #aaaaaa;

  --color-lightgrey-a: #e9e9e9;
  --color-lightgrey-divider: #dadada;
  --color-lightgrey-pre-footer: #dadada;

  --color-darkgrey-actionButton: #3b3b3b; /*El gris para los botones como PlayChord, Mute, y otros, que usan MaterialIcons*/
  --color-darkgrey-labels-a: #333333; /* El gris para los textos */
  --color-darkgrey-labels-b: #222222; /* El gris para otros textos */  
}

html {
  overflow-x: hidden!important;
}

html {
  min-height: 100%;
}

.unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@font-face {
  font-family: 'custom-sriracha';
  src: url('../../_assets/fonts//sriracha/sriracha-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.divider {
  width: 80%;
  height: 2px;
  background-color: var(--color-lightgrey-divider);
  margin: 10px 0;
}

.divider-vertical {
  width: 1px;
  background-color: var(--color-lightgrey-divider);
  margin: 10px;
}

.spacer {
  flex-grow: 1;
}

.background-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Coloca el SVG detrás del contenido */
}

body {
  font-family: "Poppins", serif;
  /*display: flex;*/
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: var(--color-page-background);
}

button {
  font-family: "Poppins", serif;
}

/* ---------- FIN DEL NAVBAR, COMIENZA SCALES ------ */

/*body {
  background-color: #f4f4f4;
  font-family: Arial, sans-serif;
  text-align: center;
}*/

.container-main-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

.scale-title{
  color: var(--color-darkgrey-labels-a);
  font-size: 36px;
  font-weight: 700;
  margin-top: 16px;
}

.scale-subtitle {
  margin-bottom: 16px;
}

#txtMainTopTitle12 {
  color: var(--color-green-main);
}

/* ------------- CUSTOM SELECT DROPDOWN -------------  */
.csd-custom-select {
  margin: 10px 0;
  position: relative;
  display: inline-block;
  width: 300px;
  max-width: 100%;
}

.csd-select-button {
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.675em 1em;
  border: 1px solid #caced1;
  border-radius: 0.25rem;
  background-color: white;
  cursor: pointer;
}

.csd-arrow {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #000;
  transition: transform ease-in-out 0.3s;
}

.csd-select-dropdown {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border: 1px solid #caced1;
  border-radius: 0.25rem;
  background-color: white;
  list-style: none;
  padding: 10px;
  margin: 10px 0 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.csd-select-dropdown.hidden {
  display: none;
}

.csd-select-dropdown::-webkit-scrollbar {
  width: 7px;
}

.csd-select-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 25px;
}

.csd-select-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}

.csd-select-dropdown li {
  padding: 10px;
  cursor: pointer;
}

/* Highlight the selected option */
.csd-select-dropdown li.selected {
  background-color: #f2f2f2;
  border-radius: 4px;
  font-weight: bold;
  color: var(--color-purple-strong);
}

.csd-select-dropdown li:hover,
.csd-select-dropdown li:focus {
  background-color: #f2f2f2;
  border-radius: 4px;
}

.playButton {
  margin-right: -16px;
}

#piano-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /*margin-top: 20px;*/
  gap: 10px; /* Espacio entre los pianos */  
}

.piano {
  display: flex;
  /*margin: 20px;*/
  /*margin-top: 80px;*/
  margin-left: 50px;
  margin-right: 50px;
  border: 1px solid #ccc;
  position: relative; /* Agregado para que los elementos dentro de .piano se posicionen correctamente */
  align-items: center; /* Para centrar el piano */    
}

.octave {
  display: flex;
  position: relative;
}

.key {
  height: 130px; /* 150 */
  /*height: 80px;*/
  /*border: 1px solid #000;*/
  /*position: relative;*/
  background-color: rgb(255, 255, 255);
  user-select: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.4s ease;
  cursor: pointer;
  user-select: none;
}

.key.white.active.highlight {
  background-color: var(--color-green-main-highlight) !important;
  transition: transform 0.2s ease;
  transform: scale(1.04);
}

.key.black.active.highlight {
  background-color: var(--color-green-blackKeys-highlight) !important;
  transition: transform 0.2s ease;
  transform: scale(1.04);
}

.key.white {
  position: relative;
  width: 34px; /* 40 */
  background-color: #fff;
  border: 1px solid #222222;
  z-index: 1;
}

.key.white:hover {
  background-color: var(--color-white-hover);
}

.key.black {
  width: 22px;  /* 30 */
  height: 90px;  /* 100 */
  background-color: #000;
  margin-left: -11px;   /* -15 */
  margin-right: -11px;   /* -15 */
  z-index: 2;
  position: relative;
  border-bottom-right-radius: 25px;
  border-bottom-left-radius: 25px;
}

.key.active {
  background-color: rgb(76, 175, 80);
}

.key.white.active:hover {
  background-color: var(--color-green-main-hover) !important;
}

.key.black.active {
  background-color: rgb(9, 95, 48);
}

.key.black.active:hover {
  background-color: var(--color-green-blackKeys-hover) !important;
}

.note-label {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: bold;
  color: #222;
}

/* Contenedor de cada piano y título */
.piano-wrapper {
  display: flex;
  flex-direction: column; /* Asegura que los elementos (título y piano) se apilen verticalmente */
  align-items: left; /* Centra todo el contenido */
  margin: 10px; /* Ajusta el espacio alrededor de cada piano-wrapper */
}

/* Título del piano */
.piano-title {
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  justify-content: space-between;
  /*margin-bottom: 5px; /* Reduce el espacio entre el título y el piano*/
  text-align: left; /* Centra el texto */
  align-items: center;
  margin-left: 64px;
  display: flex;
}

.sound-button {
  margin-right: 64px;
  color: #000000;
  cursor: pointer;
  border: none;
  background: none;  
  box-sizing: border-box;
  align-items: end;
}

.material-icons {
  font-size: 24px; /* Ajusta el tamaño del ícono */
}


/* ------------ MOBILE SECTION ------------ */

/* Responsivo para móviles */
@media (max-width: 767px) {
  .scale-title {
    margin-top: 96px;
    font-size: 30px;
  }

  .scale-subtitle {
    font-size: 18px;
    width: 90%;
    text-align: center;
  }

  .key.white {
    width: 6vw;
    height: 120px;
  }

  .key.black {
    width: 4vw;
    height: 80px;
    margin-left: -2vw;
    margin-right: -2vw;
  }

  .note-label {
    bottom: 6px;
  }

  .csd-select-dropdown {
    max-height: 280px;
  }
}

/* ------------- EMPIEZA MOBILE EN LANDSCAPE ------------- */

/* Los celulares suelen tener pointer: coarse,
   mientras que las computadoras generalmente
   usan pointer: fine. */

@media (orientation: landscape) and (pointer: coarse) {
  /* Estilos específicos para móviles en modo horizontal */
  
}