:root {
  --primary: #2f54ac;
  --bg-color: #ffffff;
  --surface: #f8fafc;
  --text-main: #131330;
  --frequency-color: #777777;
  --strobe-bg: #1a1e24;
}

[data-theme="dark"] {
  --primary: #5af;
  --bg-color: #0f172a;
  --surface: #1e293b;
  --text-main: #f8fafc;
  --frequency-color: #777777;
  --strobe-bg: #1a1e24;
}

.tuner-container {
  text-align: center;
  width: 450px;
  padding: 15px;
}

.mic-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #444;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.note-in-bar {
  position: absolute;
  left: 15%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 50px;
  font-weight: 700;
  color: #5af;
  z-index: 5;
  text-shadow: 0 0 1px #ccfd;
  display: none;
}

.strobe-wrapper.active .note-in-bar {
  display: block;
}

.strobe-wrapper {
  position: relative;
  background-color: var(--strobe-bg);
  height: 100px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 3px solid var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.strobe-wrapper.inactive {
  background-color: var(--primary);
  border-color: var(--primary);
}

.center-triangle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid var(--primary);
  z-index: 55;
}

.center-triangle-dw {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid var(--primary);
  z-index: 55;
}

.strobe-wrapper.active .center-triangle {
  border-top-color: var(--primary);
}

.strobe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
  background-color: rgba(156, 163, 175, 0.8);
  transition: opacity 0.3s ease;
}

.strobe-wrapper.active .strobe-overlay {
  opacity: 0;
  pointer-events: none;
}

.strobe-grid {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-around;
  pointer-events: none;
}

.grid-line {
  width: 1px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
}

.strobe-indicator {
  position: absolute;
  left: 50%;
  width: 3px;
  height: 100px;
  background-color: var(--primary);
  transform: translateX(-50%);
  box-shadow: 0 0 15px var(--primary);
  transition: left 0.1s ease-out;
}

.strobe-indicator.in-center {
  left: 50% !important;
  background-color: var(--primary);
}

.strobe-bars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.strobe-bar {
  position: absolute;
  top: 5%;
  height: 90%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary),
    transparent
  );
  opacity: 0.7;
}

#pitch-monitor-container {
  width: 100%;
  margin-bottom: 15px;
  width: min(100%, 600px);
  max-width: 90vw;
  max-height: 90vh;
}

#pitch-monitor-container .tuner-container {
  width: 100%;
  padding: 10px;
}

#pitch-monitor-container .strobe-wrapper {
  height: 70px;
}

#pitch-monitor-container .strobe-indicator {
  height: 70px;
}

#pitch-monitor-container .note-in-bar {
  font-size: 30px;
}
