button {
    padding: 6px;
    border: none;
    border-radius: 100%;
    width: 8vh;
    height: 8vh;
    margin: 5px;
    background-color: #2a4949;
    color: #e9e9e9;
    cursor: pointer;
    font-size:2vh;
}

button:focus {
    outline: none;
}
.notes {
  margin: auto;
  width: 80%;
  position: relative;
  text-align: center;
}

.note {
  font-size:5vh;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding-right: 30px;
  padding-left: 10px;
}

.note.active {
  color: #e74c3c;
}

.notes-list {
  overflow: auto;
  overflow: -moz-scrollbars-none;
  white-space: nowrap;
  -ms-overflow-style: none;
  -webkit-mask-image: -webkit-linear-gradient(
    left,
    rgba(255, 255, 255, 0),
    #fff,
    rgba(255, 255, 255, 0)
  );
}

.notes-list::-webkit-scrollbar {
  display: none;
}

.note {
  -webkit-tap-highlight-color: transparent;
}

.note span {
  position: inherit;
  right: -0.1em;
  font-size: 3vh;
  font-weight: normal;
}

.note-sharp {
  top: 0.3em;
}

.note-octave {
  bottom: 0.3em;
  left:5px;
}

.frequency {
  font-size: 32px;
}

.frequency span {
  font-size: 50%;
  margin-left: 0.25em;
}

.meter {
  position: relative;
  width: 100%;
  height: 10vh;
  margin: 0 auto 0 auto;
}

.meter-pointer {
  width: 4px;
  height: 100%;
  background: #2c3e50;
  transform: rotate(45deg);
  transform-origin: bottom;
  transition: transform 0.5s;
  position: absolute;
  right: 50%;
}

.meter-dot {
  width: 10px;
  height: 10px;
  background: #2c3e50;
  border-radius: 50%;
  position: absolute;
  bottom: -5px;
  right: 50%;
  margin-right: -4px;
}

.meter-scale {
  width: 5px;
  height: 20vh;
  transform-origin: bottom;
  transition: transform 0.2s;
  box-sizing: border-box;
  border-top: 10px solid;
  position: absolute;
  right: 50%;
}

.meter-scale-strong {
  width: 8px;
  border-top-width: 20px;
}

.frequency-bars {
  
  bottom: 0;
  width: inherit;
  height: 6vh;
}

.swal-button {
  background: #2c3e50;
}

.a4 {
  font-size:2em;
  margin-bottom: 20px;
}

.a4 span {
  color: #e74c3c;
}

.tuner-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.tuner-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tuner-controls {
  flex: 0 0 auto;
  min-width: 160px;
}

.tuner-display {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Mobile Responsive */
@media (max-width: 1080px) {
  .tuner-layout {
    flex-direction: column;
    gap: 5px;
    align-items: stretch;
  }
  
  .tuner-controls {
    width: 100%;
    min-width: 0;
  }
  
  .tuner-display {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    overflow: hidden;
  }
  
  button {
    width: 6vh;
    height: 6vh;
    font-size: 1.5vh;
  }
  
  .meter {
    height: 8vh;
  }
  
  .frequency-bars {
    height: 5vh;
  }
  
  .note {
    font-size: 4vh;
    padding-right: 20px;
    padding-left: 8px;
  }
  
  .note span {
    font-size: 2vh;
  }
  
  .frequency {
    font-size: 24px;
  }
  
  .a4 {
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .title {
    text-align: center;
  }
}

@media (max-width: 680px) {
  .tuner-container {
    padding-inline: 8px;
  }

  .tuner-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .tuner-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .a4 {
    margin: 0;
  }

  .tuner-display,
  .meter,
  .notes,
  .notes-list,
  .frequency-bars {
    width: 100%;
    max-width: 100%;
  }

  .notes {
    margin: 0 auto;
  }

  .frequency-bars {
    display: block;
  }
}
