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 center;
  /* Fixed tra.app-nsform syntax that works in all browsers */
  transform: scale(calc(min(1, min(110vw / 1660px, 100vh / 500px))));
  max-width: max-content;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  margin-left: 0;
}

.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;
}

.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;
}

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;
}

.icon-wrapper {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 100%;
  height: 100%;
}

.icon-text {
  font-size: 12px;

  fill: currentColor;
}

optgroup {
  font-weight: bold;
  font-style: normal;
  color: #333;
  background-color: #f5f5f5;
}

option {
  font-weight: normal;
  padding: 4px;
}

.guitar-button.active {
  background-color: #e6e6e6;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  border-color: #adadad;
  color: "red";
}

/* 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: center;
  overflow: visible
}

/* 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: 0;
  margin-bottom: 20px;
  margin-left: 40px;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  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 */
}




.container {
  padding: 10px;
  box-sizing: border-box;
}

#miTabla {
  margin: 0 auto;
  margin-top: 100px;
  border-collapse: collapse;
}

html.is-rotated-by-parent .controls-area {
  order: 2; /* Por defecto es 0, así que 2 lo manda al final */
  margin-top: 92px;
  margin-left: 18px;
}

html.is-rotated-by-parent #fretboardContainer {
  order: 1; /* Por defecto es 0, así que 1 lo pone antes que los controles */
}