body {
  font-family: 'Roboto', sans-serif;
  color: #555;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.app-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top left;
  /* Fixed transform syntax that works in all browsers */
  transform: scale(0.9);
  max-width: max-content;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  margin-left: calc(5vw + 74px);
}

.config-button {
  color: #3b3737;
  margin-left: 10%;
}

#fretboardContainer {
  display: flex;
  justify-content: center;
  width: 100%;
   align-self: center;
}


table {
  min-width: 20%;
  border-collapse: collapse;
  font-family: 'Roboto', sans-serif;
}

td {
  text-align: center;

}

.nota-circular {
  height: 30px;
  transform: translateY(50%);
}

tr:first-child td {
  border-top: none;
  border-left: none;
  border-right: none;
}

tr:first-child td:first-child {
  border: none;
}

.button-container {
  text-align: left;
  margin-top: 2em;
  align-items: "center";
  display: flex;
  gap: 10px;
  margin-left: 15px;
}

.num-cuerdas-style {
  border: 1px solid #555;
  border-radius: 40px;
  height: 30.9px;
  display: inline-block;
  padding: 2px;
  user-select: none;
  cursor: default;
}

.controls-area button {
  
  font-size: 18px;   /* Aumentar el tamaño de la fuente */
  height: 35px; /* Establecer una altura consistente con los select */
}

.button {
  display: inline-block;
  padding: 7.17px 18.3px;
  background-color: #777;
  color: #fff;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;

}

.button-num-cuerdas {
  display: inline;
  background-color: white;
  border: none;
  color: #555;
  cursor: pointer;
  min-width: 55px;
  font-size: 16px;
  cursor: default;
}

.controls-area select {
  font-size: 18px; /* Aumentar el tamaño de la fuente */
  height: 35px;    /* Aumentar la altura */
  padding: 5px 10px; /* Añadir padding para mejorar el aspecto */
}

select {
  color: #555;
  background-color: white;
  font-size: 14px;
  height: 22px;
}

svg {
  user-select: none;
  cursor: pointer;
  visibility: visible;
}

circle {
  opacity: 100%;
}

circle text {
  visibility: hidden;
}

.circulo-oculto {
  opacity: 30%;
}

.circulo-oculto text {
  visibility: hidden;
}


.circulo-blanco {
  fill: white;
}

.circulo-azul {
  fill: blue;
}

.circulo-rojo {
  fill: red;
}

#displayToggle .icon-wrapper {
  width: 24px; /* Aumentar el ancho del wrapper */
  height: 24px; /* Aumentar la altura del wrapper */
}

.icon-wrapper {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 100%;
  height: 100%;
}

#displayToggle .icon-text {
  font-size: 12px; /* Aumentar el tamaño de la fuente del texto dentro del SVG */
}

.icon-text {
  font-size: 12px;

  fill: currentColor;
}

#guitarButton .fas.fa-guitar {
  font-size: 20px; /* Aumentar el tamaño del icono */
}

.action-button {
  position: relative;
  font-size: 18px;
  height: 35px;
  padding: 5px 10px;
  background-color: #eoeoeo;
  color: #777;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.action-button .fas {
  font-size: 18px;
}

.save-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #c9322c;
  color: white;
  border-radius: 50%;
  padding: 2px 1px;
  font-size: 10px;
  line-height: 1;
  min-width: 15px;
  text-align: center;
  box-shadow: 0 0 0 1px white;
  
  /* AÑADE ESTA LÍNEA: */
  display: none; 
}

optgroup {
  font-weight: bold;
  font-style: normal;
  color: #333;
  background-color: #f5f5f5;
}

option {
  font-weight: normal;
  padding: 4px;
}



/* Style for disabled elements */
select:disabled,
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.playmode {
  fill: #fff;
  font-weight: 600;
}


.freeze-button {
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.freeze-button.active {
  background-color: #e6e6e6;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.freeze-button svg {
  transition: transform 0.2s;
}

/* Container for the fretboard */
#fretboardContainer {
  width: 100%;
  position: relative;
  transition: margin-left 0.3s ease;
  display: flex;
  justify-content: flex-start;
  overflow: visible;
  padding-bottom: 50px;
}

/* Center the fretboard when 24 frets are selected */
#fretboardContainer.centered {
  margin-left: calc(50% - 50vw + 200px);
  /* Adjust as needed */
  width: 100%;
}

.controls-area {
  display: flex;
  flex-wrap: wrap;
  align-self: flex-start;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 100px;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
   margin-left: 0;
  padding-left: 0;
 
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align to the left */
  width: max-content; /* Only as wide as needed */
}


@media (max-height: 600px) {
  .app-wrapper {
    transform: scale(calc(min(1, min(100vw / 1200px, 100vh / 600px))));
  }
}

.container {
  padding: 10px;
  box-sizing: border-box;
}

#miTabla {
  margin: 0;
  border-collapse: collapse;
}

@media (max-width: 1600px) {
  .app-wrapper {
    margin-left: calc(4vw + 60px);
  }
}

@media (max-width: 1400px) {
  .app-wrapper {
    margin-left: calc(3vw + 110px);
     transform: scale(0.75);
  }
}


/* Media queries with simple scale values */
@media (max-width: 1200px) {
  .app-wrapper {
    transform: scale(0.70);
    margin-left: calc(4vw + 100px);
  }
  .controls-area {

     align-self: flex-start;
  }
}

@media (max-width: 992px) {
  .app-wrapper {
    transform: scale(0.55);
     margin-left: calc(5vw + 150px);
  }
  .controls-area {

     align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .app-wrapper {
    transform: scale(0.42);
    margin-left: calc(7vw + 150px);
  }
  .controls-area {

     align-self: flex-start;
  }
}

@media (max-width: 576px) {
  .app-wrapper {
    transform: scale(0.26);
    margin-left: calc(10vw + 130px);
  }
  .controls-area {

     align-self: flex-start;
  }
}

/* Añadir al final del CSS */
.separator {
  width: 1px;
  height: 24px; /* Un poco más bajo que los botones para que quede elegante */
  background-color: #bbb;
  margin: 0 4px; /* Espaciado extra alrededor de la línea */
}
